● Creating partitions
● Formatting partitions
● Mounting partitions
● Auto mounting partitions
● Repairing partitions using fsck
● Monitoring partitions using fuser
● Reading NTFS partitions
1. Create partitions
2. Format partitions
3. Mount partitions
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
WARNING: Re-reading the partition table failed with error 16: Device or
resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks. Version 1.0 linuxslides.blogspot.com
Formatting partitions
To format a partition use mke2fs:
$ sudo mke2fs -t ext4 /dev/sda3
The type option “-t” could accept these formats ext2, ext3, ext4, etc.
Or you can use mkfs.ext2, mkfs.ext3, mkfs.ext4,
mkfs.raiserfs, mkfs.vfat, and etc. For example:
$ sudo mkfs.ext4 /dev/sda3
/mnt/data is the mount point
9544 is the PID of the process that runs in the partition
linux is the user
$ umount /mnt/data
$ sudo fsck /dev/sda3