Need to know how to mount subfs defined floppy as reg user
I know this has been discussed on this list before, but I didn't realize it applied to me, but it does. If I try to mount a floppy as a regular user I get the message -- "only root can mount /dev/fd0 on /media/floppy" I hadn't tried accessing a floppy as a regular user before and didn't realize this limitation was there. /dev/fd0 is set up as type subfs in fstab. I assume that if I made that auto instead I could get this to work, but I'd like to try to leave it subfs and work within that framework, if possible. Can someone tell me how to accomplish this? I would hope there would be an option I could simply put on that fstab line to allow regular users to mount a floppy, but fear I will have to go into some subfs XML file and make code changes to accomplish this (hope I'm wrong). Any help greatly appreciated. Greg Wallace
Greg Wallace wrote:
I know this has been discussed on this list before, but I didn't realize it applied to me, but it does. If I try to mount a floppy as a regular user I get the message --
"only root can mount /dev/fd0 on /media/floppy"
I hadn't tried accessing a floppy as a regular user before and didn't realize this limitation was there. /dev/fd0 is set up as type subfs in fstab.
If it is subfs, you don't have to mount it. Stick it in and start to use it. Yeah. like the OS_THAT_SHALL_NOT_BE_NAMED. If everything is allright, the line in fstab should read something like /dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0 The sync parameter sees to it, that you can take the floppy out without unmounting too, because there is no buffered stuff that still needs to be written. Regards, -- Jos van Kan registered Linux user #152704
On Monday, April 03, 2006 # 3:34 AM, Jos van Kan wrote:
Greg Wallace wrote:
I know this has been discussed on this list before, but I didn't realize it applied to me, but it does. If I try to mount a floppy as a regular user I get the message --
"only root can mount /dev/fd0 on /media/floppy"
I hadn't tried accessing a floppy as a regular user before and didn't realize this limitation was there. /dev/fd0 is set up as type subfs in fstab.
If it is subfs, you don't have to mount it. Stick it in and start to use it. Yeah. like the OS_THAT_SHALL_NOT_BE_NAMED.
Won't work for me. I get the above message every time.
If everything is allright, the line in fstab should read something like /dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
That's exactly what my fstab line looks like, but it just doesn't work unless I'm logged in as root.
The sync parameter sees to it, that you can take the floppy out without unmounting too, because there is no buffered stuff that still needs to be written.
Regards, -- Jos van Kan registered Linux user #152704
Greg Wallace
participants (2)
-
Greg Wallace
-
Jos van Kan