bug-parted
[Top][All Lists]
Advanced

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

Re: Rescue disk with parted utility for GPT label


From: Rod Smith
Subject: Re: Rescue disk with parted utility for GPT label
Date: Tue, 22 May 2012 12:37:44 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120501 Thunderbird/10.0.4

On 05/22/2012 12:00 PM, address@hidden wrote:

Hello,

I have one USB disk of 3 TB. It is devided into 2 partitions, 1.5 TB each
with Linux type (id 83). When using fdisk I can see 2 partions as follows (*
1)*
*Device         Boot    Start      End       Blocks            Id     System
*
/dev/sdb1               1           30000        ......
83      Linux
/dev/sdb2               30001     45600      .......
83      Linux

But when using the command "parted /dev/sdb1" in which I run "mklabel gpt
/dev/sdb1", the last result I have as follow:
  *Device         Boot    Start     End         Blocks         Id     System*
/dev/sdb1
1       456001       ........           ee    EFI  GPT

It looks like the second partion 2  (/dev/sdb2) is disappeared and the
partition 1 become the whole disk with GPT label.

It appears that you applied your first (fdisk) command correctly to the whole disk device (/dev/sdb); but it appears that you applied your second (parted) command to the first partition on that device (/dev/sdb1). You need to apply parted to /dev/sdb.

That said, the "mklabel" command creates an entirely new partition table, so you shouldn't be using that command if you want to preserve your existing partitions.

--
Rod Smith
address@hidden
http://www.rodsbooks.com



reply via email to

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