33

Gparted shows mu such a message after scanning the disk contents with title "Libprated warning".

The background:

This happened after I tried shrinking down one of the partitions to make room for another partition. I was doing this with The KDE Partition Manager. It's a brand new machine, but somehow things has gone wrong and I was unable to mount the down-sized partition.

I recovered the partition table with TestDisk, but the system seemed to hand in the Plymouth after showing an error message about the swap partition (which was under sda1).

Now've booted a LiveCD and I can mount and browse both the system and data partition. I created a new swap.

What can I do to fix this issue? And what problems might this cause?

unfa
  • 589

3 Answers3

31

The issue is very similar to the one below, most likely there was a dd command ran over the device that caused the mismatch descriptor.

Ask Ubuntu: Unable to delete USB Drive partitions (Block size error)

The problem you are describing was caused by a low-level device tool (like dd) writing blocks at the wrong size directly onto the device.

To fix this, you need to re-write the device blocks to the appropriate size. This can be done with dd. Double check your output device before running the commands:

sudo dd if=/dev/zero of=/dev/sdd bs=2048 count=32 && sync

Once the dd command is done, you should be able to access your device through gparted.

LitmusD
  • 483
9

I don't want to steal someone else's work; the original contributor is Damiƶn la Bagh here: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1708881

Be warned that by performing this procedure you will lose the data you have on your drive. When successful, you will end up with a usable drive, but no attempt is made here at recovering data from it.

Identify your USB drive's letter, then issue the command:

sudo wipefs --all /dev/sdN  

(replace N with your disks's drive letter; this command should complete instantly.)

Launch gparted now; select the USB stick, which will appear empty. You'll first have to create a new partition table (Device > Create partition table). If you're unsure you can choose 'msdos'. This should also complete in a second. Then you'll be able to create new partitions as usual.

Roberto
  • 199
  • 1
  • 4
-2

Instead of the bs parameter it needs the obs parameter. From dd --help:

obs=BYTES       write BYTES bytes at a time (default: 512)

The command would be something like:

sudo dd if=/dev/zero of=/dev/sdd obs=2048 count=32 && sync
Gareth
  • 19,080