You are not logged in.
Pages: 1
Hello,
I have my system configured for mounting hd partitions in fstab with UUID= LABEL=
Everything works fine, but if I add some entries for an external flash drive like this:
/dev/sda1 /mnt/usbdiska vfat user,utf8,rw,auto,nofail,x-systemd.device-timeout=1,umask=111,dmask=000,noatime,flush
/dev/sdb1 /mnt/usbdiskb vfat user,utf8,rw,auto,nofail,x-systemd.device-timeout=1,umask=111,dmask=000,noatime,flush Then, if i reboot the computer with the USB flash drive plugged, then it tries to mount the partitions corresponding to the uuid or labels, with the parameters for the vfat flash drive.
What amI doing wrong?
Thanks in advance.
Offline
If you have uniques Labels for the partitions and not want use PARTUUIDs then use the labels genfstab -L / with the flash connected to get the labels and UUID of all.
Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::
Offline
ugh genfstab.
Why use /dev/sdXY for the external drives? You should write entries with their UUID/LABEL. You can get that with lsblk -f.
/dev/sdXY are not recommended for fstab because they can refer to partition on different drive on each boot.
It is even better to use udisks2 and some frontend daemon of it to (auto)mount external drive, especially those with Windows filesystems, saves you from a lot of troubles.
Offline
Thanks a lot,
I understand your ideas, but I think I will look the udisks way, I cannot use UUIDs or LABELs, because I'm talking about usb flash drives, and I do not know those parameters I I plug a new (unknown) drive.
So probably the fstab approach is not good for dealing with this drives.
Of course, I'm talking about a system without any Desktop Environment installed.
I will look how to automount without fstab.
Thanks again,
Offline
I cannot use UUIDs or LABELs, because I'm talking about usb flash drives, and I do not know those parameters I I plug a new (unknown) drive.
Thanks again,
lsblk -f as tom.ty89 said. However, udisks2 is preferable for removeable devices than fstab.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
lsblk -f as tom.ty89 said. However, udisks2 is preferable for removeable devices than fstab.
The problem is that he want an entry that will mount any usb drive attached. UUID or LABEL will only work for a specific USB drive. Probably the udisk method is the best. Or a custom script.
Offline
Are you looking at Persistent Block Device Naming?
Regards
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
Offline
Are you looking at Persistent Block Device Naming?
Is this not already covered in posts #4 - #6?
Offline
I was unsure, that is why I first searched on what was being described, then attempted to put a label to it so that I could better understand the problem and perhaps lend some help based on experience.
Regards
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
Offline
Pages: 1