LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-25-2003, 06:10 PM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
hdd trashed


my hdd (Western Digital 20GB) is trashed. I need to restore this drive. I tried reading thorugh badblocks and mke2fs manpages to no avail. how can I start over?
 
Old 02-25-2003, 06:34 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You mean, how to remove all partitions, and reformat the drive?

fdisk /dev/hdx
Then type m for options, choose the one to delete the partitions down to just 1 big partition.

Then, mke2fs -j /dev/hdx

to make the filesystem on the partition. If you want ReiserFS or something else, check the man page for the one you desire

Cool
 
Old 02-25-2003, 06:59 PM   #3
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
no .... that would be too easy

I mean my hdd is trashed, I can't even mount it or install over it. I don't care about the data on the disk and I want to be able to use this drive. I don't know what happened or how, it used to be my primary drive. I believe there is a problem with the superblocks....
 
Old 02-25-2003, 07:14 PM   #4
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
specifically the problem is :
-----------------------------------------------------------------------
e2fsck 1.27 (8-Mar-2002)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/hdc1
Could this be a zero-length partition?
-----------------------------------------------------------------------
 
Old 02-25-2003, 09:27 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
fdisk /dev/hdc

If you can't even read the partition table, or more to the point can't write a new one, then the drive may well be toast. The error you received, was that "bad superblock", which is the block at the front of any given partition that is needed for mount to be able to mount the drive. Or, did you get "too many bad blocks", which means that the drive is no longer able to hardware compensate for all of the bad areas on it and is now... well, fried.

Cheers,

Finegan
 
Old 02-25-2003, 09:56 PM   #6
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
When I try to mount I just get the standard message. My last post is the result of e2fsck with any params. And up until this time that I checked fdisk was fine - er the way I had set it. But now it can't read the partition table.

# fdisk /dev/hdc

Unable to read /dev/hdc

What kind of funeral services are availible for ol' sparky? I was thinking a creamation might be in order ... but that's my answer to everything.
 
Old 02-26-2003, 09:45 AM   #7
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
I can read the partition table again! It dosen't really help much because I'm still getting the same errors ..... but it's at least not completely fscked (<-- pun intended).
 
Old 02-26-2003, 12:19 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by lackluster
When I try to mount I just get the standard message. My last post is the result of e2fsck with any params. And up until this time that I checked fdisk was fine - er the way I had set it. But now it can't read the partition table.

# fdisk /dev/hdc

Unable to read /dev/hdc

What kind of funeral services are availible for ol' sparky? I was thinking a creamation might be in order ... but that's my answer to everything.
Be sure to video the services so everyone at LQ can virtually attend

Cool
 
Old 02-26-2003, 07:22 PM   #9
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Dude, if its a 20Gig, you may still be in warranty. When those drives were being churned out, the usual warranty was 3 years, you may just be within it. It doesn't even matter if you are second or third owner, don't need a receipt, just the serial number off of the top of the drive.

Cheers,

Finegan
 
Old 02-26-2003, 07:56 PM   #10
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
warranty, eh? that sound like the best idea I've heard in a few days. I'll give it a try ... I suppose I should contact Western Digital?
 
Old 02-27-2003, 12:40 AM   #11
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Yeah, I've never had to mail back a digi, but if they handle it at all like Maxtor, check for the serial number on the top of the drive and their should be a webpage at wd you can plug that into and find out if the warranty is live or not...

Cheers,

Finegan
 
  


Reply



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
9.1 YaST trashed after update ionmich SUSE / openSUSE 6 05-25-2005 10:16 AM
MDK 9.2 XServer trashed rockybalboa Mandriva 0 04-27-2004 10:26 AM
I trashed my grub.conf and need help vtbludgeon Red Hat 5 01-21-2004 11:32 PM
is my hard drive trashed? yocompia Linux - General 10 09-04-2003 11:43 AM
Trashed Grub -- Help! (RH8.0) Fredf Linux - Newbie 6 11-22-2002 07:16 PM

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

All times are GMT -5. The time now is 11:25 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