由 molopoly » 週六 11月 05, 2005 8:50 pm
I do "man mount" minutes ago.
And according to mount manpage,
the file "/etc/fstab" only will be used in three way.
(1)mount -a [-t type] [-O optlist]
(2)When mounting a file system mentioned in /etc/fstab,
it suffices to only give the device name,or only the mount point.
(3)Normally,only root can use "mount" command.
But if "user","users","owner",or"group" options are used in
/etc/fstab,ordinary users can use "mount" command.
And ordinary users can use "mount" command in two way:
if the list in /etc/fstab is
/dev/hdd /media/cdrom iso9660 ro,users,noauto 0 0
(i)mount /dev/hdd
(ii)mount /media/cdrom
And when I use " mount /dev/hdd /media/cdrom" in my computer,
the error message printed just like yours.
And when I use "mount /dev/hdd" or "mount /media/cdrom",it is OK.
So I think that if only device name or mount point is specified,the
computer will look up the /etc/fstab to identify what you really mean.
And if you write down both device name and mount point,the computer
will not look up /etc/fstab.
"user" option:
Everyone can mount the device,but only the user who mounted the
device can umount it.
"users" option:
Everyone can mount and umount the device.
"owner" option:
Only the owner of device can mount and umount the device.
"group" option:
Only the user who is member of device file(ex:/dev/fd) group can
mount and umount the device.
If you want show chinese,you can try "iocharset=cp950" or "utf8" in
mount options.