LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-20-2005, 05:56 PM   #1
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Rep: Reputation: 15
Corrupt Home Partition


Hey guys, I have a slight problem. It seems that I do in fact have some bad sectors towards the end of the drive I'm using for Slack. Everything was working well, during the boot process it said the filesystem on /dev/hda3 (my /home partition) was corrupt so it proceeds to check it and after a lil bit it just goes haywire. It just starts listing errors. It goes so fast and keeps going that I don't know if they are the same error or different ones.

My question is this, can I just repartition and format my /home partition without having to reinstall Slack? Will it recognize it when I reboot. I know that the bad sector is somewhere in the last 5gigs of the hard drive. I took a chance and now here I am. I plan on just leaving off 5 gigs when I redo my /home. Will this work? Do I need to adjust any config files or anything because it will be smaller now?


Thanks for any and all advice.
 
Old 09-20-2005, 06:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
if you are sure you can't fix it, then yes, you can just format it and go... no need to repartition it mind... just make sure the partition isn't mounted which i assume it's not... and format it: "mke2fs -j /dev/hda3" for an ext3 partition. the fstab entries will still be just as valid, so you can just remount it and make any required /home/user directories. In reality you might find it easier to delete and recreate your normal user accounts.
 
Old 09-20-2005, 06:29 PM   #3
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
How would I repair bad sectors on a Hard Drive?
 
Old 09-20-2005, 06:48 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
as ever i fail to read the whole post correctly...

not something i've needed to do, but you should have the badblocks utility which can scan for bad blocks on a partition. save the output to a file (-o) and pass the file as an option to mke2fs (-l) and it'll skirt around them.

You can't fix bad blocks really, or they'd never be a problem in the first place
 
Old 09-20-2005, 07:30 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
How would I repair bad sectors on a Hard Drive?
You don't, you get a new HDD.

I would really have to question the wisdom of installing on a drive you know to be going bad. Once you start getting bad blocks, the clock is ticking for the entire drive to fail.

You should be more concerned with getting a new drive in the machine, than trying to avoid running into corruption.
 
Old 09-20-2005, 09:11 PM   #6
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
I've never had the experience of a hard drive going bad, so I'm sorry for my ignorance. I didn't think it was possible to fix bad sectors, but I don't know everything so when he said to "fix" them, well I thought it might be possible. Thanks.

Moderator can close this thread.

Last edited by zeroz52; 09-20-2005 at 09:12 PM.
 
Old 09-20-2005, 11:03 PM   #7
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Modern drives hide away bad sectors until the drive is on its last gasp. My recent experience is a that when errors start to appear you only have days left.
 
Old 09-21-2005, 08:51 AM   #8
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks, it sounds like it spreads like a virus. Time to toss that one. Luckily I just bought a 120gig last week for some extra storage.
 
  


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
lvm2 /home partition mysteriously corrupt Nightfrost Linux - Hardware 0 08-20-2005 05:32 AM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 02:31 AM
Will I corrupt my Windows partition... nostrum Linux - Newbie 3 06-22-2004 10:21 PM
Other partition corrupt, please help sonicspeedway Linux - Hardware 3 04-01-2004 05:42 PM
Corrupt Partition Table BigBadPenguin Linux - Hardware 3 09-02-2003 12:02 PM

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

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