LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-30-2004, 10:23 PM   #1
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Unhappy hdparm -tT not working for my cd drives


i can hdparm -tT the /dev/hda (my harddrive) fine, but when i do hdc or hdd (my cdwriter and dvdrom):

hdparm -tT /dev/hdd

/dev/hdd:
read() hit EOF - device too small
Timing buffered disk reads: 0MB in 0.00 seconds = nan MB/sec
Hmm... suspicious results: probably not enough memory for a proper test

thats the end of the output. i had around 400mb of ram free at the time of testing, so i think the hdparm assumption is wrong. does anyone have any ideas?
 
Old 04-30-2004, 10:38 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Do you have a data CD in it and is it mounted?

RO
 
Old 04-30-2004, 11:18 PM   #3
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
i didnt think you were supposed to... nevertheless, i tried it, and i got the same result. any other suggestions?
 
Old 05-01-2004, 01:37 AM   #4
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Well, I found two things on google. The first, I don't know what it means,

AFAICT hdparm says "suspicious results" when the disk speed is greater
than one-half the buffer speed. I just got 51.20 and 26.34 on the PPro
with my patches and the message came out again.

The second, make sure that you are root when you are doing the test. I saw several
posts where the suspicious came out when running hdparm -t as non root. Beyond that,
I don't know.

I was unsure about the mounted thing, but figured it couldn't hurt.

RO
 
Old 05-01-2004, 02:10 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
that's what you get when the drive is scsi emulated.
 
Old 05-01-2004, 10:18 AM   #6
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
oh, well i do have both drives scsi emulated, although the scsi devices are:
/dev/scd0 (/dev/hdc)
/dev/scd1 (/dev/hdd)
i dont like using scsi emulation (i have an ide-only system), but i have to, otherwise i cant use my cdrom drives at all.
 
Old 05-01-2004, 03:28 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
you could turn it off just to test the drives speed if you wanted.
i read my statement above, and it sounds like a chastisement. i just meant thats what we all get when the drive is scsi-emulated. i have one drive like that and one drive not. hdc is scsi emulated.


/# hdparm -tT /dev/hdc
/dev/hdc:
read() hit EOF - device too small
Timing buffered disk reads: read() hit EOF - device too small

/# hdparm -tT /dev/hdd
/dev/hdd:
Timing buffer-cache reads: 128 MB in 0.90 seconds =142.38 MB/sec
Timing buffered disk reads: 64 MB in 22.77 seconds = 2.81 MB/sec
/#

Last edited by whansard; 05-01-2004 at 03:31 PM.
 
Old 05-01-2004, 03:51 PM   #8
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
if i remove ide_scsi (i have it as a module, doesnt work otherwise), and i do hdparm -tT /dev/hdd:
/dev/hdd: no such device or address
despite the fact that i can do ls -l /dev/hdd and it pops right up.
 
Old 05-01-2004, 05:56 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
i meant to remove the "hdd=ide-scsi" from your boot loader, reboot and test it, then
put it back like it was.
 
Old 05-01-2004, 06:54 PM   #10
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Just to note, hdparm will not give you real speed. You can use dd and time. Then calculate the kilobytes per second. Benchmarking CDs is a little tedious. You have to split up the CD into thirds then tell dd to start at a certain sector and to skip a certain amount of sectors. You can use bonnie or other benchmark program to get a more accurate result.
 
Old 05-01-2004, 08:38 PM   #11
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
ok, ill try both of those suggestions. thanks .
 
Old 05-01-2004, 08:53 PM   #12
Inhibit
Member
 
Registered: Apr 2004
Distribution: Mandrake, Gentoo, SuSe, JDS
Posts: 53

Rep: Reputation: 15
Just a note. What you might want to do is make sure your enabling UDMA support on the IDE bus and channels as part of the "append" line in your bootloader. Something like

append="hdx=dma"

or if you've got a newer/supported drive

append="hdx=autotune"

of course replacing "hdx" with your drive letter in /dev, such as "hdc". If you're interested in finding out more, refer to the doc's in Documentation/ide.txt from the linux kernel source.
 
  


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
2 cd drives 1 not working Longinus Linux - Newbie 5 10-30-2005 05:42 PM
2 cd drives only one ditected, but not working rkrishna Slackware 2 09-10-2005 11:54 AM
hdparm and Sata drives? Darkvater Linux - Hardware 3 02-17-2005 08:07 AM
Getting CDROM drives working contrasutra Slackware 8 03-31-2003 10:32 PM
hdparm -g NOT= hdparm -i ---LILO hangs @ L stevewalsh Linux - General 4 07-23-2001 10:37 PM


All times are GMT -5. The time now is 01:22 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration