Dell CD Hotswapping ? cont.

Dell CD Hotswapping ? cont.

Post by Jim Turner's LMAERO New » Wed, 26 Nov 2003 23:27:42



 >> I am using Mandrake Linux 9.0 on a Dell Latitude C800 which allows one
 >> to switch CD/RW, DVD, and floppy drives from the internal bay.  I can
 >> boot up with the DVD drive installed, then hotswap to the floppy drive
 >> and back to DVD which works fine!  My question is that if I boot up
 >> with the floppy installed, the devices (/dev/cdrom, /dev/dvd, etc.)
 >> are not created, so I cant switch from floppy to DVD without
 >> rebooting.

devfs strikes again.  On Gentoo, at least, you can manually use mknod in
/dev , and the device nodes you create will persist across power cycles.
This may not be true on Mandrake, but it might be something to try.

        How?

Are you using ide-scsi emulation for the DVD/CD?

        Yes.

You said that you have
a CD-RW, so I'd hope so.  The thing I'd do would be to unload and reload
sr_mod , scsi_mod , and ide-scsi .  That should make everything work
out.

        How?  Using "rmmod" on any of these yields "Device or resource busy"
(but I have nothing in the drives).

        How can one reprobe the IDE-SCSI to look for new devices?

        Thanks again,

        Jim

 
 
 

Dell CD Hotswapping ? cont.

Post by Dances With Crow » Thu, 27 Nov 2003 00:59:40


On Tue, 25 Nov 2003 08:27:42 -0600, Jim Turner's LMAERO News staggered
into the Black Sun and said:

Your article has no parent reference even though it's a reply to another
article, and it's missing attributions.  Please don't do that.



>>> I am using Mandrake Linux 9.0 on a Dell Latitude C800 which allows
>>> one to switch CD/RW, DVD, and floppy drives from the internal bay.
>>> I can boot up with the DVD drive installed, then hotswap to the
>>> floppy drive and back to DVD which works fine!  My question is that
>>> if I boot up with the floppy installed, the devices (/dev/cdrom,
>>> /dev/dvd, etc.) are not created, so I cant switch from floppy to
>>> DVD without rebooting.
>> devfs strikes again.  On Gentoo, at least, you can manually use mknod
>> in /dev , and the device nodes you create will persist across power
>> cycles.  This may not be true on Mandrake, but it might be something
>> to try.
> How?

Create the device nodes you need with mknod.  The first SCSI CD-ROM
device has major 11, minor 0, syntax for mknod would be "mknod /dev/scd0
b 11 0".

Quote:>> Are you using ide-scsi emulation for the DVD/CD?
> Yes.
>> unload and reload sr_mod , scsi_mod , and ide-scsi .  That should
>> make everything work out.
> How?  Using "rmmod" on any of these yields "Device or resource busy"
> (but I have nothing in the drives).

Something is using the device, then.  Since you're using Mandrake, it's
probably that "supermount" thing which is supposed to automatically
mount removable media.  Turn that off; it's useless anyway.  Consult the
Mandrake documentation for instructions on that--I don't use Mandrake so
I can't tell you exactly what to do here.  Or try "rmmod -f", which
forces module removal--that won't work if a process has the device file
open.

Quote:> How can one reprobe the IDE-SCSI to look for new devices?

By unloading and reloading ide-scsi , sr_mod , and scsi_mod .  

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL

 
 
 

Dell CD Hotswapping ? cont.

Post by Jim Turner's LMAERO New » Fri, 28 Nov 2003 06:45:19



> On Tue, 25 Nov 2003 08:27:42 -0600, Jim Turner's LMAERO News staggered
> into the Black Sun and said:

> Your article has no parent reference even though it's a reply to another
> article, and it's missing attributions.  Please don't do that.

        Sorry, but the original article had expired off my browser and so I
could not reply to it, hence the repost.  I'll give this latest info a
try and post back when I get a chance.

Thanks again,

Jim



>>>>I am using Mandrake Linux 9.0 on a Dell Latitude C800 which allows
>>>>one to switch CD/RW, DVD, and floppy drives from the internal bay.
>>>>I can boot up with the DVD drive installed, then hotswap to the
>>>>floppy drive and back to DVD which works fine!  My question is that
>>>>if I boot up with the floppy installed, the devices (/dev/cdrom,
>>>>/dev/dvd, etc.) are not created, so I cant switch from floppy to
>>>>DVD without rebooting.

>>>devfs strikes again.  On Gentoo, at least, you can manually use mknod
>>>in /dev , and the device nodes you create will persist across power
>>>cycles.  This may not be true on Mandrake, but it might be something
>>>to try.

>>How?

> Create the device nodes you need with mknod.  The first SCSI CD-ROM
> device has major 11, minor 0, syntax for mknod would be "mknod /dev/scd0
> b 11 0".

>>>Are you using ide-scsi emulation for the DVD/CD?

>>Yes.

>>>unload and reload sr_mod , scsi_mod , and ide-scsi .  That should
>>>make everything work out.

>>How?  Using "rmmod" on any of these yields "Device or resource busy"
>>(but I have nothing in the drives).

> Something is using the device, then.  Since you're using Mandrake, it's
> probably that "supermount" thing which is supposed to automatically
> mount removable media.  Turn that off; it's useless anyway.  Consult the
> Mandrake documentation for instructions on that--I don't use Mandrake so
> I can't tell you exactly what to do here.  Or try "rmmod -f", which
> forces module removal--that won't work if a process has the device file
> open.

>>How can one reprobe the IDE-SCSI to look for new devices?

> By unloading and reloading ide-scsi , sr_mod , and scsi_mod .  

 
 
 

1. Dell Inspiron 8000/GeForce2 go... cont'd

Ok. So I did. Here is the result:

(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
        compiled for 4.1.0, module version = 0.1.0
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xE0000000
(--) NVIDIA(0): MMIO registers at 0xFC000000
(EE) NVIDIA(0): Failed to initialize the NVdriver kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Why is this happening to me? It sounds like the NVIDIA_kernel...rpm but it
did not complain at installation... I even tried reinstalling it, rebooting,
etc. - No difference. :-(

Ok, then we will do so.

Ehh... I did not upgrade the kernel. I still use the original from RH7.1
installation. I think it is 2.4.2-2. Can that be the problem?

Well, this is exactly what I've done...

Yeah, if I ever get that far...

Regards,
Olle Borg

2. Linux Help

3. Still Have Problems with Compaq and gettting CD-ROM to run on second IDE Cont

4. help - majordomo on slackware

5. Dell XPi video, EPP CD-Rom

6. debugging apache module problem

7. Advanced TCA SCSI / FC Disk Hotswap revision 0.92

8. xinetd.conf and ftp/telent

9. Toshiba Tecra 9000 - Hotswapping between CDRW and a second HD

10. [RFC] Advanced TCA Disk Hotswap support in Linux Kernel [core 1/2]

11. Problems with IDE (ATAPI) CD-ROM on Dell XL 590

12. Dell Xpi CD M166ST ethernet

13. NEC CD-ROM, Linux, Dell P90 locks up