View previous topic :: View next topic |
Author |
Message |
Snakey n00b
Joined: 19 Aug 2003 Posts: 10
|
Posted: Thu Aug 21, 2003 9:51 pm Post subject: hdparm with SCSI emulation |
|
|
Hi people!
I was just wondering, after I emulated SCSI for my IDE Burner (adding the hdc=ide-scsi on my grub.conf kernel line), is there still a way to use hdparm to enable DMA? Trying for /dev/cdrom says it's not supported and trying for /dev/hdc says unknown device.
Thank you! |
|
Back to top |
|
|
hulk2nd Guru
Joined: 25 Mar 2003 Posts: 512 Location: Freiburg, Germany
|
Posted: Fri Aug 22, 2003 1:08 am Post subject: |
|
|
scsi devices have other names. something with s. maybe sc0 i dont remember. and hdparm dosnt support scsi devices
greets, hulk |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Fri Aug 22, 2003 2:27 am Post subject: |
|
|
yep! Just echo to the /proc settings. I've put this on my /etc/conf.d/local.start
Code: |
echo "unmaskirq:1">> /proc/ide/ide1/hdc/settings
echo "ide_scsi:1">> /proc/ide/ide1/hdc/settings
echo "current_speed:69">> /proc/ide/ide1/hdc/settings
echo "io_32bit:1">> /proc/ide/ide1/hdc/settings
|
Just change ide1/hdc for your CD location _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
Snakey n00b
Joined: 19 Aug 2003 Posts: 10
|
Posted: Fri Aug 22, 2003 7:42 pm Post subject: |
|
|
Hi pilla!
Thanks for the help,
I understood where to edit (the local.start file) but I didn't understand what you meant by changing ide1/hdc for my CDROM. Sorry I'm a linux newbie hehe.
During boot-up it says it detects hdc as my CDROM. My CD-ROM is located on /dev/cdroms/cdrom0
I do have a /proc/ide/ide1/hdc folder so I don't know if the code you pasted is already right for me or would I have to change something?
And after those 4 line, I put in what hdparm code? Would it be hdparm -d 1 /dev/hdc?
Thank you! |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Aug 22, 2003 8:45 pm Post subject: |
|
|
/dev/cdroms/cdrom0 is just a symlink. If you're using scsi emulation then it will point to the simulated scsi device though and not hdc or whatever. If your cdrom is the master on the secondary ide channel then it is hdc. Probably is what you have.
The commands pilla gave are all you need. You don't need to call hdparm at all for that drive and in fact hdparm won't work at all with scsi emulation. |
|
Back to top |
|
|
jaska Bodhisattva
Joined: 06 Jun 2003 Posts: 725 Location: Finland
|
Posted: Sat Aug 23, 2003 8:49 am Post subject: |
|
|
Been wondering how to setup dma on scsi-emulated cd burner, just noticed that a while ago when I edited the hdparm settings that scsi is not supported. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Sat Aug 23, 2003 2:35 pm Post subject: |
|
|
jaska wrote: | Been wondering how to setup dma on scsi-emulated cd burner, just noticed that a while ago when I edited the hdparm settings that scsi is not supported. |
Just follow my tip. Scsi-emulation hides /dev/hdxx devices that hdparm can address, but the actual device settings can be accessed by the /proc interface. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sat Aug 23, 2003 7:50 pm Post subject: |
|
|
pilla wrote: | yep! Just echo to the /proc settings. I've put this on my /etc/conf.d/local.start
Code: |
echo "unmaskirq:1">> /proc/ide/ide1/hdc/settings
echo "ide_scsi:1">> /proc/ide/ide1/hdc/settings
echo "current_speed:69">> /proc/ide/ide1/hdc/settings
echo "io_32bit:1">> /proc/ide/ide1/hdc/settings
|
Just change ide1/hdc for your CD location |
What is "ide-scsi" used for? I have a dvd on /dev/hdc and CDRW on /dev/hdd. However both media do not have this option.
Also, although I used the above setting for the speed, the speed that I final have is slower. Am I doing something wrong?
Thanks |
|
Back to top |
|
|
|