LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2003, 08:14 AM   #1
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Rep: Reputation: 0
Hard drive fubar and buggery.. I think.


I've no idea what I did to make this happen, which probably makes it even worse.

Last night when I booted, I got the following:

.
.
.
Running DevFs daemon Started device management daemon v1.3.2.5 for /dev
unknown group: "video", defaulting to GID=0

**CRITICAL**: unknown class "dri" at line 80 in /etc/security/console.perms
.
.
.
Loading default keymap: etc/rc.d/rc.sysinit: line 248: /dev/tty0: no such file or directory

fsck.ext2/dev/hda5:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>
: No such file or directory while trying to open /dev/hda5
Failed to check filesystem. Do you want to repair?

Doesn't matter if I answer yes or no, I get prompted for a root password and it wants me to do something. Not much I can do, the /dev/ directory seems to be practically empty, I can't access the other drives or anything. I tried running Partition Magic on the drive and it found an error with the superblock, but can't fix it. But browsing the drive from Partition Magic shows all the data correctly, as far as I can tell.

So, at least I've got a way of saving some of my data before reinstalling. But before I do I thought I'd ask here to see if there is a way to recover the drive, or at least if someone could tell me what I might have done so I don't do it again in the future. I've no idea what it could be...
 
Old 02-13-2003, 09:20 AM   #2
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
Use you startup disk, you did make a startup disk. Then run fsck.ext2, it'll probably not do a thing but it's worth a try.
 
Old 02-13-2003, 09:20 AM   #3
williamwbishop
Member
 
Registered: Feb 2003
Location: god's judge
Posts: 376

Rep: Reputation: 30
Re: Hard drive fubar and buggery.. I think.

Quote:
Originally posted by Bjornkri
I've no idea what I did to make this happen, which probably makes it even worse.

Last night when I booted, I got the following:

.
.
.
Running DevFs daemon Started device management daemon v1.3.2.5 for /dev
unknown group: "video", defaulting to GID=0

**CRITICAL**: unknown class "dri" at line 80 in /etc/security/console.perms
.
.
.
Loading default keymap: etc/rc.d/rc.sysinit: line 248: /dev/tty0: no such file or directory

fsck.ext2/dev/hda5:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>
: No such file or directory while trying to open /dev/hda5
Failed to check filesystem. Do you want to repair?

Doesn't matter if I answer yes or no, I get prompted for a root password and it wants me to do something. Not much I can do, the /dev/ directory seems to be practically empty, I can't access the other drives or anything. I tried running Partition Magic on the drive and it found an error with the superblock, but can't fix it. But browsing the drive from Partition Magic shows all the data correctly, as far as I can tell.

So, at least I've got a way of saving some of my data before reinstalling. But before I do I thought I'd ask here to see if there is a way to recover the drive, or at least if someone could tell me what I might have done so I don't do it again in the future. I've no idea what it could be...
Put in the root username, and run fsck like it says, using an alternate superblock. The reason it appears to be empty is that the the data describing the directory is now corrupt. Replacing the superblock should repair that. Don't lose hope, it's not anything serious.
 
Old 02-13-2003, 10:48 AM   #4
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
Well, I tried doing e2fsck -b 32768 ... but it needs a device, and there's no /dev/hd?? anything, so it won't run. Am I doing something wrong?

Also tried using a bootdisk, did the same there, got loads of errors that were fixed, apparently. Rebooted, and got the same thing as before.

Any other ideas?
 
Old 02-14-2003, 12:38 AM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
You can get a low level format utility from the drives manufaturer. It can be dangerous (can ruin the drive) but it will go over every square inch of the drive and afterwards you won't have bad superblocks. Just a last resort though.
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 03:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 02:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 03:47 AM


All times are GMT -5. The time now is 10:19 AM.

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