LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-02-2007, 11:29 AM   #1
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Seagate ST340016A on Slackware 12: Testing for errors/100% CPU load during access.


Hello!
I've recently acquired a used hard-drive (HDD IDE Seagate 40Gb ST340016A - bought it using local forums - i.e. not in the shop) and I have 2 days (48 hours) to test the device for problems and return it back if any problems found.

Currently accessing the device on the test machine (i'll install HDD on another machine that isn't going to be assembled in 48 hours) gives 100% CPU load immediately. Turning DMA on didn't help.

The main questions is - which program should I use to test device (not the filesystem integrity) for problems? There is "seatools" program, but it looks like it doesn't work with IDE drives, only with SATA. And what's this with CPU load? I do not have similar problems with another HDD (WDC WD400BB-00DEA0)

Thanks.
 
Old 08-02-2007, 02:45 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Open a terminal window and start the top utility to see what is causing the CPU load.

You can use the mt utility to test the drive. Here are some examples to retention a tape and to erase a tape header. Here the tape drive is mapped as /dev/mt0.
Code:
mt -f /dev/mt0 retension
mt -f /dev/mt0 erase
More information about mt can be found at the following URL.
http://www.linuxcommand.org/man_pages/mt1.html

Your Linux installation might map your IDE tape drive in one of several different ways. It might be mapped as /dev/mt0 or /dev/sr0 or /dev/st0. That depends on things like whether your boot command includes the directive ide=scsi. If it does then you might want to remove it. You really don't need it, but if you have it then you can do more operations on your tape drive that are only available with scsi tape drives.

Last edited by stress_junkie; 08-02-2007 at 02:50 PM.
 
Old 08-06-2007, 07:21 PM   #3
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202

Original Poster
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by stress_junkie
You can use the mt utility to test the drive. Here are some examples to retention a tape and to erase a tape header. Here the tape drive is mapped as /dev/mt0.
Sorry, I was talking about a HDD, not the tape device. Did I put a misprint somewhere? Or maybe I do not understand something?

Quote:
Originally Posted by stress_junkie
Open a terminal window and start the top utility to see what is causing the CPU load.
Well, cpu load was caused by wrong drive parameters.
It looks like it was used in 16-bit mode with disabled dma and umask_irq.
I've turned those parameters on (hdparm -c1 -u1 -d1 -Xudma5 /dev/hdd), now cpu load is gone, and drive works with a very good speed.

Problem solved.
 
  


Reply



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
ksoftirqd cpu usage & load 100% mismacku Linux - General 1 02-25-2009 04:29 AM
Sometimes inetd makes CPU load 100% here kite Slackware 11 02-09-2006 01:20 AM
CPU Load Always at 100% freddie_leaf Debian 2 09-25-2005 06:59 AM
XMMS skipping and stopping under 100% cpu time (*not load) guardian653 Linux - Software 3 10-26-2004 07:16 PM
KDE : 100% cpu load ! Ben2210 Linux - Software 2 03-25-2004 07:55 AM

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

All times are GMT -5. The time now is 09:07 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