On Fri, 10 Dec 1999, Richard Adams wrote:

> On Fri, 10 Dec 1999,  greyn wrote about,  Mounting Drives:
> > I would like to mount my floppy, cdrom and zip drives while logged in as a
> > normal user(not root). I tried adding these lines to my /etc/fstab:
> > 
> > /dev/cdrom     /cdrom      iso9660     ro,users,noauto,unhide
> > /dev/fd0       /floppy     ext2        users,noauto,unhide
> > /dev/sda       /zip        ext2        users,noauto,unhide
> 
> There is your problem, its "user" not "users".
> The unhide means show hidden files Lawson.

The users actually came from the man page for mount. I quote:

If any user should be able to unmount, then use users instead of user in
the fstab line.

I changed my fstab to:

/dev/hdb2      swap        swap        defaults               0   0
/dev/hdb3      swap        swap        defaults               0   0
/dev/hda1      /           ext2        defaults               1   1
/dev/hda2      /downloads  ext2        defaults               1   1
/dev/hdb1      /common     vfat        defaults               1   0
/dev/cdrom     /cdrom      iso9660     ro,user,noauto,unhide 0   0
/dev/fd0       /aext2      ext2        noauto,user,unhide    0   0
/dev/fd0       /avfat      vfat        noauto,user,unhide    0   0
/dev/sda       /zip        ext2        noauto,user,unhide    0   0
none           /dev/pts    devpts      gid=5,mode=620         0   0
none           /proc       proc        defaults               0   0

However, when as a user I try:

mount /dev/sda or mount /zip

I get:

mount: wrong fs type, bad option, bad superblock on /dev/sda or too many
mounted file systems.

Root can still mount the zip or floppy drives which are ext2 formatted.
Would the file permissions need to be change to access /dev/sda or
/dev/fd0?

Here are the rights for the devices:
lrwxrwxrwx   1 root     root            8 Nov 30 14:10 cdrom -> /dev/hdc
brw-r-----   1 root     disk       8,   0 Apr 29  1995 sda
brw-rw-rw-   1 root     floppy     2,   0 May 14  1996 fd0

Should I change these?

Thanks to Richard and all those who replied to my email.

*************************************************
[EMAIL PROTECTED]
Edmonton, Alberta, Canada
*************************************************


Reply via email to