[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lost in devfs and ide-scsi cd



Hi,

BTW I did RTFM for many times through the years. :) And this is not a
CD-Writing problem but to use SCSI emulation with plain IDE CD under
DevFS.

Routinely,

o I added hdc=ide-scsi to kernel boot command line
o Added the following section to /etc/modutils/ide-scsi, then ran
  update-modules for that purpose.

 _____
/
| alias block-major-22 sr_mod
| options ide-cd ignore=hdc
| alias /dev/sr0 sr_mod
| alias /dev/scd0 sr_mod
| pre-install sg modprobe sr_mod
| pre-install sr_mod modprobe ide-scsi
| pre-install ide-scsi modprobe ide-cd
| probeall /dev/scd0
\_____

* I'd hope Debian provide this with all comment out. To copy everytime
  from CD-Writing HOWTO is boring.

I'm running 2.4.1; the problem is, neither sr_mod nor anything else is
providing /dev/sr0 when loaded. So if I mount -t iso9660 /dev/sr0
/cdrom I lost. Though the various kernel modules were loaded.

Then what if I mount -t iso9660 /dev/scsi/host0/bus0/target0/lun0/cd
/cdrom ? I am still lost, because this way, the kernel then wouldn't
know what kernel modules to load (ie. sr_mod etc)

So, either I add the following to /etc/modutils/devfsd:

alias /dev/scsi/host0/bus0/target0/lun0/cd sr_mod

which I feel pretty ugly and unflexible, or I still use sr0 but add
symlinks for it. Ie in /etc/devfs/symlinks to add the following:

scsi/host0/bus0/target0/lun0/cd scd0

BUT, no luck, unfortunately. (mount: special device /dev/sr0 does not
exist) <-- I verified the symlink was there.

Please help! Thanks!

Yeah few people use ide-scsi except for IDE CD burner. But the above
doesn't involve CD buring yet. (strace on cdrecord -scanbus tell me
it's looking for /dev/sg* ohhh where's the sg* besides scd* and sr* ?
Oh man!)

Later,
-- 
http://dim.sourceforge.net ............... Debian Chinese Input Method
http://njlug.sourceforge.net ............ NanJing GNU/Linux User Group
http://cdlinux.sourceforge.net ........... Debian running on Live! CDs
http://people.debian.org/~zw ...................... XEmacs Screenshots



Reply to: