Hard drive question

Mick Ohrberg micke at kc.rr.com
Wed Jan 9 15:09:43 CST 2002


Another way:

for foo in /proc/ide/hd*
do
	if [ `cat ${foo}/media` = disk ]; then
		cat ${foo}/model
	fi
done

On Wednesday 09 January 2002 08:36, Brian Densmore wrote:
> one way:
>  fdisk /dev/hd?
>  ?=which drive, usually starting at "a"
>
> > -----Original Message-----
> > From: Rusty [mailto:kujayhawkbb at yahoo.com]
> > Sent: Wednesday, January 09, 2002 8:28 AM
> > To: kclug at kclug.org
> > Subject: Hard drive question
> >
> >
> > I have a friend working with a Linux system that keeps having
> > hard drive crashes. (bad batch of drives?) Anyway, is there a
> > quick command to check and see if the system is recognizing the
> > new drive? I know there is, but can't pull it out of my feeble
> > brain...
> >
> > Thanks
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE video emails in Yahoo! Mail!
> > http://promo.yahoo.com/videomail/
> >
> >
> > majordomo at kclug.org
>

-- 
In the morning, you don't know what's going to happen;
during the day, you don't know what's happening;
at the end of the day, you have no idea what happened.

	Mick Ohrberg
	micke at kc.rr.com




More information about the Kclug mailing list