Mount / Unmount Overview

Mindwatering Incorporated

Author: Tripp W Black

Created: 09/11/2005 at 02:15 PM

 

Category:
Linux
Utilities

Mounting is how you use some storage device, commonly a cdrom drive or even an ISO file on disk.
The command to mount a drive is mount. When you are done with the drive you unmount it with umount.

To mount a iso drive:
mount -o loop -t iso9660 somefileinthisdirectory.iso /mnt/mountpoint

To mount a physical drive:
create a folder within the /mnt folder (e.g. mymountpoint)
mount /dev/sdc1 /mnt/mymountpoint


To un-mount:
umount /mnt/mountpoint

To make a device start every boot, add the lines in your /etc/fstab file.

Note: If mounting a USB key. Generally it will show up as a drive. (Watch your bootup).
If you know your existing drive is sda with volumes sda1 and sda2. Then the USB key is probably /dev/sdb1. Also, if you guess the wrong device/drive, you will get an error saying that mount could not find HFS block.

previous page

×