I don't think submount is to blame but it can probably
help...
Problem:
I have a system that (annoyingly) gives a different
device name to a USB storage device (using the iRiver
media player and also a memorystick reader here).
Sometimes /dev/sda will be the iRiver, sometimes it
will be /dev/sdb etc., who knows.
Now I thought udev was going to save the day... after
setting it up it now creates a link each time the
iRiver is plugged in (for example):
/dev/iriver -> sdc1
And my fstab looks like this:
/dev/iriver /mnt/iriver subfs
fs=auto,uid=1000,gid=443,umask=007 0 0
The cause seems to be this: /mnt/iriver is always
mounted and subfs will mount it based on the first
location of /dev/iriver (currently /dev/sdc1).
But later on if I unplug and reconnect the iRiver, it
doesn't work. I have to unmount it and then remount it
manually, which kind of defaults my whole endeavour
with submount. ;-)
Is there a way to make subfs automatically remount when
the 'real' location of its device from /etc/fstab has
changed? Or some other workaround?
Logged In: YES
user_id=139579
Update:
I changed udev so that /mnt/iriver is the actual device file
now and not a link.
Unfortunately, submount still fails to see/mount the device
after the second insert until I manually unmount and mount
again.
Same problem with the memory stick reader.