[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [user] How to get this parted output?

From: Gilles
Subject: Re: [user] How to get this parted output?
Date: Thu, 08 Mar 2012 16:10:37 +0100

On Thu, 08 Mar 2012 15:31:24 +0100, Gilles <address@hidden>

>On Thu, 08 Mar 2012 15:15:46 +0100, Jim Meyering <address@hidden>
>>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

[Prev in Thread] Current Thread [Next in Thread]