Topic: [SOLVED] Current NTFS volume size is bigger than the device size!
Hi guys
Thanks in advance and sorry to fall foul of this, didn't realise there was an issue with the version I used til I used it/ Haven't had a problem with it before.
So the problem is with /dev/sda1. I just shrank a windows partition form about 40GB down to 15GB and deleted another ntfs partition of about 40GB and put linux partitions in the space made.
The version of Gparted I used was 0.4.5 (on a Gentoo livedvd) (although now I have version 0.6.2)
And here are fdisk and parted...
linux-8qfw:/home/... # fdisk -l -u
Disk /dev/sda: 80.1 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders, total 156355584 sectors
Same problem, windows wont boot, gets in a few seconds then crashes.
Gparted doesn't seem to register a difference.
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3a393a39
Device Boot Start End Blocks Id System
/dev/sda1 63 30716279 15358108+ 7 HPFS/NTFS
/dev/sda2 * 30716280 156344579 62814150 f W95 Ext'd (LBA)
/dev/sda5 64500975 156344579 45921802+ 83 Linux
/dev/sda6 30716406 33784694 1534144+ 82 Linux swap / Solaris
/dev/sda7 33784758 64500974 15358108+ 83 Linux
Partition table entries are not in disk order
linux-8qfw:/home/... # parted /dev/sda unit s print
Model: ATA MAXTOR 6L080J4 (scsi)
Disk /dev/sda: 156355584s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 30716279s 30716217s primary ntfs type=07
2 30716280s 156344579s 125628300s extended boot, lba, type=0f
6 30716406s 33784694s 3068289s logical linux-swap(v1) type=82
7 33784758s 64500974s 30716217s logical ext4 type=83
5 64500975s 156344579s 91843605s logical ext4 type=83
I've run through the "Proposition of a tutorial for the NTFS size bug"
http://gparted-forum.surf4.info/viewtopic.php?id=13937
but it hasn't solved the problem.
"dd if=/dev/sda1 of=/home/.../bd.pbr bs=512 count=1 skip=63" gave:
0000000: 0101 0000 0000 0005 1200 0000 0010 1800 ................
0000010: ff01 1f00 0102 0000 0000 0005 2000 0000 ............ ...
0000020: 2002 0000 0010 1800 bf01 1300 0102 0000 ...............
0000030: 0000 0005 2000 0000 2302 0000 0010 1800 .... ...#.......
0000040: a900 1200 0102 0000 0000 0005 2000 0000 ............ ...
0000050: 2102 0000 0010 1400 bf01 1300 0101 0000 !...............
0000060: 0000 0001 0000 0000 0102 0000 0000 0005 ................
0000070: 2000 0000 2002 0000 0101 0000 0000 0005 ... ...........
0000080: 1200 0000 0000 0000 0000 0000 0000 0000 ................
0000090: c790 23f0 7f01 0000 905e 0000 0000 0000 ..#......^......
00000a0: 0001 0000 0100 0484 d000 0000 e000 0000 ................
00000b0: 0000 0000 1400 0000 0200 bc00 0800 0000 ................
00000c0: 0000 1800 ff01 1f00 0102 0000 0000 0005 ................
00000d0: 2000 0000 2002 0000 0013 1400 ff01 1f00 ... ...........
00000e0: 0101 0000 0000 0005 1200 0000 0013 1800 ................
00000f0: ff01 1f00 0102 0000 0000 0005 2000 0000 ............ ...
0000100: 2002 0000 001b 1400 0000 0010 0101 0000 ...............
0000110: 0000 0003 0000 0000 0013 1800 bf01 1300 ................
0000120: 0102 0000 0000 0005 2000 0000 2302 0000 ........ ...#...
0000130: 0013 1800 a900 1200 0102 0000 0000 0005 ................
0000140: 2000 0000 2102 0000 0012 1800 1601 0000 ...!...........
0000150: 0102 0000 0000 0005 2000 0000 2102 0000 ........ ...!...
0000160: 0013 1400 bf01 1300 0101 0000 0000 0001 ................
0000170: 0000 0000 0102 0000 0000 0005 2000 0000 ............ ...
0000180: 2002 0000 0101 0000 0000 0005 1200 0000 ...............
0000190: b28e 2f9b 8001 0000 905f 0000 0000 0000 ../......_......
00001a0: e800 0000 0100 0494 b800 0000 c800 0000 ................
00001b0: 0000 0000 1400 0000 0200 a400 0700 0000 ................
00001c0: 0003 1400 ff01 1f00 0101 0000 0000 0005 ................
00001d0: 1200 0000 0003 1800 ff01 1f00 0102 0000 ................
00001e0: 0000 0005 2000 0000 2002 0000 000b 1400 .... ... .......
00001f0: 0000 0010 0101 0000 0000 0003 0000 0000 ................
0000200: 0a
And I changed it to:
(using the value of 30716217-1=30716216, hexed=1d4b138, and then reversed and put in the third line "0000020")
0000000: 0101 0000 0000 0005 1200 0000 0010 1800 ................
0000010: ff01 1f00 0102 0000 0000 0005 2000 0000 ............ ...
0000020: 2002 0000 0010 1800 38b1 d401 0102 0000 .......8.......
0000030: 0000 0005 2000 0000 2302 0000 0010 1800 .... ...#.......
0000040: a900 1200 0102 0000 0000 0005 2000 0000 ............ ...
0000050: 2102 0000 0010 1400 bf01 1300 0101 0000 !...............
0000060: 0000 0001 0000 0000 0102 0000 0000 0005 ................
0000070: 2000 0000 2002 0000 0101 0000 0000 0005 ... ...........
0000080: 1200 0000 0000 0000 0000 0000 0000 0000 ................
0000090: c790 23f0 7f01 0000 905e 0000 0000 0000 ..#......^......
00000a0: 0001 0000 0100 0484 d000 0000 e000 0000 ................
00000b0: 0000 0000 1400 0000 0200 bc00 0800 0000 ................
00000c0: 0000 1800 ff01 1f00 0102 0000 0000 0005 ................
00000d0: 2000 0000 2002 0000 0013 1400 ff01 1f00 ... ...........
00000e0: 0101 0000 0000 0005 1200 0000 0013 1800 ................
00000f0: ff01 1f00 0102 0000 0000 0005 2000 0000 ............ ...
0000100: 2002 0000 001b 1400 0000 0010 0101 0000 ...............
0000110: 0000 0003 0000 0000 0013 1800 bf01 1300 ................
0000120: 0102 0000 0000 0005 2000 0000 2302 0000 ........ ...#...
0000130: 0013 1800 a900 1200 0102 0000 0000 0005 ................
0000140: 2000 0000 2102 0000 0012 1800 1601 0000 ...!...........
0000150: 0102 0000 0000 0005 2000 0000 2102 0000 ........ ...!...
0000160: 0013 1400 bf01 1300 0101 0000 0000 0001 ................
0000170: 0000 0000 0102 0000 0000 0005 2000 0000 ............ ...
0000180: 2002 0000 0101 0000 0000 0005 1200 0000 ...............
0000190: b28e 2f9b 8001 0000 905f 0000 0000 0000 ../......_......
00001a0: e800 0000 0100 0494 b800 0000 c800 0000 ................
00001b0: 0000 0000 1400 0000 0200 a400 0700 0000 ................
00001c0: 0003 1400 ff01 1f00 0101 0000 0000 0005 ................
00001d0: 1200 0000 0003 1800 ff01 1f00 0102 0000 ................
00001e0: 0000 0005 2000 0000 2002 0000 000b 1400 .... ... .......
00001f0: 0000 0010 0101 0000 0000 0003 0000 0000 ................
0000200: 0a
and put it back with:
"dd if=/home/.../bd.pbr of=/dev/sda1 bs=512 count=1 seek=63"
Please say if any more info is needed.
Any help would be appreciated. Cheers.
Ben