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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-25-2003, 06:10 PM
|
#1
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Rep:
|
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?
|
|
|
02-25-2003, 06:34 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
02-25-2003, 06:59 PM
|
#3
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
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....
|
|
|
02-25-2003, 07:14 PM
|
#4
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
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?
-----------------------------------------------------------------------
|
|
|
02-25-2003, 09:27 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
02-25-2003, 09:56 PM
|
#6
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
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.
|
|
|
02-26-2003, 09:45 AM
|
#7
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
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).
|
|
|
02-26-2003, 12:19 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
02-26-2003, 07:22 PM
|
#9
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
02-26-2003, 07:56 PM
|
#10
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
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?
|
|
|
02-27-2003, 12:40 AM
|
#11
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|