I've decided to do a fresh Linux CentOS 6 install onto a small computer which I intend to use as a basic server.
The OS has been installed and I would like to partition the 31gig sda drive (there is only one hard drive in it) into 2 15gig partitions sda and sdb.
I have never needed to partition a hard drive on linux before and I am taking a look at the tool parted (I have booted into rescue mode btw).
# parted /dev/sda
# print
I get the following output
Number Start End Size Type File system Flags
1 1049kb 525MB 524MB primary ext4 boot
2 525MB 32.2GB 31.7GB primary lvm
I'd like to get advice on how to correctly partition the 31GB hard drive into the two 15GB hard drives without breaking the system (I have done this before many times and I don't entirely trust the googled instructions I have found)
any help would be greatly appreciated
# resize 2 *start place* *end place*
both places required in MB – TheLovelySausage May 14 '15 at 13:08resize 2 525MB 15525MB
which should give you a round about 15 GB partition. Tho I do not understand why you have to use parted if you just can use LVM. Oh btw. you will not get sbd since this would be a new pysical disk. – Benjamin May 14 '15 at 13:19