I was creating a partition using the parted command and i used the mkpart option to create a new primary partition. But i got an unusual error message while doing this. This is my output:
(parted) print Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 729GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 300GB 300GB primary ext4 boot (parted) mkpart Partition type? primary/extended? primary File system type? ext4 Start? 1050 End? 30000 Warning: You requested a partition from 1050MB to 30.0GB (sector 2050781..58593750). The closest location we can manage is 300GB to 300GB (sector 585936896..585936896). Is this still acceptable to you? Yes/No?
I did the start at 1050 (because the previous partition starts at 1049) and i did the end at 30GB as i wanted it (30000MB)
I have been told that i have to do the Start value as one more than the previous partition's start value and i should do the end value at the size i want in MB as parted uses MB by default.