Linux partition, format, Mount command detailed introduction _linux

Source: Internet
Author: User

Linux partitions, formatted, mounted commands

Although Linux has been playing, but the hard drive is not very familiar with the operation, today is free, on the collation of the next.

1, zoning

Fdisk-l

You can see the hard drive information, like/dev/sda,/dev/vda,/dev/hda. SD is the SCSI port hard drive, SDA is the first block, SDB is the second block. HD is IDE port hard disk, VD is virtual hard disk

Fdisk/dev/vda

Use this command to partition, after dividing the area,/dev/vda will become/dev/vda1,/dev/vdb2 and so on, many numbers, representing the nth partition

Root#partprobe

This command causes the partition to take effect

2. Format

Mkfs.ext3/dev/vda1

This command formats the partition you just made into EXT3 format

3. Mount

Mount/dev/vda1/opt

This command mounts the/DEV/VDA1 to the/OPT directory

Df-h

View Mount Status

4, automatically mount the boot

Edit the/etc/fstab file to append the 3rd step to the end of the file

Thank you for reading, I hope to help you, thank you for your support for this site!

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.