Linux Notes

Table of Contents

Section 10: Storage

The system uses all drives it sees. It means you can use floppies and any other data storage devices. However, normally the devices (drives) weren't loaded during the boot excluding the boot area. So? So you have to split the filesystems for the moment. There is a special directory called /mnt (it might differ, but seldom). The device has to be formatted first (mkfs command) so if it is not, you'll have to read on till we get to mkfs. :P
However, if the disk is ready, we can begin.

mount

  • mounts the disk/device filesystem
$ mount [options] <device> <directory>

Options:

  • -r read-only access

And that's all. Now we have full access to the disk/device. So we work and do whatever we want... however, we can't change disks/devices while they're mounted. To do so, or end our work with its filesystem, we use umount.

umount

  • unmounts the filesystem
$ umount <device>

To just change floppies, unmount the first, change the floppy and mount the second. Changing any devices without this procedure might cause very serious system errors... or at least serious complications. ;)