How do I create a new partition on a hard disk, from the terminal? I've been reading the man pages for fdisk and mkfs, but they're confusing. I need to know how to create a new partition on a blank drive, as well as on a drive that already has partitions. Some colleagues told me the latter isn't possible and I need to format; is that accurate?
|
|
|||||
|
|
If you install GNU parted (
|
|||||||
|
Unfortunately, this tool doesn't have an option to change the size of partition. You'll need to delete it first and then create the desired new partitions on the unallocated space left from it. First re-create the partition you've just deleted with lower amount of allocated space. Be sure to specify size enough to hold your resized filesystem. Allocate the rest of unused space as you see fit. The
|
|||