Been having this problem for a while now.
Used devlabel to deal with a previous problem that depending on whether my
printer was switched on or not would affect which device my usb pendrive was
picked up as. devlabel allowed me to use a symlink to the device which it would
create and delete when the device was added removed, which meant that I could
use a consistent device name in my /etc/fstab file. This allowed me to set it up
so that any user could mount/unmount my pendrive.
my /etc/fstab file has the following entry for this device.
/dev/usb-pendrive /mnt/usb-pendrive vfat
noauto,owner,kudzu,users,noatime,gid=100,umask=002 0 0
The problem is that when updfstab is run I get the following message
cannot stat /dev/usb-pendrive: No such file or directory
which is not supprising really, since unless the pendrive is actually connected
to the machine the device entry isn't going to exist since devlabel will delete it.
The possible solutions I can see are:
Get updfstab to ignore the entries in /etc/fstab that depend on entries that may
Get devlabel to not delete the symlink when the device is removed and instead
point it to a non used dev that will not be used by a device (/dev/null comes to
mind, but I'm sure there are others).
I can't seem to work out how to do either of the above or locate any entries on
the internet that cover the same problem.
So can I solve this problem or is it a case of just having to live with it. It
doesn't affect any functionality but I still would want them to work correctly.
"Nothing's foolproof to a sufficently talented fool"
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!