Post date: Jul 17, 2014 4:26:41 AM
Check to see if your disk is already mounted with this command:
# df
5
Unmount your drive if it is mounted using this command:
# umount /dev/sdb
6
Create a new partition by typing this command:
# fdisk /dev/sdb
7
The fdisk prompt will open. Press "n" to make the new partition, and then press "Enter."
8
Press "p" to create a primary partition, and then press "Enter."
9
Press "1" to create the first partition followed by "Enter."
10
Enter the default for both the first and last cylinders when your computer asks for this information. This will make the partition cover the entire disk rather than just part of it.
11
Press "t" to change the file system type followed by "Enter."
12
Type "L" to see a list of known types followed by "Enter."
13
Type "83" for "Linux" followed by "Enter."
14
Press "w" to write the partition to the disk (this cannot be undone), and then press "Enter."
Format the New Partition
15
Format the new partition that you created with the following command:
# mkfs.ext4 /dev/sdb1
16