Page 1 of 1

Partimage for restoring NOW-mounted partition (accidental se

Posted: Sat Feb 25, 2012 6:31 am
by moozillaaa
Can I use Partimage to restore partitions after doing an accidental set disklabel in GParted?

I am AT THIS MOMENT mounted on one of the partitions on this device, with GParted still open, and I've done NOTHING on that machine since doing it, except open CLI, and run fdisk, and blkid:



Device 'a' is the device of interest here:


[email protected]:~$ sudo fdisk -l
[sudo] password for chucknb:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a8f35

Device Boot Start End Blocks Id System

Disk /dev/sdb: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x04620462

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1759 14129136 7 HPFS/NTFS
/dev/sdb2 1760 3481 13831965 83 Linux
/dev/sdb3 3482 3736 2048287+ 82 Linux swap / Solaris

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb015a805

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sdc2 5100 28556 188418352+ 7 HPFS/NTFS
/dev/sdc3 28557 60801 259007962+ 83 Linux

[email protected]:~$ blkid

[email protected]:~$ exec sudo -s

[email protected]:~# blkid

/dev/sda1: UUID="66EBD5021CC53FFF" LABEL="nb_XP" TYPE="ntfs"
/dev/sdc1: UUID="6E1A27941A27587B" LABEL="nb_W7" TYPE="ntfs"
/dev/sdc3: LABEL="Apps" UUID="e5efff72-6bbf-4e1e-8c46-86e86ef422b5" TYPE="ext2"
/dev/sdc2: UUID="2640B9ED40B9C3B9" LABEL="804Old500" TYPE="ntfs"
/dev/sdb3: TYPE="swap" UUID="e3a18cf4-76a3-4498-9b8f-ec47b785d7ee"
/dev/sda2: LABEL="Ubuntu" UUID="32a7f436-76a6-4cca-966f-2d24d2e2702a" TYPE="ext3"
/dev/sdb2: UUID="ed4bc055-d18f-4c3e-abaf-3215102c6679" TYPE="ext3" SEC_TYPE="ext2"
/dev/sdb1: UUID="2CBB78BB57F50B0D" TYPE="ntfs" LABEL="nb_W7"
[email protected]:~#


sda1 (XP on ntfs) is backed up to sdc1 (clone), so data loss is not a major concern there.

sda2 (Hardy 8.04) is backed up to sdc2, cloned, sort of. FS is ntfs, not ext3. Data loss again not a major concern...