How To Partition a Hard Drive Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Boot into the Live CD/USB of your Linux distribution.
2. Open a terminal window.
3. Type “sudo fdisk -l” to list the partitions of your disk.
4. Type “sudo fdisk /dev/sdx”, where “sdx” is the name of your disk.
5. Type “n” to create a new partition.
6. Type “p” to create a primary partition.
7. Select the partition size.
8. Type “w” to write the changes to the disk.
9. Reboot your system.
10. Type “sudo mkfs.ext4 /dev/sdx1”, where “sdx1” is the name of the newly created partition.
11. Type “sudo mount /dev/sdx1 /mnt”, where “sdx1” is the name of the newly created partition and “/mnt” is the mount point.
12. Check the newly created partition with “df -h”.
13. Unmount the partition with “sudo umount /dev/sdx1”.