Monday, August 29, 2016

mount and umount

Mount

mount -t <file_system_type> <device> <mount_point>

mount -t ext4 /dev/sdb1 /mnt/extraspace

If you don't know the file system type use -a instead of -t:

mount -a /dev/sdb1 /mnt/extraspace

Use -o with mount to include options:

mount -t ext4 -o ro /dev/sdb1 /mnt/extraspace

Mount ISO image:

mount -t loop <filename.iso> <mount_point>

Mount Optical Drive:

mount -t iso9660 <device> <mount_point>

Mount USB or FireWire:

mount -t auto <device> <mount_point>

Unmount a Device:

umount <device> | <mount_point>

No comments:

Post a Comment