Is it possible to recreate a corrupted partition table from the installer data
in /var/log/installer/

I accidentally overwrote 5MB over /dev/sda - the partition table and
my /boot partion when
creating a bootable ISO on a USB key.

I have 1 * ext3 boot partition and 1 *  encrypted lvm root partition.
Below is an extract
of the partman log and the cdebconf log.

Is anything special required for crypto parititons?. Does the lvm
partition start from cylinder
62 or cylinder 31?

If I run cfdisk -z, I am guessing that I need
sda1, bootable, primary,type-linux,size-62 cyl,
sda5,,logical,type-lvm,size-rest-of-disk


I have been suspending/resuming the laptop since yesterday. A boot
will definitely
fail since the kernel has been wiped.  If I create and format the boot
parition I will re-install
the kernel.

I have backup up all data on the laptop, so if recreating the
partition fails I will re-install.

Thank you

Jeff

==== /var/log/installer/partman ===
.
.

Device: yes
Model: ATA TOSHIBA MK8037GS
Path: /dev/scsi/host0/bus0/target0/lun0/disc
Sector size: 512
Sectors: 156301488
Sectors/track: 63
Heads: 255
Cylinders: 9729
Partition table: yes
Type: msdos
Partitions: #   id      length  type    fs      path    name
(0,0,0) (0,0,62)        -1      0-32255 32256   primary label   
/dev/scsi/host0/bus0/target0/lun0/part-1
(0,1,0) (30,254,62)     1       32256-254983679 254951424       primary ext3    
/dev/scsi/host0/bus0/target0/lun0/part1
(31,0,0)        (9728,254,62)   2       254983680-80023749119   79768765440     
primary extended        /dev/scsi/host0/bus0/target0/lun0/part2
(31,0,0)        (31,0,62)       -1      254983680-255015935     32256   logical 
label   /dev/scsi/host0/bus0/target0/lun0/part-1
(31,1,0)        (9728,254,62)   5       255015936-80023749119   79768733184     
logical unknown /dev/scsi/host0/bus0/target0/lun0/part5
(9729,0,0)      (9729,80,62)    -1      80023749120-80026361855 2612736 primary 
label   /dev/scsi/host0/bus0/target0/lun0/part-1
Dump finished.
.

===== /var/log/installer/cdebconf ===
.
.

Name: partman/choose_partition
Template: partman/choose_partition
Value: Finish partitioning and write changes to disk
Owners: partman-base
Variables:
 CHOICES = Configure the Logical Volume Manager, Configure encrypted
volumes, Guided partitioning, Help on partitioning, , Encrypted volume
(sda5_cr
ypt) - 79.8 GB Linux device-mapper ,       #1  79.8 GB   K lvm  , LVM
VG shilan\, LV root - 76.5 GB Linux device-mapper   ,       #1  76.5
GB   f ex
t3       /    , LVM VG shilan\, LV swap_1 - 3.3 GB Linux device-mapper
    ,       #1   3.3 GB   f swap       swap      , SCSI1 (0\,0\,0)
(sda) - 80
.0 GB ATA TOSHIBA MK8037GS       ,       #1 primary  255.0 MB B F ext3
      /boot        ,       #5 logical   79.8 GB   K crypto
(sda5_crypt)
       , SCSI4 (0\,0\,0) (sdb) - 1.0 GB  USB FLASH DRIVE          ,
   #1   1.0 GB     fat16           , , Undo changes to partitions,
Finish par
titioning and write changes to disk

======
.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to