nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Fix Corrupted Ext3 Partition

This is a discussion on Linux Fix Corrupted Ext3 Partition within the Ubuntu / Debian forums, part of the Linux Distribution category; Hi folks, I'm new here and in a bit of a bind. Hoping to see the suggestion that gets me ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-04-2009, 10:37 PM
Junior Member
User
 
Join Date: Apr 2009
OS: Ubuntu
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jon_james is on a distinguished road
Default Linux Fix Corrupted Ext3 Partition

Hi folks, I'm new here and in a bit of a bind. Hoping to see the suggestion that gets me past this hurdle.

1.Trying to mount the drive results in errors (must specify filesystem type) even though it’s ext3

2.Ran fdsk on the bad device (dev/sdb)
a.Confirms linux native partition exists (ID 83 – linux native)

3.Ran ddrrescue
a.Command: sudo ddrescue /dev/sdb /dev/sdc /home/ddrescue.log
b.It ran across errors but recovered a lot of data then went back to bad
blocks and recovered some more data

4.Trying to mount /dev/sdc results in the same error #1
a.Ddrescue wasn’t able to recover the bad blocks regarding my partition

5.Off to e2fsck now
a.Ran this: sudo e2sfck /dev/sdc which resulted in error
i.Can’t read super block try alternative block locations and “bad magic number error”
b.I used testdisk to provide the super blocks numbers however
i.Sudo e2fsck <all alternative block locations> -b /dev/sdb
ii.Results in the same error

6.Using testdisk to look at my linux partition gets listed twice. The how to document for testdisk suggest if this happens, your filesystem is corrupted. The testdisk information online is a little vague per my knowledge level of this issue.

I’m at a loss on what to try next. Is this drive down for the count? Any help greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 30-04-2009, 12:50 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

/dev/sdc represents whole hard disk. You need to use partitions like /dev/sdc1. Boot from rescue disk and run fsck w/o mounting the partition.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 30-04-2009, 10:07 AM
Junior Member
User
 
Join Date: Apr 2009
OS: Ubuntu
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jon_james is on a distinguished road
Default

... and the <dunce hat> goes to me! I was able to repair /dev/sdc1 and now my drive has been restored to a new drive.

Sometimes its those simple things right in front of your nose. Like adding sdc1. LOL

Thanks
Reply With Quote
  #4 (permalink)  
Old 30-04-2009, 10:12 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Heh

No problem. Tagged as [Solved].
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
ext3 , fsck , linux


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
change uuid of an ext3 partition allotment Shell scripting 9 02-03-2010 12:47 PM
Difference between ext2 and ext3 Linux file system nixcraft Getting started tutorials 0 18-05-2007 01:43 AM
auto repair a specific database if it is found corrupted? jayzee Databases servers 1 27-04-2007 05:12 PM
mount one partition of one linux server on other linux serve Jaggu Linux software 1 07-08-2006 10:47 PM
rpm database is corrupted, how to fix it? hfcchennai Linux software 1 21-12-2005 01:05 PM


All times are GMT +5.5. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38