Re: Procedure on mounting USB/hotplug devices



Mikkel L. Ellertson wrote:
Casey Stamper wrote:
Tim wrote:
I tend to agree. You paint yourself into a corner trying to write fixed
rules for non-fixed media.

Especially when you write in those fixed rules and boot the system w/out
the device in there and it hangs for a good long while chewing on that
line in fstab.

That is why you use the noauto option in the fstab entry. You have
to run mount manually after plugging in the drive, but you can set
it so the user can do that.

If you do not want to use gnome-mount, then you could always fall
back on an older method. I used to have udev rules that created
meaningful symlinks when plugging in a USB drive. The fstab rules
would then use the symlink instead of a specific SCSI drive. (You
can also have udev run a command to mount the device when it is
deetected, but I didn't bother with that.) The thing is, you can
have udev create entrys like /dev/pny128 /dev/pny1281 when you plug
in your PNY 128M pen drive, and have a fstab entry that lats a user
mount /dev/pny1281. The user runs mount /mnt/pny128 or mount
/media/pny128 and the device gets mounted.

Mikkel

Still a bit cumbersome for the "normal" user, yes? I know it's trivial for most of us on the list as is the whole manual mount process but if we're ever to have a wider user base, there should be a more user-friendly technique.

--
Casey Stamper
http://www.stampersite.com/wordpress

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • RE: Machine not Booting - Continued
    ... The fstab is not to blame for this issue as i have just run mkraid /dev/md0 ... and then a mount -a and the area mounted straight away. ... it has no proper file system to mount. ...
    (RedHat)
  • Re: How to set /etc/fstab again after system has started
    ... That is the incorrect statement. ... With an appropriate entry in fstab, it takes very little, ... but without it the mount command needs more information. ... The previous poster went off on a tangent, ...
    (comp.os.linux.misc)
  • Re: nfs bug & df: Can I lock up my kernel and overflow this buffer?
    ... > mount_nfs commandline switches I needed. ... You are not restricted to only the -o option with fstab. ... Since mount wasn't able to understand those switches on ...
    (freebsd-stable)
  • Machine not Booting - Update
    ... When i try a mount -a when the machine has come up i get the error below. ... I know the fs type is OK, the options are right in the fstab and i only ... This transmission is confidential and must not be used or disclosed by ... within the Corus group of companies, ...
    (RedHat)
  • Re: How to set /etc/fstab again after system has started
    ... That is the incorrect statement. ... With an appropriate entry in fstab, it takes very little, ... but without it the mount command needs more information. ... The previous poster went off on a tangent, ...
    (comp.os.linux.misc)