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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2002, 09:16 PM
|
#1
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-04-2002, 09:29 PM
|
#2
|
LQ Newbie
Registered: Dec 2002
Location: Reno, Nevada
Distribution: RedHat
Posts: 22
Rep:
|
Try accessing it with the device name it would normally be as ide, like /dev/hdc
|
|
|
12-04-2002, 09:33 PM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Original Poster
Rep:
|
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
|
|
|
12-04-2002, 09:43 PM
|
#4
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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 09:45 PM.
|
|
|
12-04-2002, 10:34 PM
|
#5
|
LQ Newbie
Registered: Dec 2002
Location: Reno, Nevada
Distribution: RedHat
Posts: 22
Rep:
|
But is /dev/hdc the right device for your dvd drive? I only used it as an example.
|
|
|
12-04-2002, 11:34 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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. . .
|
|
|
12-05-2002, 12:57 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Original Poster
Rep:
|
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
|
|
|
12-05-2002, 01:50 AM
|
#8
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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 01:54 AM.
|
|
|
12-05-2002, 03:23 PM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Original Poster
Rep:
|
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
|
|
|
12-05-2002, 03:34 PM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Original Poster
Rep:
|
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
|
|
|
12-05-2002, 05:00 PM
|
#11
|
Member
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409
Rep:
|
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.
|
|
|
12-05-2002, 11:50 PM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|