On Thu, 08 Mar 2012 15:31:24 +0100, Gilles <codecompl...@free.fr>
wrote:

>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?

Turns out just running "parted -s $dev mklabel msdos" (I commented out
the two following lines) wasn't a good idea, as it deleted the two
partitions on /dev/sda :-/


Reply via email to