Restoring partition table.

2012-08-31 Thread Malcolm Reed

Hello,
bad news for me - I lost partition table in my 1Tb hard drive. All what
I have it's fdisk output of working drive:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00087837

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   1 973 7811072   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 9732189 9765888   8e  Linux LVM
/dev/sda32189   42715   325529600   8e  Linux LVM
 
Swap isn't changed, but I can't create manually sda2 and sda3
partitions - when I set count of cylinders, count of blocks is not equal
with original table (I think because I used different versions of fdisk
for installation and restoring). 

Can I convert fdisk output to sfdisk dump? How to convert count of
blocks to number of sectors for using with sfdisk? 
What can I do in this situation?

Excuse me for my bad English.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87r4qn59aa@gmail.com



Re: Restoring partition table.

2012-08-31 Thread Tom Grace
On 31/08/12 17:13, Malcolm Reed wrote:
 
 Hello,
 bad news for me - I lost partition table in my 1Tb hard drive. All what
 I have it's fdisk output of working drive:
 
 Can I convert fdisk output to sfdisk dump? How to convert count of
 blocks to number of sectors for using with sfdisk? 
 What can I do in this situation?

I would use Testdisk (should be in the repos), rather than try to copy
the partition table from another disk. Have a look at
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#Partition_table_recovery
for some ideas.

As ever with this stuff, be really careful that the partitions are
correct before writing anything to the disk.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/5040ea67.2010...@deathbycomputers.co.uk



Re: Restoring partition table.

2012-08-31 Thread Malcolm Reed
Tom Grace lists...@deathbycomputers.co.uk writes:

 I would use Testdisk (should be in the repos), rather than try to copy
 the partition table from another disk. Have a look at
 http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#Partition_table_recovery
 for some ideas.

 As ever with this stuff, be really careful that the partitions are
 correct before writing anything to the disk.
Thanks. Problem is solved. 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87ehmn571p@gmail.com