LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-03-2009, 04:19 AM   #1
koobi
Member
 
Registered: Jun 2006
Location: Colombo, Sri Lanka
Distribution: Ubuntu
Posts: 103

Rep: Reputation: 15
Won't detect corrupt drive using fdisk


Hi,
I'm usually happy experimenting and finding things out but this one is taking a very long time and time is getting very critical (certain documents I need to recover in order to apply for a student visa are on a "corrupt" disk) so I would appreciate any help.

I think I have the data corruption on the Ubuntu 2.6.28-11 kernel issue:
https://bugs.launchpad.net/ubuntu/+s...1?comments=all

Once my main drive became inoperable, I installed Jaunty on a spare hard disk and as soon as I installed it, I downgraded the kernel using this as a guide:
http://ubuntuforums.org/showpost.php...8&postcount=29
no problems so far.


But I need to recover the data from my corrupted hard disk. It's all ext4 based.

When I attach it as a secondary SATA drive (sdb) and boot from my working drive and attempt to go into rescue mode via grub, it takes forever because the system spits out the errors on the corrupted drive.
After about an hour of spitting out errors, I finally get to a root shell in the hopes that I can fsck.
Thereafter, typing "sudo fdisk -l" does not show the corrupted disk even though I get errors like "Buffer I/O error for sdb....."

Any idea how I can at least fsck the corrupt drive?


Thanks.
 
Old 08-03-2009, 05:32 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello koobi

It would be prudent, before any further attempts to get data from the damaged file system, to backup what you have got and ensure you don't lose any more. Then you can try all the experiments you want on the copy of the damaged file system.

The dd command is good for imaging partitions.

What sort of files are these documents? An informative answer to that question would be the output from
Code:
file <file of same document type>
Best

Charles
 
Old 08-03-2009, 06:01 AM   #3
koobi
Member
 
Registered: Jun 2006
Location: Colombo, Sri Lanka
Distribution: Ubuntu
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by catkin View Post
Hello koobi

It would be prudent, before any further attempts to get data from the damaged file system, to backup what you have got and ensure you don't lose any more. Then you can try all the experiments you want on the copy of the damaged file system.

The dd command is good for imaging partitions.

What sort of files are these documents? An informative answer to that question would be the output from
Code:
file <file of same document type>
Best

Charles
Thanks for the reply.

That's the thing, I can't even see the damaged disk in order to mount it (it's an entire separate hard disk) in order to backup anything.

Even to use dd, you need to at least see the disk in order to know it's location right? I know it should be /dev/sdb but the following yields no results:
Code:
sudo fdisk -l /dev/sdb
I'm also not sure how to use dd.
For now, I have disconnected the corrupt hard disk. I really need those documents before Thursday. Bad timing eh? I just finished creating the documents and the next day morning, this happens.
 
Old 08-03-2009, 06:25 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
...just maybe you can get lucky with what I did recently...
http://www.linuxquestions.org/questi...00#post3614800

Not believing it would work I nevertheless tried using SpinRite
http://www.grc.com/spinrite.htm
I just booted up with it - did not use any of its features - just booted up with it
...and my drive was detected and working again.

I thus was able to make a backup.
Only after that I really used Spinrite on that disk - the disk was working flawlessly again and I lost none of my data.
Nevertheless I replaced the drive...
 
  


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
Corrupt drive sab0tage Linux - Hardware 4 02-08-2007 04:45 PM
Cannot detect CDRW drive, Kernel 2.6.9, Mitsumi drive scuzzman Linux - Hardware 1 06-02-2005 06:07 PM
Could Linux corrupt usb drive??? melinda_sayang Linux - Hardware 5 12-07-2004 11:58 AM
Corrupt Hard Drive?? Memzback Linux - Newbie 2 04-12-2004 05:59 PM
fdisk and cfdisk won't detect hard drive Akcel Slackware 9 07-12-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration