Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I backed up my hdd using

# dd if=/dev/sda bs=8M | gzip -9 > "/media/[...]/sda.gz"

and have this additional information:

# fdisk -lu

Platte /dev/sda: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder, zusammen 976773168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcb2d026d

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *          63   104859647    52429792+   7  HPFS/NTFS
/dev/sda2       299593728   341536767    20971520    7  HPFS/NTFS
/dev/sda3       341536768   976769023   317616128    7  HPFS/NTFS
/dev/sda4       104859648   299593727    97367040    5  Erweiterte
/dev/sda5       204800000   288686079    41943040   83  Linux
/dev/sda6       288688128   299593727     5452800   82  Linux Swap / Solaris
/dev/sda7       104861696   204797951    49968128   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

[...]

# fdisk -l

Platte /dev/sda: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcb2d026d

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        6528    52429792+   7  HPFS/NTFS
/dev/sda2           18649       21260    20971520    7  HPFS/NTFS
/dev/sda3           21260       60802   317616128    7  HPFS/NTFS
/dev/sda4            6528       18649    97367040    5  Erweiterte
/dev/sda5           12749       17970    41943040   83  Linux
/dev/sda6           17971       18649     5452800   82  Linux Swap / Solaris
/dev/sda7            6528       12749    49968128   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

[...]

(I'm sorry that it's in German. The line in the end says that the partitions on the hdd are in different order, 'Erweiterte' means 'extended' and the heads of the tables are: device, boot, start, end, blocks id, system. I guess the rest is either self-explaining or not important.)

I want to restore single partitions (/dev/sda1, /dev/sda2 and /dev/sda3) from the image without restoring the other partitions. Can you help me with this?

And can you tell me please what the plus behind the number of blocks of /dev/sda1 means and what's the correlation between the number of blocks and the difference of end and start of a partition?

Thank you.

share|improve this question
    
possible duplicate of Mount single partition from image of entire disk (device) –  zwets Sep 24 '13 at 20:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.