Библиотека сайта или "Мой Linux Documentation Project"
This won't work unless: This will only work if the user has permission to mount the partition. Please see the tip in the Section called Mounting and Unmounting (Floppy/CDROM/Hard-drive Partitions) for more information.
Allowing Users to mount partitions: By default a UNIX system will allow normal users to unmount partitions. However unless given permission by the superuser, users will not be allowed to mount partitions.
The commands listed below will not work for normal users unless users have permission to mount that device.
If your particular distribution is setup not to allow users to mount partitions its not very hard to change this, simply edit the /etc/fstab file (as root) and:Replace the word "defaults" with "user" orAdd "user" to the end of the options list for the particular partition(s).
Mount a device. Attach the device to the file-system hierarchy (the tree ( / )). This needs to be done so you can access the drive (see below, the Section called Mounting and Unmounting (Floppy/CDROM/Hard-drive Partitions) for an example).
'Unmount' a device. The command umount (no 'n') unmount's a device. It removes it from the file-system hierarchy (the tree ( / )). This needs to be done before you remove a floppy/CDROM or any other removable device (see below, the Section called Mounting and Unmounting (Floppy/CDROM/Hard-drive Partitions) for an example).
- smbmount //wincomp/c /mnt/win
mount -t ext2 /dev/fd0 /mnt/floppy mount -t iso9660 /dev/hdb /mnt/cdrom mount -t iso /tmp/image_file /mnt/iso_file/ -o loop
The -t option: On any system running a newer version of the Linux kernel the -t option is not always necessary and can be left out.
An example unmount point could be “/mnt/floppy” or “/mnt/cdrom”
Только зарегистрированные пользователи могут оценивать и комментировать статьи.