As explained in several previous posts I had a crash and needed to restore my working partition and the data included therein. Finally managed to get almost everything back. Also updated to 13.10 (from 13.04) in the process.
However, though the partition table is shown correctly in Windows XP, 13.10 does not completely agree. The partition are there but the partition sizes are incorrect. Some parts of my original installation are missing.
Here are the results of my exploration of the disk.
CODE: lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 93.2G 0 disk
├─sda1 8:1 0 48.3G 0 part
├─sda2 8:2 0 21.6G 0 part
├─sda3 8:3 0 22.7G 0 part /
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 629M 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
This table is a correct representation of the intended partitions on the harddrive.
sda2 is the Windows XP partition. Size ~ 21G
sda3 is a Linux partition with 13.10 installed. Size ~ 23G
sda1 is my main working Linux partition with 13.10.
Problem:
The size of sda1 is correct in the above table - ~48G. However this correct size does not show in any other query.
Or the partition does not show at all.
CODE: sudo fdisk -u -l
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders, total 195371568 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: 0x0004fe62
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 101330943 50664448 83 Linux
/dev/sda2 148906485 194081264 22587390 7 HPFS/NTFS/exFAT
/dev/sda3 101330944 148905983 23787520 83 Linux
/dev/sda4 194082814 195371007 644097 5 Extended
/dev/sda5 194082816 195371007 644096 82 Linux swap / Solaris
Here it is shown but not in the conventional manner.
Code: 'df -aT -h' results in an almost identical readout.
Here comes the problem:
CODE: sfdisk -ls /dev/sda
97685784
Disk /dev/sda: 12161 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary. <-----------------------------
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 6307- 6308- 50664448 83 Linux <----------------------------------
end: (c,h,s) expected (1023,254,63) found (1023,142,43)
/dev/sda2 9269 12080 2812 22587390 7 HPFS/NTFS/exFAT <---------------------------
start: (c,h,s) expected (1023,254,63) found (1023,0,1)
/dev/sda3 6307+ 9268- 2962- 23787520 83 Linux
/dev/sda4 12081+ 12161- 81- 644097 5 Extended
/dev/sda5 12081+ 12161- 81- 644096 82 Linux swap / Solaris
And forcing information on the main working partition has this result:
CODE: sudo sfdisk -ls /dev/sda1
50664448
Warning: start=2048 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
peter@pjj:~$ sudo sfdisk -ls -f /dev/sda1
50664448
And forcing information on /dev/sda1 finally explains the problem.
CODE: sudo sfdisk -ls -f /dev/sda1
50664448
Disk /dev/sda1: 6307 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda1: unrecognized partition table type
No partitions found
So, now I know what causes the strange behavior of my installation.
The great question now is however:
How do I fix this problem without destroying the existing data?
Could I please get some expert partitioning advice?
PS: How do I get rid of the typo in the title?
However, though the partition table is shown correctly in Windows XP, 13.10 does not completely agree. The partition are there but the partition sizes are incorrect. Some parts of my original installation are missing.
Here are the results of my exploration of the disk.
CODE: lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 93.2G 0 disk
├─sda1 8:1 0 48.3G 0 part
├─sda2 8:2 0 21.6G 0 part
├─sda3 8:3 0 22.7G 0 part /
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 629M 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
This table is a correct representation of the intended partitions on the harddrive.
sda2 is the Windows XP partition. Size ~ 21G
sda3 is a Linux partition with 13.10 installed. Size ~ 23G
sda1 is my main working Linux partition with 13.10.
Problem:
The size of sda1 is correct in the above table - ~48G. However this correct size does not show in any other query.
Or the partition does not show at all.
CODE: sudo fdisk -u -l
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders, total 195371568 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: 0x0004fe62
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 101330943 50664448 83 Linux
/dev/sda2 148906485 194081264 22587390 7 HPFS/NTFS/exFAT
/dev/sda3 101330944 148905983 23787520 83 Linux
/dev/sda4 194082814 195371007 644097 5 Extended
/dev/sda5 194082816 195371007 644096 82 Linux swap / Solaris
Here it is shown but not in the conventional manner.
Code: 'df -aT -h' results in an almost identical readout.
Here comes the problem:
CODE: sfdisk -ls /dev/sda
97685784
Disk /dev/sda: 12161 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary. <-----------------------------
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 6307- 6308- 50664448 83 Linux <----------------------------------
end: (c,h,s) expected (1023,254,63) found (1023,142,43)
/dev/sda2 9269 12080 2812 22587390 7 HPFS/NTFS/exFAT <---------------------------
start: (c,h,s) expected (1023,254,63) found (1023,0,1)
/dev/sda3 6307+ 9268- 2962- 23787520 83 Linux
/dev/sda4 12081+ 12161- 81- 644097 5 Extended
/dev/sda5 12081+ 12161- 81- 644096 82 Linux swap / Solaris
And forcing information on the main working partition has this result:
CODE: sudo sfdisk -ls /dev/sda1
50664448
Warning: start=2048 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
peter@pjj:~$ sudo sfdisk -ls -f /dev/sda1
50664448
And forcing information on /dev/sda1 finally explains the problem.
CODE: sudo sfdisk -ls -f /dev/sda1
50664448
Disk /dev/sda1: 6307 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda1: unrecognized partition table type
No partitions found
So, now I know what causes the strange behavior of my installation.
The great question now is however:
How do I fix this problem without destroying the existing data?
Could I please get some expert partitioning advice?
PS: How do I get rid of the typo in the title?
Comment