LinuxQuestions.org
Review your favorite Linux distribution.
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 10-14-2003, 02:05 AM   #1
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
ide-scsi emulation w/o reboot


Hi all,

I need some help from a guru. I have combo CD-RW/DVD drive. If I want to have a smooth dvd playback, I must have ide-scsi emulation disabled. In order to burn CDs, I need it enabled. I know how I can enable ide-scsi with kernel parameters at boot time. I just rather not reboot just b/c I want to burn a CD, or just because i want to watch a dvd.

Apparently, there is a way to accomplish this so long as ide-cd is compiled as a module which it is in mdk9.1. Ide-scsi is compiled as a module as well. I got some instructions here:
http://www.linuxdocs.org/HOWTOs/SCSI-2.4-HOWTO/sr.html
basically,
rmmod ide-scsi; rmmod ide-cd; modprobe ide-scsi

It doesn't work

When I boot with no ide-scsi emulation, then when I try to enable it, the cd drive does not appear anywhere in the dev file system. similarly, when I load with ide-scsi enabled, I cannot disable it - well I can, but only by not having any access to the drive: rmmod ide-scsi gets rid of the scd0 entry but modprobe ide-cd does not give me the hdc entry I should get...

Any thoughts what might be missing? It seems I'm on the right track
 
Old 10-14-2003, 04:50 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I'm not sure but do you have an entry in /etc/fstab for two drives?

like /dev/cdrom and /dev/cdrom0, then you would use one for cd drive and the other one for dvd drive.

Maybe that could be a problem if you don't have it. Try it to see what happens!
 
Old 10-14-2003, 09:34 AM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Original Poster
Rep: Reputation: 48
the fstab file is ok. The trouble is that I don't get the dev files in the first place.
When I start with no ide-scsi, I can 'detach' the drive by rmmod ide-cd. I can re-attach it to /dev/hdc by modprobe ide-cd. I am supposed to be able to attach it as a scsi-drive by doing modprobe ide-scsi but this part is not working. It's as though it's not detecting the drive.
 
Old 10-14-2003, 04:22 PM   #4
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
im in your shoes too.
 
Old 10-14-2003, 06:33 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Original Poster
Rep: Reputation: 48
all i had to do is to boot with ide-scsi off and then reboot with ide-scsi on. The drive now appear as
/dev/ide/etc.etc.
and
/dev/scsi/etc.etc.
and can be accessed as either an ide device with dma enabled (for dvd playback) or as a scsi device (for cd burning). It might even have been like this the whole time and I just didn't know about it... But I'm happy now
 
Old 10-14-2003, 10:00 PM   #6
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
explain that a little better?
 
Old 10-14-2003, 10:20 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Original Poster
Rep: Reputation: 48
You can enable or disable ide-scsi emulation by passing a kernel parameter at boot time. With lilo, it will be
linux hdc=ide-scsi
for turning it on, and without that parameter for turning it off. You can also edit the lilo.conf or grub.conf accordingly - that's what I had: two entries, one with ide-scsi emulation, one without.

Now, what I did was to boot with ide-scsi OFF. Then the cd-drive is under /dev/ide/etc.etc; the /dev/hdc is just a symlink to this.
When I boot with ide-scsi on, the cd-drive appears under /dev/scsi/etc.etc. and /dev/scd0 (or /dev/sr0 depending on your setup) is a link to that.
I used to think that it is a matter of either/or. Either the cd-drive is under /dev/ide... or it is under /dev/scsi... depending on the boot time options but it is not under both at the same time. And I was looking for a way to change it on the fly w/o rebooting. The link I gave in my first post describes a way to do it but it did not work for me.

It turns out that when I boot with ide-scsi on, the cd-drive is under both
/dev/ide/...
and
/dev/scsi/...
And I have symlinks to both (one is /dev/hdc and the other /dev/scd0). I could also just create them, I suppose. I can activate dma on /dev/hdc by
hdparm -d 1 /dev/hdc
and that makes for smooth dvd playback (/dev/dvd is linked to /dev/hdc). I can use cdrecord because it will use /dev/scd0. All with only one drive - apparently it gets treated as two things internally. 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
ide-scsi emulation RestInPieces Linux - Newbie 3 10-31-2004 04:45 PM
2.4.xx to 2.6.4 and SCSI Emulation to IDE/ATAPI farmerdan Linux - General 3 03-31-2004 10:07 AM
No ide SCSI emulation on 2.6? moger Linux - General 1 01-17-2004 09:42 PM
ide-scsi emulation vabaliukas Linux - Hardware 0 07-09-2003 09:14 AM
ide-scsi emulation vabaliukas Linux - Hardware 2 07-07-2003 08:39 PM

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

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