How to resize a vfat/fat32/fat16 partition correctly?

Topics about disk partitioning (fdisk, parted, gparted, partimage), Volumes Management (lvm, evms, dmraid), Storage, file systems, ...
ottavio
Posts: 25
Joined: 13 Apr 2013, 17:58

How to resize a vfat/fat32/fat16 partition correctly?

Postby ottavio » 07 Feb 2015, 15:57

Hello all,

up until a few days ago I had an old version of SysResCD ( a couple of years ago), with which I was able to shrink fat32 partitions on my many usb drives, using Gparted.

A couple of days ago I have updated to the latest SysRescCD, presumably also upgrading Gparted.

Since then, all my operations on my usb drive end up in massive filesystem corruption. Thanks God I had backups, otherwise I'd have lost all my precious data.

Was I being lucky before or is there a bug in the new Gparted?

Otherwise which other program can shrink a FAT partition correctly?

Thanks

Ottavio

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby gernot » 07 Feb 2015, 16:21

Got you error messages while resizing the partition?
Have you the gparted log?
Work your device now well?

There is a gparted forum. http://gparted.org/forum.php

Gernot

ottavio
Posts: 25
Joined: 13 Apr 2013, 17:58

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby ottavio » 07 Feb 2015, 16:33

Hi Gernot (and by the way I'm still not receiving any notifications and my email is valid),

gernot wrote:Got you error messages while resizing the partition?

No error messages during partitions.
gernot wrote:Have you the gparted log?

Unfortunately not, but it said that all operations were successful. Tried this on there different usb brands, same filesystem corruption. In other words it messed up the partition table and corrupted 10% of the files/

gernot wrote:Work your device now well?

It works well after re-formatting.

Maybe I should use parted?

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby gernot » 07 Feb 2015, 16:59

Which sysrcd version use you?

No, I think there was something wrong.
gparted make a filesystemcheck after resizing the partition and show errors immediately.

Had you a partition mounted before or after resizing? Maybe there is a "detect mount","reread table" or "sync" problem in the system.

Tried you again?
Got you the error again.
How many free/used space had the device?


Gernot

ottavio
Posts: 25
Joined: 13 Apr 2013, 17:58

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby ottavio » 07 Feb 2015, 20:12

I'm using systemrescuecd-x86-4.5.1.

No, the partition was not mounted before.

I've done this with previous versions (last one I downloaded in 2013) and resized fat32 usb drives with no errors.

There was plenty of free space. I made a new partition of 4GB. After rebooting the usb was not recognized by Windows. Under Linux I can see both partitions and mount them, but not under Windows.

Surely the new Gparted must have introduced some changes.

I also have the Gparted livecd, but now I am scared of using it.

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby gernot » 07 Feb 2015, 20:48

i can second this Problem.
After shrinking the partition on the stick and creating a second partition it work well under linux but XP dont find the filesystem.

The device had a syslinux boot record and showed a FAT warning after writing a MBR.
It worked well before shrinking.

Was your device bootable?

Gernot

ottavio
Posts: 25
Joined: 13 Apr 2013, 17:58

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby ottavio » 08 Feb 2015, 15:05

gernot wrote:i can second this Problem.
After shrinking the partition on the stick and creating a second partition it work well under linux but XP dont find the filesystem.

Sorry for that, but at least I'm not the only one.
gernot wrote:The device had a syslinux boot record and showed a FAT warning after writing a MBR.
It worked well before shrinking.

Was your device bootable?

Gernot

No, the devices were not bootable. The first device was also severely corrupted, I had to format it completely and restore it. The second didn't have a boot record, i was only using it as a backup drive, but was not visible under Windows 7.

Have you got the latest Gparted 0.21 and tried with that?

I am now scared of using Gparted. Next I wanted to do is to resize my hd with Windows 7 on it. In the past I had no problems, but now I don't want to sacrifice an entire installation.

Worst come worst, I'd have to ask on the Gparted forum and point a link to this forum.

The problem with gparted is that they always say: Upgrade to the last version first and then report bugs.

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby gernot » 08 Feb 2015, 15:20

I don't used gparted live.
I think its a libparted problem.
I used a clean device, created a F32 partition with gparted, test it.
Linux ok, Win ok.
After shrinking with gparted linux is full working, but Windows fails.
I think one setting used by win only got a wrong value while shrinking.

Gernot

ottavio
Posts: 25
Joined: 13 Apr 2013, 17:58

Re: How to resize a vfat/fat32/fat16 partition correctly?

Postby ottavio » 11 Feb 2015, 14:53

Apparently new versions of libparted cannot resize vfat partitions properly. The folks at Gparted cannot be bothered to edit Gparted to display a warning for vfat partitions. I will raise a feature request to remove Gparted from SystemRescueCD.


Return to “Hard-disk partitioning and storage”

Who is online

Users browsing this forum: No registered users and 2 guests