niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
Hard disk issue
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Chris Kantarjiev
*nix forums beginner


Joined: 25 Feb 2005
Posts: 27

PostPosted: Fri Apr 28, 2006 8:34 pm    Post subject: Re: Hard disk issue Reply with quote

jpd wrote:
Quote:
Begin <1142826671.644513.5920@v46g2000cwv.googlegroups.com
On 2006-03-20, toby <toby@telegraphics.com.au> wrote:

Yes. I don't know if NetBSD does bad block sparing for ATA, or whether
you can fix this with a reformat and bad block scan.


AFAIK that's a function of the drives nowadays. They present a perfect
disk and remap themselves if necessairy. Until they run out of remap
space. One could try and run mfr diags on them, might be worth a shot.



Find yourself a copy of the standalone SMART utilities; pretty much all 'modern'
drives support SMART, which lets you interrogate and manage the low-level drive
statistics and diagnositcs. Fits on a bootable floppy.
Back to top
almeidaraf
*nix forums beginner


Joined: 20 Mar 2006
Posts: 2

PostPosted: Mon Mar 20, 2006 9:26 pm    Post subject: Re: Hard disk issue Reply with quote

Hi,

I couldn't find that diag thing on pkgsrc, or anywhere, for that
matter. What I did find was a site saying that if I would try to write
to the bad sector then the hd should automaticly place them to the bad
blocks list. So I did
# dd if=/dev/zero of=/dev/wd0d seek=26268351 count=127

Actually, let me go back for a bit, I've compiled the kernel with
WD_SOFTBADSECT option, then I tried to compile ghc. After that I was
able to see the bad sectors using
# dkctl wd0 badsector list
which were 26268351-26268478.

Well, after the dd command I already posted it seems like the bad
blocks left are only the ones from 26268400 to 26268403. I tried to run
# dd if=/dev/zero of=/dev/wd0d seek=26268400 count=3
but it didn't help this time. I ran
# smartctl -a /dev/wd0d
and, in the errors shown there, the commands passed to the harddisk
were read commands, which doesn't make too much sense to me. Any ideas
about what I should try?
Back to top
jpd
*nix forums Guru


Joined: 22 Feb 2005
Posts: 877

PostPosted: Mon Mar 20, 2006 4:40 am    Post subject: Re: Hard disk issue Reply with quote

Begin <1142826671.644513.5920@v46g2000cwv.googlegroups.com>
On 2006-03-20, toby <toby@telegraphics.com.au> wrote:
Quote:
Yes. I don't know if NetBSD does bad block sparing for ATA, or whether
you can fix this with a reformat and bad block scan.

AFAIK that's a function of the drives nowadays. They present a perfect
disk and remap themselves if necessairy. Until they run out of remap
space. One could try and run mfr diags on them, might be worth a shot.


Quote:
Probably you should look for a new drive, and obviously make sure no
valuable data remains on this one.

That too, of course.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
Back to top
toby
*nix forums addict


Joined: 01 Jul 2005
Posts: 87

PostPosted: Mon Mar 20, 2006 3:51 am    Post subject: Re: Hard disk issue Reply with quote

almeidaraf wrote:
Quote:
Hello,

I have a ATA/ATAPI-5 hard disk (smartctl says its device model is
BI-MJDAS2-02 and serial numeber is 4 T444YZ7693). I don't know much
about the laptop's hardware, except it's a acer travelmate 612TXCi.

Having said that, while I was compiling the ghc on pkgsrc I ran into
what seems to be a hard disk problem. The kernel yielded "wd0e: error
reading fsbn 23121248 of 13121248-23121375 (wd0 bn 26268287; cn 26059
tn 14 sn 47) wd0: (uncorrectable data error)" and after that the
compilation segfaulted. Is it a hard-disk issue,

Yes. I don't know if NetBSD does bad block sparing for ATA, or whether
you can fix this with a reformat and bad block scan. Probably you
should look for a new drive, and obviously make sure no valuable data
remains on this one.

Quote:
or could it be a
filesystem problem (fsck_ffs didn't seem to find anything wrong) or
something else? Whatever it is, could someone hint me on what should I
read in order to fix this problem, or tell me some known workaround or
something?

Thank you for your attention,
Rafael
Back to top
almeidaraf
*nix forums beginner


Joined: 20 Mar 2006
Posts: 2

PostPosted: Mon Mar 20, 2006 12:10 am    Post subject: Hard disk issue Reply with quote

Hello,

I have a ATA/ATAPI-5 hard disk (smartctl says its device model is
BI-MJDAS2-02 and serial numeber is 4 T444YZ7693). I don't know much
about the laptop's hardware, except it's a acer travelmate 612TXCi.

Having said that, while I was compiling the ghc on pkgsrc I ran into
what seems to be a hard disk problem. The kernel yielded "wd0e: error
reading fsbn 23121248 of 13121248-23121375 (wd0 bn 26268287; cn 26059
tn 14 sn 47) wd0: (uncorrectable data error)" and after that the
compilation segfaulted. Is it a hard-disk issue, or could it be a
filesystem problem (fsck_ffs didn't seem to find anything wrong) or
something else? Whatever it is, could someone hint me on what should I
read in order to fix this problem, or tell me some known workaround or
something?

Thank you for your attention,
Rafael
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 1:20 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts TLS cert issue Nick Smith Postfix 3 Thu Jul 20, 2006 7:40 pm
No new posts Root relay issue Johnson, S Postfix 4 Thu Jul 20, 2006 6:50 pm
No new posts Is there a boot loader that can load a file a start up an... christopher.mcrorie@gmail Setup 1 Thu Jul 20, 2006 2:57 am
No new posts Make an updates disk? Cameron L. Spitzer Debian 1 Wed Jul 19, 2006 6:40 pm
No new posts Is there any standard way to sort a disk file? Peter Olcott C++ 5 Wed Jul 19, 2006 4:42 pm

Loans | MPAA | Loans | Myspace Layouts | Bad Credit Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.6247s ][ Queries: 20 (0.5278s) ][ GZIP on - Debug on ]