LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-08-2009, 11:43 PM   #1
orange.toaster
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 0
mkext2fs -c -c -v /dev/sda disaster


So I typed "mkext2fs -c -c -v /dev/sda" to find the badblocks on a harddrive that had corrupted some files on it. However, it was running much too long so I terminated the process to try again with only one -c.
Thats when I realised this was a horrible idea, since my superblock had now been overwritten. What was also horrible is that fdisk /dev/sda returned an error and will not detect the disk.

Is there anything that I can do to save my drive?

Thanks.
 
Old 08-09-2009, 02:36 AM   #2
MiKOTRON
LQ Newbie
 
Registered: Jul 2009
Distribution: SUSE, Mandrivia, Gentoo
Posts: 8

Rep: Reputation: 0
Huh... did you type mke2fs -c -c -v /dev/sda? The extra "-c" uses a read-write test makeing the whole process a lot slower.

What's the error you get when you type in "fdisk /dev/sda"? Did you try "fdisk /dev/hda" yet?

Just a thought...
 
Old 08-09-2009, 11:54 AM   #3
tallship
Member
 
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 534
Blog Entries: 3

Rep: Reputation: 118Reputation: 118
Exclamation Try some forensic tools...

You might want to start here to see what's actually salvagible: http://www.sleuthkit.org/sleuthkit/desc.php
 
Old 08-09-2009, 03:28 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I believe that ext3 makes copies of its superblock that are stored at fixed intervals. If you are lucky, you may be able to recover from one of those (using, for example, testdisk). I don't know whether that would apply to ext2 as well.
 
  


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
iscsi: which local device (/dev/sda, /dev/sdb) is used WITHOUT dmesg? knikkerr Linux - Software 3 08-13-2010 04:30 AM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
Disaster Recover (preventative) SDA failing rvicker Linux - Hardware 4 03-04-2007 09:46 PM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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