On 05/22/2012 12:00 PM, bug-parted-requ...@gnu.org 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
rodsm...@rodsbooks.com
http://www.rodsbooks.com

Reply via email to