DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
Old 14th July 2008
pseudonym pseudonym is offline
Port Guard
 
Join Date: Jul 2008
Posts: 13
Default

Quote:
Originally Posted by DrJ View Post
The error rate seems high, but it has not changed much since I forced the bad-sector relocation (which differs from a low-level format). That is what you keep your eye on.
How did you do that? Here is the newfs -N /dev/ad8s1d info

Code:
Reduced frags per cylinder group from 94088 to 94080 to enlarge last cyl group
/dev/ad8s1d: 715402.3MB (1465144000 sectors) block size 16384, fragment size 2048
        using 3894 cylinder groups of 183.75MB, 11760 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
I should be able to mark that block, or several blocks bad.. just not sure how to do it =(.
Reply With Quote
Old 14th July 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

I did it by writing zeros to the entire disk using "dd". It has been a long time, but see the man page for the syntax I have forgotten. Use "if" to be the zero, and "of" to be your disk. There is some info on the smartctl pages somewhere, IIRC. You can even find my posting in the forums, if you like.
Reply With Quote
Old 14th July 2008
pseudonym pseudonym is offline
Port Guard
 
Join Date: Jul 2008
Posts: 13
Default

cool =). thanks! That helps alot. what about using badsect to mark the secotor bad? I was reading something in the handbook about bad144.. but it isn't exactly the clearest section of the book =).
Reply With Quote
Old 14th July 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

Quote:
Originally Posted by pseudonym View Post
what about using badsect to mark the secotor bad?
Sorry, I've not tried it. FWIW, when I did this last, FreeBSD was on 5.2 or a 6 beta -- namely, back in the old days. Back then there were no good tools to locate and mark bad sectors. That may well have changed, since this is one thing that comes up if you use a computer disk. I also recall that there were differences between SCSI and IDE drives, though the forced remapping I suggested should work for either.

If you do use that, you start from ground zero with a decent drive (all other things willing).
Reply With Quote
Old 14th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Newer drives (I guess about 2000 and later) already have spare sectors, if a sector goes bad, it uses a spare sector.

So if bad sectors show up, this means there are already a number of bad sectors, and the number will probably increase exponentially.

By the way, there are a number of disk checking tools on the Ultimate boot CD", which may be able to tell you a bit more about the status/health of your disk

This is a 750GB drive, which is probably rather new ... Most drives come with 4 or 5 years warranty, did you check if you still have warranty?

Quote:
Originally Posted by DrJ
Sorry, I've not tried it. FWIW, when I did this last, FreeBSD was on 5.2 or a 6 beta -- namely, back in the old days. Back then there were no good tools to locate and mark bad sectors.
Hm?

badsect(8)
Quote:
HISTORY
The badsect utility appeared in 4.1BSD.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel file from 6.3 to 7.2 l2fl2f FreeBSD Installation and Upgrading 3 14th September 2009 06:53 PM
File system not properly dismounted rex FreeBSD General 6 12th September 2008 02:45 PM
File system at more than 100% michaelrmgreen FreeBSD General 4 28th July 2008 01:52 PM
Kernel configuration file ignored? FWS FreeBSD Installation and Upgrading 16 26th June 2008 10:28 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM


All times are GMT. The time now is 01:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick