LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-18-2003, 06:18 AM   #1
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
bad blocks on swap


i tested for badblocks on my swap partition
i got three of them
but hen i tested that partiton after formatting it on windows and surface scan also did not gave any error
again i made it my swap partition and again running badblocks gave the same blocks
pl. tell me what to do
 
Old 05-21-2003, 02:45 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Window's surface scan checks for the file system integrity on the file system it has built, Linux was actually polling the hardware to see what had come unstuck. Honestly, if the drive is within warranty: replace it. If its not, start making backups, you can run with a drive with badblocks for a while, but when the drive's internal BIOS is incapable of keeping the drive geometry intact one day, everything just unzips into a mess.

Cheers,

Finegan
 
Old 05-21-2003, 08:31 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
if it's western digital, ibm, or maxtor, download
the low level formatter for the drive. depending on the
brand, you may have to lose everything to attempt to
fix the drive.
 
Old 05-21-2003, 11:05 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
do we have a formatter in linux to format hard drive,mine is seagate
 
Old 05-22-2003, 12:23 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
all those programs i was talking about were dos based.
i haven't seen one for seagate.
 
Old 05-22-2003, 12:50 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
this low level format will erase the whole disk
what to do for only a partition
 
Old 05-22-2003, 03:37 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
it just because of the formatter that comes with the brand. I
didn't know seagate even had one. drives have extra good
sectors in them, and the low level formatter marks sectors bad,
and uses good ones in their place, if it can. some brands low
level formatter's will just remap sectors and leave the rest of the
disk alone. other ones have to do the whole disk. you can't just
do a partition.
you could also just figure out where in the drive the bad sectors
are. there's probably just a few. i can't remember the output
of mkswap -c , but you could mke2fs -b /dev/hdxx, and remember
where the bad sectors are, then re partition the swap so it
doesn't include that area.
 
  


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
bad blocks bong.mau Linux - General 1 11-16-2005 02:17 PM
How to do a bad blocks check yelo Linux - General 2 04-02-2004 10:14 PM
fsck many bad blocks mjolnir *BSD 5 01-13-2004 06:35 AM
Bad Blocks - RedHat 9 salvatore Linux - Hardware 5 10-22-2003 08:29 AM
bad blocks and cd tracks.. Cyth Linux - Software 0 04-08-2003 11:03 AM

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

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