LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2009, 01:20 AM   #1
Outlaw_Wizard
LQ Newbie
 
Registered: Sep 2009
Location: San Jose, CA
Posts: 2

Rep: Reputation: 0
Mount a failed ext3 disk (with encryption) under a good fedora 11 system


Data recovery.

Subject hard disk (80 GB ATA) was the sole disk of a laptop Fedora 11 installation. After a system lockup and power cycle, would no longer boot (though it would ask for the encrypted FS password). After migrating the disk to an adapter for a Dell D-Station (which presents the disk to the OS as a USB disk) and booting the Fedora 11 system docked there, it shows the boot partition (as /dev/sda1 on /mounts/root) but nothing else.

How do I get the remaining partition (1 more, password encrypted) to show up so I can fsck and save data (if possible)?
 
Old 09-23-2009, 06:19 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Outlaw_Wizard View Post
Data recovery.

Subject hard disk (80 GB ATA) was the sole disk of a laptop Fedora 11 installation. After a system lockup and power cycle, would no longer boot (though it would ask for the encrypted FS password). After migrating the disk to an adapter for a Dell D-Station (which presents the disk to the OS as a USB disk) and booting the Fedora 11 system docked there, it shows the boot partition (as /dev/sda1 on /mounts/root) but nothing else.

How do I get the remaining partition (1 more, password encrypted) to show up so I can fsck and save data (if possible)?
You need to run "fdisk" on the drive. Examine the drive and look at your options under fdisk. The fact that it wouldn't boot on the old system doesn't mean there is necessarily any damage to the drive's data areas.
 
Old 09-24-2009, 10:28 PM   #3
Outlaw_Wizard
LQ Newbie
 
Registered: Sep 2009
Location: San Jose, CA
Posts: 2

Original Poster
Rep: Reputation: 0
Making Progress...

Quote:
Originally Posted by lutusp View Post
You need to run "fdisk" on the drive. Examine the drive and look at your options under fdisk. The fact that it wouldn't boot on the old system doesn't mean there is necessarily any damage to the drive's data areas.
So my disk device is /dev/sdb and the actual data partition is 2.

/dev/sdb1 mounts and is readable.

/dev/sdb2 not so much...

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdd6fdd6f

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 9729 77947380 8e Linux LVM

[root@portena /]# fsck /dev/sdb2
fsck 1.41.4 (27-Jan-2009)
e2fsck 1.41.4 (27-Jan-2009)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdb2
Could this be a zero-length partition?
[root@portena /]# mount -t ext3 /dev/sdb2 /mounts/recover
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@portena /]# dmesg | tail
sd 3:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 3:0:0:0: [sdb] Add. Sense: Address mark not found for id field
end_request: I/O error, dev sdb, sector 401625
Buffer I/O error on device sdb2, logical block 0
sd 3:0:0:0: [sdb] Unhandled sense code
sd 3:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 3:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 3:0:0:0: [sdb] Add. Sense: Address mark not found for id field
end_request: I/O error, dev sdb, sector 401627
EXT3-fs: unable to read superblock
[root@portena /]# fsck.ext3 /dev/sdb2
e2fsck 1.41.4 (27-Jan-2009)
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdb2
Could this be a zero-length partition?

Disk /dev/sdb: 255 heads, 63 sectors, 9729 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 80 1 1 0 254 63 24 63 401562 83
2 00 0 1 25 254 63 1023 401625 155894760 8e
3 00 0 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 0 00
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount disk - corrupted file EXT3 file system RAFAL Linux - General 3 04-08-2009 04:27 PM
Mayday! How do I manually mount my encrypted ext3 external usb disk? simonsharry Linux - Newbie 11 02-15-2009 05:49 AM
mount: mount to NFS server '192.168.0.3' failed: System Error: Connection refused. fakie_flip Linux - Server 1 04-10-2008 01:28 AM
the on-disk structure of the ext3 file system SeRGeiSarov Linux - Software 1 06-04-2007 02:00 PM
Cannot mount disk with ext3 anymore Recirqie Linux - Software 4 01-24-2006 03:24 AM


All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration