Formatting and mounting
A hard disk to be used, to be partitioned, formatted, mount these three steps. Earlier we talked about MBR partitioning and GPT partitioning.
Let's talk about it. If a partition is formatted. In fact it is very simple, a word can be done.
First look at what partitions are being made under the sdb disk. Use the command:
Ls-l/dev/sdb*
The output results are as follows:
For example, if we want to use partition SDB1, we first format it, and the tool used is mkfs, because it supports more file systems.
one sentence to take care of, remember the following commands can be:
Mkfs.ext4/dev/sdb1
Cut a picture, as follows:
Of course, it doesn't show all the information.
Well, the format is complete. If you use it, you can mount the partition.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note Mount theoretically any empty folder can be, but you'd better follow the rules to mount it under the /mnt/ folder, which is
the system prepares us to mount the equipment specifically .
First create an empty folder, as follows:
Then mount it as follows:
This completes the mount and the partition can be used happily.
However, it is important to note that mounting with Mount is only temporary, and the next boot will be invalid. If you want to be permanently active, you need to
The file /etc/fstab will be mounted on the partition configuration and saved.
Type the command: vim +/etc/fstab
Such as:
Enter in the format of the yellow coil.
In this way, we will have a permanent effect on this mount.
Linux format and Mount