Shrinking a FAT32 partition on USB drive

Jerry Lapham rjlapham at gmail.com
Sat Mar 23 04:47:05 UTC 2013


I have a 160GB external USB drive for back up.  It has the single FAT32 
partition it came with.  I'd like to shrink it to a 100GB so I can Clonezilla 
a couple of 20GB  partitions from an old laptop onto it.

Using KDE Partition Manager I get the following after about 15 seconds:

Shrink partition ‘/dev/sdc1’ from 149.05 GiB to 98.42 GiB 
Job: Check file system on partition ‘/dev/sdc1’ 
Command: fsck.msdos -a -w -v /dev/sdc1 
Got 8315392 bytes instead of 19531276 at 19549696
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
  19533312 bytes per FAT (= 38151 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 39083008 (sector 76334)
   4882817 data clusters (160000147456 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
 312576642 sectors total 
Check file system on partition ‘/dev/sdc1’: Error

Checking partition ‘/dev/sdc1’ before resize/move failed. 
Shrink partition ‘/dev/sdc1’ from 149.05 GiB to 98.42 GiB: Error

After this, KDE Partition Manager shows the disk as unused, even after Refresh 
Devices.  Check and repair does the same thing.

After closing KDE Partition Manager, power off the USB drive, power on the USB 
drive (it mounts and the directories show in Dolphin), starting KDE Partition 
Manager and running Check and repair, I still get 

Check and repair partition ‘/dev/sdc1’ (149.05 GiB, fat32) 
Job: Check file system on partition ‘/dev/sdc1’ 
Command: fsck.msdos -a -w -v /dev/sdc1 
Got 8315392 bytes instead of 19531276 at 19549696
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
  19533312 bytes per FAT (= 38151 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 39083008 (sector 76334)
   4882817 data clusters (160000147456 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
 312576642 sectors total 
Check file system on partition ‘/dev/sdc1’: Error
Check and repair partition ‘/dev/sdc1’ (149.05 GiB, fat32): Error

What do I do now?

	-Jerry
=============================================
Jerry Lapham
Monroe, OH  45050
rjlapham at gmail.com
=============================================
My HMO assigned me to Dr. Kevorkian.




More information about the kubuntu-users mailing list