Linux Disk Management Basic configuration

Source: Internet
Author: User

To Create a partition step: (7 steps):
1, FDISK/DEV/SDB//Select the hard disk to be partitioned
2, p//view current partition table or N//create new partition
3, p//create primary partition or E//create extended partition
4, 1~4//primary partition and extended partition selection (1~4), logical partition (5~) 1//input start cylinder 100 or +100m//input up to cylinder face
5, L//input L view partition type and ID
6, t//input T 83//Set File type ext3 (ext3 file type ID 83, 5 step View)
7, w//Save Exit
Delete Partition: (4 steps)
1, FDISK/DEV/SDB//Select the hard disk to be partitioned
2, D//Enter delete partition
3, 1//SELECT Delete Primary partition 1 (optionally delete other partitions)
4, w//Save Exit
To format a partition:
mkfs-t EXT3/DEV/SDB1//format SDB1 partition into a ext3 file system
To check and repair the disk:
fsck-a/DEV/SDB1//Check for errors and automatically fix SDB1 partitions
To View disk space usage:
DF-parameter//-a Show All Files |-M in m |-t display file system type
du-parameter-file name//-a recursive display |-s gives only the total for each file
Mount:
Example: Mount-t ext3/dev/sda2/mnt/sda2 mount-t iso9660/dev/cdrom/mnt/cd1 umount-t/mnt/cd1 Note: Modify/etc/fs tab to set boot auto Mount

Linux Disk Management Basic configuration

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.