Showing partition labels instead of mountpoint

I have thunar file manager . I want to see partition labels instead of mountpoint in the sidebar .
I changed partition label using gparted :
but after mount/unmount several times , and even after reboot , this is how thunar looks like :
how can I fix this? I searched alot but no conclusion . thanks

What if you set it to mount to /media/LabelTest instead?

1 Like

it is now shown as LabelTest . how can I make this permanent mountpoint for the sda?

You can edit /etc/fstab for that.

thanks . the problem is solved

Editing fstab can be potentially disastrous. One typo is enough to create problems.

Using systemd mount and automount units is a safer approach.

1 Like

Not arguing for or against mounting with systemd. But wouldn't creating systemd .mount files also involve typing?

Mount units may either be configured via unit files, or via /etc/fstab
(see fstab(5) for details). Mounts listed in /etc/fstab will be
converted into native units dynamically at boot and when the
configuration of the system manager is reloaded. In general,
configuring mount points through /etc/fstab is the preferred approach.
See systemd-fstab-generator(8) for details about the conversion.

man systemd.mount

systemd-fstab-generator is a generator that translates /etc/fstab (see
fstab(5) for details) into native systemd units early at boot and when
configuration of the system manager is reloaded. This will instantiate
mount and swap units as necessary.

man systemd-fstab-generator

1 Like

Indeed - but it won't break the system - like a typo in the fstab will.

There can be arguments for and against - I just want to point that the extra mounts - besides what may be needed for the system can be done in a safer manner than editing fstab.

1 Like

So if there are some or other inconsistencies, a typo or else, the mount unit will be ignored by systemd?

You got that right.

1 Like

That's great! Now I see your point. Thanks for the explanation!

For a more in-depth guide

While I only touched on the topic of physical devices and NFS - I fairly certain it can be done with SMB as well.

1 Like

Thanks for the link! I had totally missed that.

I guess I better get busy experimenting !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by