June 2017
Intermediate to advanced
478 pages
13h 14m
English
The mount command allows us to attach one filesystem to a directory within another, forming a hierarchy of filesystems. The one at the top, which was mounted by the kernel when it booted, is called the root filesystem. The format of the mount command is as follows:
mount [-t vfstype] [-o options] device directory
You need to specify the type of the filesystem, vfstype, the block device node it resides on, and the directory you want to mount it to. There are various options you can give after-o; have a look at the manual page mount(8) for more information. As an example, if you want to mount an SD card containing an ext4 filesystem in the first partition onto the directory called /mnt, you would type the following code: ...
Read now
Unlock full access