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