Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 23:35:43 +0100
From:      Jez Hancock <munk@munkboxen.mine.nu>
To:        FreeBSD questions List <freebsd-questions@freebsd.org>
Subject:   Checking HDD disk integrity under FreeBSD
Message-ID:  <20020522233543.A8507@munkboxen.mine.nu>

next in thread | raw e-mail | index | archive | help
Hi all,

Short question: is there a hard disk drive integrity checking utility
for Unix systems that will detect problems with a HDD (similar to
scandisk in windows)?

Background:

I recently installed a 3rd IDE HDD (Quantum Fireball) into my FreeBSD
4.4 system (FreeBSD munkboxen.mine.nu 4.4-RELEASE FreeBSD 4.4-RELEASE),
and all was fine for a while until I started getting the following
errors:

	<snip="/var/log/messages">
	May 22 18:29:26 munkboxen /kernel: ad2c: hard error reading fsbn 160 of
	80-95 (ad2 bn 160; cn 0 tn 2 sn 34)ad2: DMA problem fallback to PIO mode
	May 22 18:29:26 munkboxen /kernel: ad2: DMA problem fallback to PIO mode
	May 22 18:29:26 munkboxen last message repeated 8 times
	... continues for various blocks ...
	</snip="/var/log/messages">

The particular file system is a ufs slice which I dedicated for use with
/usr/src (I keep all my sources on that partition/slice).  The fstab
entry looks like this (the pertinent partition entry is commented out to
stop it from choking when the system boots - fsck just halts and I go
into single user mode otherwise):

	# Device		Mountpoint	FStype	Options		Dump	Pass#
	/dev/ad0s2b		none		swap	sw			0		0
	/dev/ad0s2a		/			ufs		rw			1		1
	/dev/ad0s2f		/usr		ufs		rw			2		2
	#/dev/ad2c		/usr/src	ufs		rw			2		2
	/dev/ad1s1e		/var		ufs		rw			2		2
	/dev/ad1s2e		/home		ufs		rw			2		2
	/dev/acd0c		/cdrom		cd9660	ro,noauto	0		0
	/dev/fd0		/floppy		ufs		rw,noauto	0		0
	proc			/proc		procfs	rw			0		0

Any help much appreciated,
-- 
Jez Hancock              - munk@munkboxen.mine.nu
http://munkboxen.mine.nu - FreeBSD network
http://www.freebsd.org   - Probably the best OS in the world...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020522233543.A8507>