1 (edited by dark shadow 2010-07-05 11:37:37)

Topic: gparted-0.6.0: Invalid partition table, wrong signature 0

Hi, I've tried to change my partition tables, but during the process something went wrong and now some partitions are lost. The data should still be intact, maybe someone can help me recover the partitions? I guess it will become rather tricky, though.

This is the current state (I can still boot the system):

omitting empty partition (12)

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
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: 0x00090140

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    19647494     9823716    7  HPFS/NTFS
/dev/sda2        19647495  1953523054   966937780    f  W95 Ext'd (LBA)
/dev/sda5        19647558    20177639      265041   83  Linux
/dev/sda6        20177703    36949499     8385898+  83  Linux
/dev/sda7        36949563    57914324    10482381   83  Linux
/dev/sda8        57914388    66300254     4192933+  83  Linux
/dev/sda9        66300318   695453849   314576766   83  Linux
/dev/sda10      695453913   822062114    63304101    7  HPFS/NTFS
/dev/sda11      822062178   989828193    83883008    7  HPFS/NTFS

Command (m for help): x

Expert command (m for help): p

Disk /dev/sda: 255 heads, 63 sectors, 121601 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 80   1   1    0 254  63 1023         63   19647432 07
 2 00 254  63 1023 254  63 1023   19647495 1933875560 0f
 3 00   0   0    0   0   0    0          0          0 00
 4 00   0   0    0   0   0    0          0          0 00
 5 00 254  63 1023 254  63 1023         63     530082 83
 6 00 254  63 1023 254  63 1023         63   16771797 83
 7 00 254  63 1023 254  63 1023         63   20964762 83
 8 00 254  63 1023 254  63 1023         63    8385867 83
 9 00 254  63 1023 254  63 1023         63  629153532 83
10 00 254  63 1023 254  63 1023         63  126608202 07
11 00 254  63 1023 254  63 1023         63  167766016 07

What I did:
1. First step (and mistake maybe) was to extend sda2 to fill the whole empty space, ignoring cylinder boundaries (chose 'align to None' in resize window).
2. This worked well, and then I resized sda13 (more than 300Gib) to grow to the empty space (again, 'align to None') and leave 22Gib space at the beginning. This also worked well.
3. Now I wanted to move the rest of the partitions to the right *edited* and started doing so with sda12 and sda11. Moving sda12 was successful, but an error occured after/during moving of sda11. sda11 should not be where it is now, and I think the filesystem has been moved already, but updating the partition table failed.

I saved the log file containing the error message (but not the log file from steps 1 and 2, since these operations were successful):

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' lang='en-US'>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
<title>GParted Details</title>
</head>
<body>
<p>GParted 0.6.0</p>
<p>Libparted 2.2</p>
<table border='0'>
<tr>
<td colspan='2'>
<b>Move /dev/sda12 to the right and shrink it from 80.00 GiB to 80.00 GiB</b>&nbsp;&nbsp;01:00:43&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
calibrate /dev/sda12&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>path: /dev/sda12<br />start: 989828973<br />end: 1157595704<br />size: 167766732 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda12 for errors and (if possible) fix them&nbsp;&nbsp;00:00:07&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br /><br />   36020 inodes used (35.18%)<br />    1152 non-contiguous files (3.2%)<br />      22 non-contiguous directories (0.1%)<br />         # of inodes with ind/dind/tind blocks: 0/0/0<br />         Extent depth histogram: 35996/14<br /> 6792372 blocks used (32.39%)<br />       0 bad blocks<br />       1 large file<br /><br />   35582 regular files<br />     429 directories<br />       0 character device files<br />       0 block device files<br />       0 fifos<br />       0 links<br />       0 symbolic links (0 fast symbolic links)<br />       0 sockets<br />--------<br />   36011 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
shrink file system&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>resize2fs /dev/sda12 83881983K</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Resizing the filesystem on /dev/sda12 to 20970495 (4k) blocks.<br />The filesystem on /dev/sda12 is now 20970495 blocks long.<br /><br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>resize2fs 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
shrink partition from 80.00 GiB to 80.00 GiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 989828973<br />old end: 1157595704<br />old size: 167766732 (80.00 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 989828973<br />new end: 1157592940<br />new size: 167763968 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda12 for errors and (if possible) fix them&nbsp;&nbsp;00:00:07&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br /><br />   36020 inodes used (35.18%)<br />    1153 non-contiguous files (3.2%)<br />      22 non-contiguous directories (0.1%)<br />         # of inodes with ind/dind/tind blocks: 0/0/0<br />         Extent depth histogram: 35996/14<br /> 6792372 blocks used (32.39%)<br />       0 bad blocks<br />       1 large file<br /><br />   35582 regular files<br />     429 directories<br />       0 character device files<br />       0 block device files<br />       0 fifos<br />       0 links<br />       0 symbolic links (0 fast symbolic links)<br />       0 sockets<br />--------<br />   36011 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow file system to fill the partition&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>resize2fs /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Resizing the filesystem on /dev/sda12 to 20970496 (4k) blocks.<br />The filesystem on /dev/sda12 is now 20970496 blocks long.<br /><br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>resize2fs 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda12 for errors and (if possible) fix them&nbsp;&nbsp;00:00:07&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br /><br />   36020 inodes used (35.18%)<br />    1153 non-contiguous files (3.2%)<br />      22 non-contiguous directories (0.1%)<br />         # of inodes with ind/dind/tind blocks: 0/0/0<br />         Extent depth histogram: 35996/14<br /> 6792372 blocks used (32.39%)<br />       0 bad blocks<br />       1 large file<br /><br />   35582 regular files<br />     429 directories<br />       0 character device files<br />       0 block device files<br />       0 fifos<br />       0 links<br />       0 symbolic links (0 fast symbolic links)<br />       0 sockets<br />--------<br />   36011 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
move file system to the right&nbsp;&nbsp;01:00:10&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
perform read-only test&nbsp;&nbsp;00:19:27&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
using internal algorithm
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 80.00 GiB
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
finding optimal block size
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 2.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.578177 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 4.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.345983 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 8.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.288019 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 16.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.265941 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
optimal block size is 16.00 MiB
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 79.93 GiB using a block size of 16.00 MiB&nbsp;&nbsp;00:19:25&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>79.93 GiB of 79.93 GiB read</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
80.00 GiB (85895151616 B) read
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
perform real move&nbsp;&nbsp;00:40:43&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
using internal algorithm
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 80.00 GiB
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
finding optimal block size
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 1.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.915863 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 2.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.729144 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 4.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.630139 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 8.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.552231 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 16.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.550592 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
optimal block size is 16.00 MiB
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 79.92 GiB using a block size of 16.00 MiB&nbsp;&nbsp;00:40:39&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>79.92 GiB of 79.92 GiB copied</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
80.00 GiB (85895151616 B) copied
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
move partition to the right&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 989828973<br />old end: 1157592940<br />old size: 167763968 (80.00 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 1035968512<br />new end: 1203732479<br />new size: 167763968 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda12 for errors and (if possible) fix them&nbsp;&nbsp;00:00:07&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>e2fsck -f -y -v /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br /><br />   36020 inodes used (35.18%)<br />    1153 non-contiguous files (3.2%)<br />      22 non-contiguous directories (0.1%)<br />         # of inodes with ind/dind/tind blocks: 0/0/0<br />         Extent depth histogram: 35996/14<br /> 6792372 blocks used (32.39%)<br />       0 bad blocks<br />       1 large file<br /><br />   35582 regular files<br />     429 directories<br />       0 character device files<br />       0 block device files<br />       0 fifos<br />       0 links<br />       0 symbolic links (0 fast symbolic links)<br />       0 sockets<br />--------<br />   36011 files<br /></i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>e2fsck 1.41.11 (14-Mar-2010)<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow file system to fill the partition&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>resize2fs /dev/sda12</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>resize2fs 1.41.11 (14-Mar-2010)<br />The filesystem is already 20970496 blocks long.  Nothing to do!<br /><br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
<table border='0'>
<tr>
<td colspan='2'>
<b>Move /dev/sda11 to the right and shrink it from 80.00 GiB to 80.00 GiB</b>&nbsp;&nbsp;00:57:12&nbsp;&nbsp;&nbsp;&nbsp;( ERROR )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
calibrate /dev/sda11&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>path: /dev/sda11<br />start: 822062178<br />end: 989828909<br />size: 167766732 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda11 for errors and (if possible) fix them&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P -i -f -v /dev/sda11</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896561152 bytes (85897 MB)<br />Current device size: 85896566784 bytes (85897 MB)<br />Checking for bad sectors ...<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Estimating smallest shrunken size supported ...<br />File feature         Last used at      By inode<br />$MFT               :     43679 MB             0<br />Multi-Record       :     53118 MB         11238<br />$MFTMirr           :         1 MB             1<br />Compressed         :     53097 MB         13330<br />Ordinary           :     52942 MB          9468<br />You might resize at 40901832704 bytes or 40902 MB (freeing 44995 MB).<br />Please make a test run using both the -n and -s options before real resizing!<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
shrink file system&nbsp;&nbsp;00:00:05&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
run simulation&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P --force /dev/sda11 -s 85896200191 --no-action</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896561152 bytes (85897 MB)<br />Current device size: 85896566784 bytes (85897 MB)<br />New volume size    : 85896192512 bytes (85897 MB)<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Needed relocations : 0 (0 MB)<br />Schedule chkdsk for NTFS consistency check at Windows boot time ...<br />Resetting $LogFile ... (this might take a while)<br />Updating $BadClust file ...<br />Updating $Bitmap file ...<br />Updating Boot record ...<br />The read-only test run ended successfully.<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
real resize&nbsp;&nbsp;00:00:03&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P --force /dev/sda11 -s 85896200191</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896561152 bytes (85897 MB)<br />Current device size: 85896566784 bytes (85897 MB)<br />New volume size    : 85896192512 bytes (85897 MB)<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Needed relocations : 0 (0 MB)<br />Schedule chkdsk for NTFS consistency check at Windows boot time ...<br />Resetting $LogFile ... (this might take a while)<br />Updating $BadClust file ...<br />Updating $Bitmap file ...<br />Updating Boot record ...<br />Syncing device ...<br />Successfully resized NTFS on device &apos;/dev/sda11&apos;.<br />You can go on to shrink the device for example with Linux fdisk.<br />IMPORTANT: When recreating the partition, make sure that you<br />  1)  create it at the same disk sector (use sector as the unit!)<br />  2)  create it with the same partition type (usually 7, HPFS/NTFS)<br />  3)  do not make it smaller than the new NTFS filesystem size<br />  4)  set the bootable flag for the partition if it existed before<br />Otherwise you won&apos;t be able to access NTFS or can&apos;t boot from the disk!<br />If you make a mistake and don&apos;t have a partition table backup then you<br />can recover the partition table by TestDisk or Parted&apos;s rescue mode.<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
shrink partition from 80.00 GiB to 80.00 GiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 822062178<br />old end: 989828909<br />old size: 167766732 (80.00 GiB)</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>new start: 822062178<br />new end: 989828193<br />new size: 167766016 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda11 for errors and (if possible) fix them&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P -i -f -v /dev/sda11</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896192512 bytes (85897 MB)<br />Current device size: 85896200192 bytes (85897 MB)<br />Checking for bad sectors ...<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Estimating smallest shrunken size supported ...<br />File feature         Last used at      By inode<br />$MFT               :     43679 MB             0<br />Multi-Record       :     53118 MB         11238<br />$MFTMirr           :         1 MB             1<br />Compressed         :     53097 MB         13330<br />Ordinary           :     52942 MB          9468<br />You might resize at 40901832704 bytes or 40902 MB (freeing 44995 MB).<br />Please make a test run using both the -n and -s options before real resizing!<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
grow file system to fill the partition&nbsp;&nbsp;00:00:03&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
run simulation&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P --force /dev/sda11 --no-action</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896192512 bytes (85897 MB)<br />Current device size: 85896200192 bytes (85897 MB)<br />New volume size    : 85896196608 bytes (85897 MB)<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Schedule chkdsk for NTFS consistency check at Windows boot time ...<br />Resetting $LogFile ... (this might take a while)<br />Updating $BadClust file ...<br />Updating $Bitmap file ...<br />Updating Boot record ...<br />The read-only test run ended successfully.<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
real resize&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P --force /dev/sda11</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896192512 bytes (85897 MB)<br />Current device size: 85896200192 bytes (85897 MB)<br />New volume size    : 85896196608 bytes (85897 MB)<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />WARNING: Every sanity check passed and only the dangerous operations left.<br />Make sure that important data has been backed up! Power outage or computer<br />crash may result major data loss!<br />Are you sure you want to proceed (y/[n])? Schedule chkdsk for NTFS consistency check at Windows boot time ...<br />Resetting $LogFile ... (this might take a while)<br />Updating $BadClust file ...<br />Updating $Bitmap file ...<br />Updating Boot record ...<br />Syncing device ...<br />Successfully resized NTFS on device &apos;/dev/sda11&apos;.<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
check file system on /dev/sda11 for errors and (if possible) fix them&nbsp;&nbsp;00:00:02&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<b><i>ntfsresize -P -i -f -v /dev/sda11</i></b>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>ntfsresize v2.0.0 (libntfs 10:0:0)<br />Device name        : /dev/sda11<br />NTFS volume version: 3.1<br />Cluster size       : 4096 bytes<br />Current volume size: 85896196608 bytes (85897 MB)<br />Current device size: 85896200192 bytes (85897 MB)<br />Checking for bad sectors ...<br />Checking filesystem consistency ...<br />Accounting clusters ...<br />Space in use       : 40902 MB (47.6%)<br />Collecting resizing constraints ...<br />Estimating smallest shrunken size supported ...<br />File feature         Last used at      By inode<br />$MFT               :     43679 MB             0<br />Multi-Record       :     53118 MB         11238<br />$MFTMirr           :         1 MB             1<br />Compressed         :     53097 MB         13330<br />Ordinary           :     52942 MB          9468<br />You might resize at 40901832704 bytes or 40902 MB (freeing 44995 MB).<br />Please make a test run using both the -n and -s options before real resizing!<br /></i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
move file system to the right&nbsp;&nbsp;00:56:57&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
perform read-only test&nbsp;&nbsp;00:18:15&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
using internal algorithm
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 80.00 GiB
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
finding optimal block size
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 2.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.521393 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 4.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.277813 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 8.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.286245 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 16.00 MiB using a block size of 16.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB read</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.249141 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
optimal block size is 16.00 MiB
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
read 79.93 GiB using a block size of 16.00 MiB&nbsp;&nbsp;00:18:14&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>79.93 GiB of 79.93 GiB read</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
80.00 GiB (85896200192 B) read
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
perform real move&nbsp;&nbsp;00:38:42&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
using internal algorithm
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 80.00 GiB
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
finding optimal block size
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 1.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.885389 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 2.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.652356 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 4.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.563759 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 8.00 MiB&nbsp;&nbsp;00:00:01&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.533242 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 16.00 MiB using a block size of 16.00 MiB&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>16.00 MiB of 16.00 MiB copied</i>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
<i>0.521897 seconds</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
optimal block size is 16.00 MiB
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
copy 79.92 GiB using a block size of 16.00 MiB&nbsp;&nbsp;00:38:39&nbsp;&nbsp;&nbsp;&nbsp;( SUCCESS )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>79.92 GiB of 79.92 GiB copied</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
80.00 GiB (85896200192 B) copied
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
move partition to the right&nbsp;&nbsp;00:00:00&nbsp;&nbsp;&nbsp;&nbsp;( ERROR )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>old start: 822062178<br />old end: 989828193<br />old size: 167766016 (80.00 GiB)</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border='0'>
<tr>
<td colspan='2'>
libparted messages&nbsp;&nbsp;&nbsp;&nbsp;( INFO )
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<table border='0'>
<tr>
<td colspan='2'>
<i>Invalid partition table on /dev/sda -- wrong signature 0.</i>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>========================================</p>
</body>
</html>

Testdisk log file (Analyse)

Mon Jul  5 10:25:05 2010
Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.34-tuxonice (#5 SMP PREEMPT Sun May 30 14:14:25 CEST 2010)
Compiler: GCC 4.4 - Jan 25 2010 08:49:24
ext2fs lib: 1.41.11, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       1953523055 sectors
/dev/sda: user_max   1953523055 sectors
/dev/sda: native_max 1953525168 sectors
/dev/sda: dco        1953525168 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       976771055 sectors
/dev/sdb: user_max   976771055 sectors
/dev/sdb: native_max 976773168 sectors
/dev/sdb: dco        976773168 sectors
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA WDC WD10EADS-00M
Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ATA SAMSUNG HD501LJ

Partition table type (auto): Intel
/dev/sda: Host Protected Area (HPA) present.
Disk /dev/sda - 1000 GB / 931 GiB - ATA WDC WD10EADS-00M
Partition table type: Intel
New options :
 Dump : No
 Cylinder boundary : No
 Allow partial last cylinder : Yes
 Expert mode : Yes
Computes LBA from CHS for Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 43290/1/1
Info: size boot_sector 126608193, partition 126608202
NTFS at 51171/1/1
Info: size boot_sector 167766009, partition 167766016
get_geometry_from_list_part_aux head=255 nbr=28
get_geometry_from_list_part_aux head=8 nbr=5
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=28
 1 * HPFS - NTFS              0   1  1  1222 254 63   19647432
     NTFS, 10059 MB / 9593 MiB
 2 E extended LBA          1223   0  1 121601  47 29 1933875560
 5 L Linux                 1223   1  1  1255 254 63     530082
     EXT2 Sparse superblock, 271 MB / 258 MiB
   X extended              1256   0  1  2299 254 63   16771860
 6 L Linux                 1256   1  1  2299 254 63   16771797
     EXT4 Large file Sparse superblock Recover, 8587 MB / 8189 MiB
   X extended              2300   0  1  3604 254 63   20964825
 7 L Linux                 2300   1  1  3604 254 63   20964762
     EXT4 Large file Sparse superblock Recover, 10733 MB / 10236 MiB
   X extended              3605   0  1  4126 254 63    8385930
 8 L Linux                 3605   1  1  4126 254 63    8385867
     EXT4 Large file Sparse superblock Recover, 4293 MB / 4094 MiB
   X extended              4127   0  1 43289 254 63  629153595
 9 L Linux                 4127   1  1 43289 254 63  629153532
     EXT4 Large file Sparse superblock Recover, 322 GB / 300 GiB
   X extended             43290   0  1 51170 254 63  126608265
10 L HPFS - NTFS          43290   1  1 51170 254 63  126608202
     NTFS, 64 GB / 60 GiB
   X extended             51171   0  1 61613 243 40  167766079
11 L HPFS - NTFS          51171   1  1 61613 243 40  167766016
     NTFS, 85 GB / 79 GiB
   X extended             64486   0  1 74928 224 48  167764890

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 43290/1/1
Info: size boot_sector 126608193, partition 126608202
NTFS at 51171/1/1
Info: size boot_sector 167766009, partition 167766016
get_geometry_from_list_part_aux head=255 nbr=28
get_geometry_from_list_part_aux head=8 nbr=5
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=28
Current partition structure:
 1 * HPFS - NTFS              0   1  1  1222 254 63   19647432
 2 E extended LBA          1223   0  1 121601  47 29 1933875560
 5 L Linux                 1223   1  1  1255 254 63     530082
   X extended              1256   0  1  2299 254 63   16771860
 6 L Linux                 1256   1  1  2299 254 63   16771797
   X extended              2300   0  1  3604 254 63   20964825
 7 L Linux                 2300   1  1  3604 254 63   20964762
   X extended              3605   0  1  4126 254 63    8385930
 8 L Linux                 3605   1  1  4126 254 63    8385867
   X extended              4127   0  1 43289 254 63  629153595
 9 L Linux                 4127   1  1 43289 254 63  629153532
   X extended             43290   0  1 51170 254 63  126608265
10 L HPFS - NTFS          43290   1  1 51170 254 63  126608202
   X extended             51171   0  1 61613 243 40  167766079
11 L HPFS - NTFS          51171   1  1 61613 243 40  167766016
   X extended             64486   0  1 74928 224 48  167764890

test_logical: 
Partition sector doesn't have the endmark 0xAA55
Backup partition structure
partition_save
Ask the user for vista mode
Allow partial last cylinder : Yes
search_vista_part: 0

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63
NTFS at 0/1/1
filesystem size           19647432
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               16
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1  1222 254 63   19647432
     NTFS, 10059 MB / 9593 MiB

recover_EXT2: s_block_group_nr=0/32, s_mnt_count=0/4294967295, s_blocks_per_group=8192, s_inodes_per_group=304
recover_EXT2: s_blocksize=1024
recover_EXT2: s_blocks_count 265040
recover_EXT2: part_size 530080
     Linux                 1223   1  1  1255 254 61     530080
     EXT2 Sparse superblock, 271 MB / 258 MiB

recover_EXT2: s_block_group_nr=0/63, s_mnt_count=13/4294967295, s_blocks_per_group=32768, s_inodes_per_group=6256
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 2096474
recover_EXT2: part_size 16771792
     Linux                 1256   1  1  2299 254 58   16771792
     EXT4 Large file Sparse superblock Recover, 8587 MB / 8189 MiB

recover_EXT2: s_block_group_nr=0/79, s_mnt_count=11/4294967295, s_blocks_per_group=32768, s_inodes_per_group=1888
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 2620595
recover_EXT2: part_size 20964760
     Linux                 2300   1  1  3604 254 61   20964760
     EXT4 Large file Sparse superblock Recover, 10733 MB / 10236 MiB

recover_EXT2: s_block_group_nr=0/31, s_mnt_count=3/4294967295, s_blocks_per_group=32768, s_inodes_per_group=9376
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1048233
recover_EXT2: part_size 8385864
     Linux                 3605   1  1  4126 254 60    8385864
     EXT4 Large file Sparse superblock Recover, 4293 MB / 4094 MiB

recover_EXT2: s_block_group_nr=0/2400, s_mnt_count=10/4294967295, s_blocks_per_group=32768, s_inodes_per_group=48
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 78644191
recover_EXT2: part_size 629153528
     Linux                 4127   1  1 43289 254 59  629153528
     EXT4 Large file Sparse superblock Recover, 322 GB / 300 GiB
NTFS at 43290/1/1
filesystem size           126608193
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               16
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          43290   1  1 51170 254 54  126608193
     NTFS, 64 GB / 60 GiB
NTFS at 51171/1/1
filesystem size           167766009
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               16
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          51171   1  1 61613 243 33  167766009
     NTFS, 85 GB / 79 GiB

block_group_nr 25

recover_EXT2: "e2fsck -b 819200 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=25/639, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 20970496
recover_EXT2: part_size 167763968
     Linux                64486  14 39 74928 224 46  167763968
     EXT4 Large file Sparse superblock Backup superblock, 85 GB / 79 GiB

HFS magic value at 101212/1/1
part_size 513703065
     HFS                  101212   1  1 133188 137 57  513703065 [#"!]
     HFS, 263 GB / 244 GiB
This partition ends after the disk limits. (start=1625970843, size=513703065, end=2139673907, disk end=1953536130)
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (1000 GB / 931 GiB) seems too small! (< 1095 GB / 1020 GiB)
The following partition can't be recovered:
     HFS                  101212   1  1 133188 137 57  513703065 [#"!]
     HFS, 263 GB / 244 GiB
get_geometry_from_list_part_aux head=255 nbr=15
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geom

Log ends here because I tried to access the last linux partition and list files with <P> which results in a core dump.



I know it is complicated, but would someone be willing to help and give me instructions what I could do to recover the lost partitions?

Edit: I meant I tried to move the partitions to the right of course, not to the left.

2

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

Additional information:
I used gparted-0.6.0 from sysresccd (http://www.sysresccd.org/Download).
I have made a backup of the partition table before step 1, but - unfortunately - not before step 3.

3

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

When you used "Align to none", did you remember to leave 1 MiB of unallocated space for the Extended Boot Record for each logical partition?

If not, then I expect that the problem is that the EBR was overwritten.  This would explain why you encountered the following messsage:

libparted messages    ( INFO )
         
Invalid partition table on /dev/sda -- wrong signature 0.

You will need to free up space for the EBR in order to restore the logical partition chaining for the lost partition.

You can read more about the three alignment options in the GParted Manual.

4

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

Today I just encountered this problem using "Align to MiB" and GParted-Live-0.6.0-7.  I will be performing more testing to isolate the cause of the problem.  For me it happened on a shrink and move to the right operation too.  It would appear that you may have discovered a bug in this new 0.6.0 release.

5

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

The following bug report has been opened regarding this problem with the invalid partition table:
Bug 623630 - Move logical partition to right yields invalid partition table on /dev/sda -- wrong signature 0

6

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

First, thanks for your response.

I forgot about an important feature of testdisk: Deep scan. It's quite slow and takes a few hours, but after doing this, I got the following partitions for selection:

TestDisk 6.11, Data Recovery Utility, April 2009                                                                
Christophe GRENIER <grenier@cgsecurity.org>                                                                     
http://www.cgsecurity.org                                                                                       
                                                                                                                
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63                                                           
     Partition               Start        End    Size in sectors                                                
* HPFS - NTFS              0   1  1  1222 254 63   19647432                                                     
P Linux                 1223   1  1  1255 254 61     530080                                                     
P Linux                 1256   1  1  2299 254 58   16771792                                                     
L Linux                 2300   1  1  3604 254 61   20964760                                                     
L Linux                 3605   1  1  4126 254 60    8385864                                                     
L Linux                 4127   1  1 43289 254 59  629153528                                                     
D HPFS - NTFS          43290   1  1 51170 254 54  126608193                                                     
D HPFS - NTFS          43290   1 10 51170 254 63  126608193                                                     
D HPFS - NTFS          51171   1  1 61613 243 33  167766009                                                     
D HPFS - NTFS          54043  27  1 64486  14 33  167766009                                                     
D Linux                64486  14 39 74928 224 46  167763968                                                     
D Linux                64486  14 41 74928 224 48  167763968                                                     
L Linux                74929   2 18 121601  25 24  749787136                                                    

Structure: Ok.  Use Up/Down Arrow keys to select partition.                                                     
Use Left/Right Arrow keys to CHANGE partition characteristics:                                                  
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted                                                 
Keys A: add partition, L: load backup, T: change type, P: list files,                                           
     Enter: to continue                                                                                         
NTFS, 10059 MB / 9593 MiB                                                                                       

I was able to recover all my data from the partitions using testdisk, and then I restored the appropriate partitions.

Unfortunately, I will still have to recreate the partition layout from scratch because now the extended partition is too big for the drive, and fdisk seems to have some bug which won't let me enter the values I want. It just says sector is already assigned for some partition (and then when retrying it says "value is out of range"), even when this is clearly not the case.

While I can mount and access all my data and list the partition table with fdisk, gparted claims no space is allocated because the extended partition is bigger than the drive:

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
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: 0x00090140

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    19647494     9823716    7  HPFS/NTFS
/dev/sda2        19647495  1953536129   966944317+   f  W95 Ext'd (LBA)
/dev/sda5        19647558    20177637      265040   83  Linux
/dev/sda6        20177703    36949494     8385896   83  Linux
/dev/sda7        36949563    57914322    10482380   83  Linux
/dev/sda8        57914388    66300251     4192932   83  Linux
/dev/sda9        66300318   695453845   314576764   83  Linux
/dev/sda10      695453913   822062105    63304096+   7  HPFS/NTFS
/dev/sda11      868202496  1035968504    83883004+   7  HPFS/NTFS
/dev/sda12     1035968512  1203732479    83881984   83  Linux
/dev/sda13     1203734528  1953521663   374893568   83  Linux

BTW: systemrescuecd-0.5.7 uses libparted-2.2.

7

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

Thank you for reporting back with how you recovered your data.  This could prove very useful to anyone else who encounters this serious problem when moving a logical partition to the right.

We have added a warning to the download page while we work to resolve the root cause of this problem.

8

Re: gparted-0.6.0: Invalid partition table, wrong signature 0

GParted 0.6.1 has been released and contains code to reduce the chance of this problem occurring.