Hi, after an unsuccessful upgrade, I installed Kubuntu Intrepid on another drive on my system. The other drive has the old data before the bad install. I had a grup error (error 16 I think), so I just installed kubuntu intrepd on another drive (sdb) . I'm trying to get the data off the 1st drive (sda), but I can't mount the drive. Here's my sudo fdisk -l output
mpstump@maisie-desktop:~$ sudo fdisk -l
[sudo] password for mpstump:
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c7ddd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 24415 196113456 83 Linux
/dev/sda2 24416 24792 3028252+ f W95 Ext'd (LBA)
/dev/sda5 24416 24792 3028221 82 Linux swap / Solaris
Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000da0be
Device Boot Start End Blocks Id System
/dev/sdb1 1 24416 196121488+ 83 Linux
/dev/sdb2 24417 24792 3020220 5 Extended
/dev/sdb5 24417 247
Here's what happens when I try to mount sda1...
mpstump@maisie-desktop:~$ sudo mount /dev/sda1 /mnt/old
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mpstump@maisie-desktop:~$
“sudo mount -t ext3 /dev/sda1 /mnt/old “ produces same result as above.
Here's what testdisk tells me...
sudo testdisk
TestDisk 6.9, Data Recovery Utility, February 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63
Partition Start End Size in sectors
* Linux 0 1 1 24414 254 63 392226912
L Linux Swap 24415 1 1 24791 254 63 6056442
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
EXT3 Large file Sparse superblock Recover, 200 GB / 187 GiB
Test disk is able to read the filesystem that I want to recover...
TestDisk 6.9, Data Recovery Utility, February 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
* Linux 0 1 1 24414 254 63 392226912
Use Right arrow to change directory, q to quit
Directory /
drwxr-xr-x 0 0 4096 13-Nov-2008 15:52 .
drwxr-xr-x 0 0 4096 13-Nov-2008 15:52 ..
drwx------ 0 0 16384 21-Jul-2008 21:29 lost+found
drwxr-xr-x 0 0 4096 2-Jul-2008 03:34 var
drwxr-xr-x 0 0 12288 13-Nov-2008 15:52 etc
drwxr-xr-x 0 0 4096 13-Nov-2008 13:37 media
lrwxrwxrwx 0 0 11 21-Jul-2008 21:29 cdrom
drwxr-xr-x 0 0 4096 13-Nov-2008 15:48 bin
drwxr-xr-x 0 0 4096 13-Nov-2008 15:48 boot
drwxr-xr-x 0 0 4096 13-Nov-2008 15:23 dev
drwxr-xr-x 0 0 4096 21-Jul-2008 21:38 home
drwxr-xr-x 0 0 4096 2-Jul-2008 03:16 initrd
drwxr-xr-x 0 0 12288 13-Nov-2008 15:52 lib
drwxr-xr-x 0 0 4096 14-Apr-2008 22:53 mnt
drwxr-xr-x 0 0 4096 26-Sep-2008 17:55 opt
drwxr-xr-x 0 0 4096 14-Apr-2008 22:53 proc
Next
So where do I go from here? Testdisk sees my data so it should be easy to copy, but how do I get to it? I think I'm missing something with Testdisk. How do I restore data with it?
mpstump@maisie-desktop:~$ sudo fdisk -l
[sudo] password for mpstump:
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c7ddd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 24415 196113456 83 Linux
/dev/sda2 24416 24792 3028252+ f W95 Ext'd (LBA)
/dev/sda5 24416 24792 3028221 82 Linux swap / Solaris
Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000da0be
Device Boot Start End Blocks Id System
/dev/sdb1 1 24416 196121488+ 83 Linux
/dev/sdb2 24417 24792 3020220 5 Extended
/dev/sdb5 24417 247
Here's what happens when I try to mount sda1...
mpstump@maisie-desktop:~$ sudo mount /dev/sda1 /mnt/old
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mpstump@maisie-desktop:~$
“sudo mount -t ext3 /dev/sda1 /mnt/old “ produces same result as above.
Here's what testdisk tells me...
sudo testdisk
TestDisk 6.9, Data Recovery Utility, February 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63
Partition Start End Size in sectors
* Linux 0 1 1 24414 254 63 392226912
L Linux Swap 24415 1 1 24791 254 63 6056442
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
EXT3 Large file Sparse superblock Recover, 200 GB / 187 GiB
Test disk is able to read the filesystem that I want to recover...
TestDisk 6.9, Data Recovery Utility, February 2008
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
* Linux 0 1 1 24414 254 63 392226912
Use Right arrow to change directory, q to quit
Directory /
drwxr-xr-x 0 0 4096 13-Nov-2008 15:52 .
drwxr-xr-x 0 0 4096 13-Nov-2008 15:52 ..
drwx------ 0 0 16384 21-Jul-2008 21:29 lost+found
drwxr-xr-x 0 0 4096 2-Jul-2008 03:34 var
drwxr-xr-x 0 0 12288 13-Nov-2008 15:52 etc
drwxr-xr-x 0 0 4096 13-Nov-2008 13:37 media
lrwxrwxrwx 0 0 11 21-Jul-2008 21:29 cdrom
drwxr-xr-x 0 0 4096 13-Nov-2008 15:48 bin
drwxr-xr-x 0 0 4096 13-Nov-2008 15:48 boot
drwxr-xr-x 0 0 4096 13-Nov-2008 15:23 dev
drwxr-xr-x 0 0 4096 21-Jul-2008 21:38 home
drwxr-xr-x 0 0 4096 2-Jul-2008 03:16 initrd
drwxr-xr-x 0 0 12288 13-Nov-2008 15:52 lib
drwxr-xr-x 0 0 4096 14-Apr-2008 22:53 mnt
drwxr-xr-x 0 0 4096 26-Sep-2008 17:55 opt
drwxr-xr-x 0 0 4096 14-Apr-2008 22:53 proc
Next
So where do I go from here? Testdisk sees my data so it should be easy to copy, but how do I get to it? I think I'm missing something with Testdisk. How do I restore data with it?
Comment