LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-20-2003, 02:42 PM   #1
wirednb
LQ Newbie
 
Registered: Aug 2003
Location: new britain, ct
Distribution: red hat 8
Posts: 6

Rep: Reputation: 0
hd testig and formating


i just bought a box of hard drives and was wondering how to use linux to test and format the drives before i use them. i've searched google but haven't found the info I'm looking for. all the drives are notebook ide ranging from 800mb to 20gb.

Last edited by wirednb; 08-20-2003 at 02:48 PM.
 
Old 08-20-2003, 05:34 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Plug it in, jumper 'em right, make certain the machine's BIOS is set to autodetect on the IDE channels, and then while booting, see what the drive registered as... probably /dev/hdc or /dev/hdd if you put them on the second IDE controller.

Then:

cfdisk /dev/hdc

That'll show you if they're at least partitionable. Partition them as you like. (You might be stuck with the more archaic "fdisk")

mkfs -t ????? /dev/hdc1

Where ????? is vfat, msdos, ext2, ext3, etc... If you drop them in a windows box later, it'll partition and format them all over again.

badblocks /dev/hdc1

That'll check for bad blocks on the drive, if too many show up... its about to eat itself.

Also, if any of the the newer drives are s.m.a.r.t. capable, you may want to turn that on in BIOS and then run smartd on them so the drive itself will tell you its status... smart is about as new as ATA33 so only the 10Gb~ will have it.

Cheers,

Finegan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Formating NTFS Blackthorns.Legacy Linux - General 6 09-02-2005 07:26 PM
Formating Eugney Linux - Newbie 2 05-02-2005 03:50 AM
formating mfds Linux - Software 7 04-14-2004 11:15 AM
formating Galilee Linux - Software 2 09-30-2003 11:23 PM
formating.... s9722 Linux - Hardware 10 06-17-2003 12:51 PM

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

All times are GMT -5. The time now is 08:42 PM.

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