2

long time Linux user, but can't find an answer to this. The makers of parted/gparted completely ignored my question.

Some time back in slackware, I'd formatted a 2TB with two ext2 partitions, but when I install either Mint or Ubuntu, gparted sees this as a single FAT32 formatted drive.

See print from parted and fdisk below.

Anyone know how to get parted to see my ext2 partitions without moving everything off and repartitioning in parted?

parted:

Model: ATA ST2000DM001-9YN1 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  2000GB  2000GB  fat32

fdisk:

Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes   
Disklabel type: dos
Disk identifier: 0x3d1c2b39

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sdb1             2048 1719666687 1719664640  820G 83 Linux
/dev/sdb2       1719666688 3907029167 2187362480    1T 83 Linux
  • I'm guessing a little here... but it probably has to do with 1) the partition table "loop" or "dos" (MBR), and 2) the ID code "83" of the EXT2 partitions. For modern Ubuntu systems with this large of a disk, the partition table should be GPT, and the partitions EXT4. You may have to backup the data, if you haven't already, lay down a fresh GPT partition table and two EXT4 partitions, and restore the data. – heynnema Aug 9 '17 at 0:18
  • Heynnema, thanks, but this isn't the case for other ext2 partitions on similar drives. Would an fdisk -l help to clarify? – Angus Fergusson Aug 9 '17 at 0:24
  • Isn't that what you're already showing? Do you have other large disks that show different parted/fdisk results? – heynnema Aug 9 '17 at 0:26
  • ps: are you using current versions of parted and fdisk? – heynnema Aug 9 '17 at 0:32
  • In the body of the message is the print command for parted and fdisk specific to sdb. I'm saysing I have four additional (external) drives and some of them are similar to sdb: I'd used fdisk to set them up, they report pretty much the same data, though specific to each drive. The only difference I can find between them and sdb is that parted cant see the two ext2 partitions on sdb. – Angus Fergusson Aug 9 '17 at 0:34
1

From the comments...

Parted shows the partition table is "loop" which is incorrect. It should indicate "msdos".

Backup your data. Lay down a fresh partition table (GPT recommended), create two new partitions (EXT4 recommended), and restore your data.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.