Oct 22, 2010

How to do partitions in linux ?

Partitioning Tools
•Pre-Installation tool
–Disk Druid                                                                      View the List of Partitions
•Post-Installation tools
–fdisk
–parted

Naming Convention–IDE Hard Disk
                                                                                
[root@comp1 ~]# fdisk -l

Disk Management Using fdisk
[root@comp1 ~]# fdisk
                                                                            See the Fdisk Command Details
Update the partition Table
root@comp1 ~]# partprobe

Formatting
Formatting the partition using ext3 file system
[root@comp1 ~]# mkfs.ext3
Formatting the partition using vfatfile system
[root@comp1 ~]# mkfs.vfat

Mounting
Create a directory for mounting the partition
[root@comp1 ~]# mkdir
Mounting the partition on the directory created
[root@comp1 ~]# mount
Unmount the filesystem
[root@comp1 ~]# umount