the error:
(parted) resize 3 1078 40000
Warning: Block 1114628 shouldn't have been marked (0, 1)!
Warning: Block 1180164 shouldn't have been marked (0, 1)!
Warning: Block 1245700 shouldn't have been marked (0, 1)!
Warning: Block 1311236 shouldn't have been marked (0, 1)!
Warning: Block 3736068 shouldn't have been marked (0, 1)!
Warning: Block 3801604 shouldn't have been marked (0, 1)!
Warning: Block 3867140 shouldn't have been marked (0, 1)!
Warning: Block 3932676 shouldn't have been marked (0, 1)!
# parted DEVICE unit co print unit s print
partitions:
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 78242975s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 2104514s 2104452s primary linux-swap boot
3 2104515s 36089843s 33985329s primary ext2
(parted) print free
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 1078MB 1077MB primary linux-swap boot
3 1078MB 18.5GB 17.4GB primary ext2
18.5GB 40.1GB 21.6GB Free Space
# parted --version
GNU Parted 1.8.1
Comment:
after moving partition 3 behind the swap partition, resize failed
I suppose 'dd' cleaning out the old location on the disk
would prevent this error