Download Image for Linux User Manual
Transcript
-t is an optional parameter that specifies the file system for the partition you want to mount. –o is an optional parameter you can use to specify options for the device you want to mount. /dev/xxx represents the device you want to mount, and the mountpoint represents the directory on which you want to mount the device. The directory you use as the mount point in the command must already exist and should contain no files. Specifying the file system with the -t option is usually not necessary, but appears here for completeness. For example: 1. To mount a FAT32 partition called dev/hda1 at the mount point /mnt, type: mount /dev/hda1 /mnt or mount -t vfat /dev/hda1 /mnt 2. To mount an Ext2 partition called /dev/sdb4 at the mount point /home/user/mount1, type: mount /dev/sdb4 /home/user/mount1 or mount -t ext2 /dev/sdb4 /home/user/mount1 3. To mount a ReiserFS partition called /dev/hdb2 at the mount point /home/user/mount2, type: mount /dev/hdb2 /home/user/mount2 or mount -t reiserfs /dev/hdb2 /home/user/mount2 4. To mount an NTFS partition called /dev/sdb2 at the mount point /mnt, type: ntfs-3g /dev/sdb2 /mnt Unmounting a Partition or Device Use the umount command to unmount a partition. Note: The spelling of this command is umount, and not unmount. The syntax for umount is umount dir or umount device Image for Linux User Manual Page 161 of 181