Topic: Vista/XP dont accept a shrinked Fat32 partition (USB-stick)
I test with systenrescuecd 4.5.0 and gparted-live-0.21.0-1-i586.iso
GParted 0.21.0 --enable-online-resize
Libparted 3.2
After a shrink the the FAT32 filesystem it is full working with linux.
WinXP/Vista show the "bad filesystem,want format" dialog.
This happens every time i try to shrink a FAt32 filesysten on a USB stick.
A crosscheck with an old system show minor differences, but i dont know what is going wrong.
One different thing is the root directory start:
bad try:
Root directory start at cluster 489 (arbitrary size)
good try, old gparted:
Root directory start at cluster 7 (arbitrary size)
Here are some details:
gparted log:
GParted 0.21.0 --enable-online-resize
Libparted 3.2
Shrink /dev/sdb1 from 1.93 GiB to 1000.00 MiB 00:00:11 ( SUCCESS )
calibrate /dev/sdb1 00:00:00 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 4050943
size: 4048896 (1.93 GiB)
check file system on /dev/sdb1 for errors and (if possible) fix them 00:00:02 ( SUCCESS )
fsck.fat -a -w -v /dev/sdb1
fsck.fat 3.0.26 (2014-03-07)
fsck.fat 3.0.26 (2014-03-07)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
2020864 bytes per FAT (= 3947 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 4058112 (sector 7926)
505121 data clusters (2068975616 bytes)
62 sectors/track, 64 heads
2048 hidden sectors
4048896 sectors total
/
Bad short file name ().
Auto-renaming it.
Renamed to
Reclaiming unconnected clusters.
Checking free cluster summary.
/dev/sdb1: 1 files, 1/505121 clusters
shrink file system 00:00:08 ( SUCCESS )
using libparted
shrink partition from 1.93 GiB to 1000.00 MiB 00:00:01 ( SUCCESS )
old start: 2048
old end: 4050943
old size: 4048896 (1.93 GiB)
new start: 2048
new end: 2050047
new size: 2048000 (1000.00 MiB)
========================================
bad /dev/sdb1 dump
00000000 28 66 c0 4d 53 57 49 4e 34 2e 31 00 02 08 28 00 |(f.MSWIN4.1...(.|
00000010 02 00 00 00 00 f8 00 00 3e 00 40 00 00 08 00 00 |........>.@.....|
00000020 00 40 1f 00 cf 07 00 00 00 00 00 00 02 00 00 00 |.@..............|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 00 29 13 f2 81 1f 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 09 09 01 01 01 01 | FAT32 ......|
00000060 01 01 01 02 3a 3a 3a 31 39 33 31 00 18 00 00 00 |....:::1931.....|
00000070 18 00 00 00 01 00 00 00 48 00 00 00 88 00 00 00 |........H.......|
00000080 01 00 10 00 00 00 00 00 01 00 00 00 00 00 00 00 |................|
00000090 06 00 10 00 00 00 00 00 a8 03 7c 08 00 00 00 00 |..........|.....|
000000a0 07 00 10 00 00 00 00 00 d8 05 7c 08 00 00 00 00 |..........|.....|
000000b0 0b 00 10 00 00 00 00 00 08 0f 7d 08 00 00 00 00 |..........}.....|
000000c0 0c 00 10 00 00 00 00 00 58 08 7d 08 00 00 00 00 |........X.}.....|
000000d0 0e 00 10 00 00 00 00 00 81 44 00 00 00 00 00 00 |.........D......|
000000e0 01 00 60 00 00 00 00 00 8f 34 cf 54 00 00 00 00 |..`......4.T....|
000000f0 01 00 20 01 00 00 00 00 01 00 00 00 00 00 00 00 |.. .............|
00000100 08 01 00 00 88 00 00 00 00 00 00 00 00 00 00 00 |................|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
working reference dump:
00000000 eb 58 90 4d 53 57 49 4e 34 2e 31 00 02 08 28 00 |.X.MSWIN4.1...(.|
00000010 02 00 00 00 00 f8 00 00 3e 00 40 00 00 08 00 00 |........>.@.....|
00000020 00 60 1f 00 d7 07 00 00 00 00 00 00 02 00 00 00 |.`..............|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 00 29 f5 45 1d 1e 4e 4f 20 4e 41 4d 45 20 20 |..).E..NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*