FAT32 Partition Shrinking Issue

Asked by jean-christophe manciot

Hello everyone,

I'm trying to shrink a FAT32 boot partition which is 29.89 GB in size, 1008 MB used, 28.90 unused (on a USB drive).
It has been made bootable by Unetbootin with a 4 GB persistent file, which I have then deleted.
The goal is to create another partition after the first one to extend the persistence above 4 GB. The trick is to give this new partition the same name as the persistent file (casper-rw).

The issue is:
- if I downsize it to 1GB with "fatresize -v -p -s 1G /dev/sdb1", I get the error: "Unable to satisfy all constraints on the partition."
- If I downsize it to 2GB with "fatresize -v -p -s 2G /dev/sdb1", I get the waning/error:
"Warning: File system is reporting the free space as 1894262 clusters, not 1894260 clusters.
Segmentation fault (core dumped)" and nothing is done.

Do you have any suggestion?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu fatresize Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#1

I forgot to mention that this USB stick has a GPT partition table.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#2

Really? Not a clue?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The message "Warning: File system is reporting the free space as 1894262 clusters, not 1894260 clusters" probably indicates that the file system is inconsistent. Have you tried running fsck (or chkdsk on Windows) an that partition?

Maybe it is easier to copy the data elsewhere, re-partition the stick and copy the data back.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#4

Thanks for your answer, but in the meantime, I have moved on to another way of dealing with my problem.
I have found a way to very simply install Ubuntu 14.04 on a USB stick, instead of having a live CD, which is difficult to manage regarding a large persistence area.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#5

I meant ... instead of having a live ***USB*** of course

Can you help with this problem?

Provide an answer of your own, or ask jean-christophe manciot for more information if necessary.

To post a message you must log in.