On Sun, 27 Feb 2000, Kevin M. Gleason wrote:
> when I try to:
> mount -t ext2 /dev/fd0 /mnt/floppy
> I get the message
> mount: only root can do that
> which makes me wonder if the mount command doesn't have permissions set to
> 700 - would that be it?
No, if you couldn't run the mount command, you could get a "mount:
Permission denied" error when the shell tried to exec it. What you are seeing
is a message from mount itself, telling you that only root has permission to
mount arbitrary filesystems.
mount (or at least, the version that comes with Red Hat Linux 6.1) will only
allow a regular user to mount a filesystem if they specify only a single
argument to mount, either the device or the mount point, and that argument is
listed in /etc/fstab with the "user" or "users" option.
By specifying both the device and the mount point, as well as the
filesystem type, you don't satisfy those requirements, and thus the error
message.
What you need to do is add a line like this to your /etc/fstab file:
/dev/fd0 /mnt/floppy ext2 noauto,users 0 0
Then issue the command "mount /mnt/floppy". The "noauto" means "don't try to
mount this filesystem at boot", and "users" means "allow any user to mount
this filesystem, and allow any user to unmount it as well". If you want only
the user who originally mounted it to be able to unmount it, use "user"
(singular) instead.
> When I try to mount the drive from the desktop icon with a native ext2
> disk it mounts ...
Whatever desktop you're running most likely includes its own support for
mounting and unmounting filesystems without being root, independent of the
"mount" command.
--
Ben Scott <[EMAIL PROTECTED]>
| "Living was struggling to do something impossible -- to succeed, or die, |
| knowing you had tried!" -- by Anne McCaffrey, _Dragonflight_ |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************