Resizing FAT32 filesystem?

Hi, How do you resize FAT32 filesystem? For ext2/3/4, there is 'resize2fs'. But, for msdos, GParted is the only program I can find. There must be some command-line program that can resize msdos filesystem. -- William

On Dec 18, 2016 9:14 AM, "William Park via talk" <talk@gtalug.org> wrote:
Hi,
How do you resize FAT32 filesystem?
Gparted evolved from parted http://www.thegeekstuff.com/2011/09/parted-command-examples
For ext2/3/4, there is 'resize2fs'. But, for msdos, GParted is the only program I can find. There must be some command-line program that can resize msdos filesystem. -- William --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
Hope this helps Russell

On Sun, Dec 18, 2016 at 11:13:30AM -0500, Russell Reiter wrote:
On Dec 18, 2016 9:14 AM, "William Park via talk" <talk@gtalug.org> wrote:
How do you resize FAT32 filesystem?
Gparted evolved from parted http://www.thegeekstuff.com/2011/09/parted-command-examples
Parted has 'resizepart' which resizes a partition (at least the end point). That's just for the partition, not for the filesystem inside. OK, just discovered 'fatresize' on Clonezilla, and probably available on other distros too. Also, discovered GParted Live iso, which makes my original question moot. -- William

| From: William Park via talk <talk@gtalug.org> | http://www.thegeekstuff.com/2011/09/parted-command-examples I usually use gparted: GUIs are sometimes easier for one-off tasks. Warning/superstition: resizing the main Windows partition and filesystem with gparted can leave it in an inconsistent state. After resizing but before doing anything else, boot into Windows and let it repair the partition. Windows itself is willing to resize its partition but won't move any unmoveable files. Some of those seem to be at the halfway point or further into the filesystem so shrinking by more than 50% isn't possible. Theory/superstition: gparted is willing to move the unmoveable files. Booting Windows repairs the damage. So this is the most effective way of shrinking.

On Dec 18, 2016 3:53 PM, "D. Hugh Redelmeier via talk" <talk@gtalug.org> wrote: | From: William Park via talk <talk@gtalug.org> | http://www.thegeekstuff.com/2011/09/parted-command-examples I usually use gparted: GUIs are sometimes easier for one-off tasks. <snip> Booting Windows repairs the damage. So this is the most effective way of shrinking. When I was first migrating linux onto M$ boxn my little mantra was defrag, dump, resize, restore. Didn't always work the magic correctly tho. :-( I never tried to shrink windows more than 50%, so I can't say for certain how much a fat partition may be shrunk. On the bright side, I realized I could usually clone the drive, switch jumpers to the new master and tool my way around. I use to lug two or three drives around with me for such times. --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk Russell Sent from mobile.

On Sun, Dec 18, 2016 at 12:18:22PM -0500, William Park via talk wrote:
Parted has 'resizepart' which resizes a partition (at least the end point). That's just for the partition, not for the filesystem inside.
OK, just discovered 'fatresize' on Clonezilla, and probably available on other distros too. Also, discovered GParted Live iso, which makes my original question moot.
Debian has a package named fatresize, which is based on libparted apparently. I never understood why parted 3 removed the resize command that parted 2 had. It makes no sense to remove a useful feature like that. -- Len Sorensen
participants (4)
-
D. Hugh Redelmeier
-
lsorense@csclub.uwaterloo.ca
-
Russell Reiter
-
William Park