LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2002, 10:16 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
hdparm and SCSI emulation


Reading through and trying to help out this member:

http://www.linuxquestions.org/questi...threadid=37358

I decided to try things on my DVD ROM. But I am using scsi emulation on the drive, and when I try to issue *any* hdparm option to the drive I get:
Code:
root@masterc:~# hdparm -v /dev/scd1
/dev/scd1 not supported by hdparm
root@masterc:~#
So now I am wondering, how would someone get around this, or is there an equivilent hdparm for SCSI's? This drive IS ide, but it's using scsi emulation, if that helps at all.

Cool
 
Old 12-04-2002, 10:29 PM   #2
starheart
LQ Newbie
 
Registered: Dec 2002
Location: Reno, Nevada
Distribution: RedHat
Posts: 22

Rep: Reputation: 15
Try accessing it with the device name it would normally be as ide, like /dev/hdc
 
Old 12-04-2002, 10:33 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Thank you for the suggestion. I thought that when you used scsi-emulation that the previous device was no longer used. But just to make sure I gave it a try, but no luck:

Code:
root@masterc:~# hdparm /dev/hdc
/dev/hdc not supported by hdparm
root@masterc:~# hdparm -v /dev/hdc
/dev/hdc not supported by hdparm
root@masterc:~#
Cool
 
Old 12-04-2002, 10:43 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
There were some bits about hdparm and SCSI here, I wish I knew more about SCSI, but one question why would you put scsi emulation on DVD-ROM? secondly after you applied ide-scsi to an IDE device it is no longer known as IDE device to the system it is SCSI, only you know it is IDE but the system knows it is SCSI - this is the whole idea of ide-scsi emulation BTW.
P.S. Unless it is a combo CD-R/RW/DVD-ROM drive of course.

Last edited by neo77777; 12-04-2002 at 10:45 PM.
 
Old 12-04-2002, 11:34 PM   #5
starheart
LQ Newbie
 
Registered: Dec 2002
Location: Reno, Nevada
Distribution: RedHat
Posts: 22

Rep: Reputation: 15
But is /dev/hdc the right device for your dvd drive? I only used it as an example.
 
Old 12-05-2002, 12:34 AM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
You might try recompiling ". . . hdparm with the include files from
the latest kernel source code." (from the man page). There may
be some ioctl()s that have been added to the kernel that allow
hdparm to work with SCSI. . .
 
Old 12-05-2002, 01:57 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Cool, thanks for the replies, here goes:

Boris: I am using scsi-emulation on my dvd drive for burning. Some of the programs (like eroaster, xcdroast and others) seem to want to see my source drive as a scsi as well as the burner. So I use scsi emulation on it. I could easily remove this now that I barely use GUI's for cdburner though...


Starhart, yeah, I know you meant that as an example, but that is what the device was before I used scsi emulation on it. It's Secondary Master = /dev/hdc.


Moses: yeah, this might be what I want to do. If I read that correctly, if I use 2.4.20 I might see something of use? Or am I reading that wrong?

Cool
 
Old 12-05-2002, 02:50 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
I use scsi emulation on both my DVD and CDRW (hdc and hdd), this is what I get with "hdparm /dev/hdc"
Code:
root@grendel bern$ hdparm /dev/hdc
/dev/hdc:
 HDIO_GET_MULTCOUNT failed: Input/output error
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 BLKRAGET failed: Input/output error
 HDIO_GETGEO failed: Invalid argument

root@grendel bern$ hdparm -i /dev/hdc
/dev/hdc:
 Model=Pioneer DVD-ROM ATAPIModel DVD-116 0107, FwRev=E1.07, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=13395, BuffSize=64kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 *udma4
 AdvancedPM=no
 Drive conforms to: device does not report version:  1 2 3 4 5
And for hdd,
Code:
root@grendel bern$ hdparm /dev/hdd
/dev/hdd:
 HDIO_GET_MULTCOUNT failed: Input/output error
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 BLKRAGET failed: Input/output error
 HDIO_GETGEO failed: Invalid argument

root@grendel bern$ hdparm -i /dev/hdd
/dev/hdd:
 Model=LITE-ON LTR-12101B, FwRev=LS22, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=1024kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
 AdvancedPM=no

Last edited by Aussie; 12-05-2002 at 02:54 AM.
 
Old 12-05-2002, 04:23 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Ok Aussie, thanks for that, it made me try my other drive, which did show up with:
Code:
root@masterc:~# hdparm -i /dev/hdd

/dev/hdd:

 Model=YAMAHA CRW2100E, FwRev=1.0H, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
 UDMA modes: udma0 *udma1 
 AdvancedPM=no
Although I am still not sure why??? Does /dev/hdd not get replaced with /dev/scd1 when I use emulation? I thought this was the case, but this would say otherwise???

Cool, so now, a problem. I still cannot get anything with /dev/hdc which is the device that the DVD rom was before scsi emulation.

Any ideas on that then?

Cool
 
Old 12-05-2002, 04:34 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Let me crawl back into my hole...



I just remembered something, way back when I first started slackin, I screwed up the /dev/hdc device. So anyway, in a lame attempt to fix it, I simply linked /dev/hdc to /dev/scd0 and that's why I am getting the error.

Stupid me! Anyway, I will fix that and then let you guys know how things go. Thanks for the ideas, and sorry I forgot how lame I was

Cool
 
Old 12-05-2002, 06:00 PM   #11
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
I had to use scsi emulation on my dvd drive or wouldn't use dma mode, heres my grub.conf, adding the lines in bold enabled scsi

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-18.7.x)
root (hd1,0)
kernel /vmlinuz-2.4.18-18.7.x ro root=/dev/hda2 hdc=ide-scsi hdd=ide-scsi
initrd /initrd-2.4.18-18.7.x.img


Then I just added hdparm -d1 /dev/hdd to my /etc/rc.d/rc.local and that enables dma mode on boot up, dvds play much much smoother.

All is good that way. It may not be the best method but it works great for me, and if it aint broke I don't mess with it.
 
Old 12-06-2002, 12:50 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Alright, things are back to normal in Chad land over here, thanks everybody for your input. Fixed the symlink to the actual device again, smiled, and bam! It works.

Thanks everyone

Cool
 
  


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
scsi emulation or not ? cozye Slackware 5 12-01-2003 03:23 PM
hdparm and bonnie results for scsi disk Henry_1 Linux - General 0 10-14-2003 12:51 PM
scsi Emulation mooreted Slackware 20 09-15-2003 04:12 PM
hdparm for IDE, what about SCSI? Duren Linux - Software 0 08-09-2003 03:12 PM
scsi emulation llama_meme Linux - General 1 05-04-2002 07:02 AM


All times are GMT -5. The time now is 11:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration