Ex:
sudo mount /dev/hdc2 /mymedia
# mount -t ext3 /dev/hda4 /mnt/mydata
auto option
If you are unsure about the type of file system that a disk holds, you can mount it specifying the auto file system type with the -t option. Given the auto file system type,
mount attempts to detect the type of file system on the disk automatically. This is useful if you are manually mounting a floppy disk whose file system type you are unsure of (HAL
also automatically detects the file system type of any removable media, including floppies).
Here’s an example: mount -t auto /dev/fd0 /media/floppy
Mounting DVD/CD Disc Images
Mounting a DVD/CD disc image is also performed with the mount command, but it requires the use of a loop device. Specify the loop device with the loop option as shown in
the next example. Here the mydoc.iso is mounted to the /media/cdrom directory as a file system of type iso9660. Be sure to unmount it when you finish. The image can be
mounted to an empty directory on your system.
mount -t iso9660 -o ro,loop=/dev/loop0 mydocuments.iso /media/mycdrom

No comments:
Post a Comment