On Thu, 08 Mar 2012 15:15:46 +0100, Jim Meyering <j...@meyering.net> wrote: >Then you want two primary partitions, and you already know >their types and starting and ending sector numbers, so do this: > > parted -s $dev mkpart primary ntfs 63s 29302559s > parted -s $dev mkpart primary ext3 547013250s 625137344s
Thanks Jim. I only want to recreate /dev/sda1, as /dev/sda2 contains the images of the different OS's I use for testing. If I only run the first command, will Parted recreate /dev/sda1 and leave /dev/sda2 alone, or should I use an alternative to fdisk/cfdisk that can 1) start at sector 63 instead of sector 2048 and 2) use a given sector as end instead of a size in MB? Thank you.