Linux format and Mount

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.