LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-23-2002, 10:28 PM   #1
cybervyk
LQ Newbie
 
Registered: Dec 2002
Distribution: Mandrake 9.0
Posts: 3

Rep: Reputation: 0
Issues with multiple cdrom drives in mdk 9.0


A rather simple problem that I cannot for love or money think of how to ask succinctly through a search engine.
Apologies for that I suppose it has been posted here before. anyway ..

I have an internal CD/DVD rom drive that I have running as ide-scsi from lilo.
I have an external HP 8200e USB cd writer, also recognized as scsi.

Now, I always have /dev/cdrom, /dev/cdrom0 and /dev/cdrom1 upon booting. I've appended the line "modprobe sg" to the end of /etc/rc.d/rc.local to create the appropriate sg? files. Fstab supplies directions as to where the OS (Mandrake 9.0) is to supermount these devices, namely, /mnt/cdrom and /mnt/cdrw.

The trouble comes when, depending how the machine seems to feel upon a reboot, that /mnt/cdrom will be the internal IDE cdrom drive OR that /mnt/cdrom will be the external USB cd writer.

lilo.conf
----------------------------------------------------------
boot=/dev/hda
map=/boot/map
vga=normal
default=linux
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/vmlinuz
label=linux
root=/dev/hda5
initrd=/boot/initrd.img
append="hdc=ide-scsi quiet devfs=mount"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda5
initrd=/boot/initrd.img
append="devfs=mount"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda5
initrd=/boot/initrd.img
append="failsafe devfs=nomount"
read-only
other=/dev/hda1
label=win
table=/dev/hda
other=/dev/fd0
label=floppy
unsafe
----------------------------------------------------------

In spite of the fact I do not know how to ask "What is Wrong?" succinctly, I'm willing to bet that several of you out there have come across this problem? What to do?

Thank you very much for your time. First time caller, long time listener.

Cybervyk

Last edited by cybervyk; 12-23-2002 at 10:51 PM.
 
Old 12-23-2002, 10:52 PM   #2
cybervyk
LQ Newbie
 
Registered: Dec 2002
Distribution: Mandrake 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, does not seem to want to post fstab, also does not want to acknowledge tabs or spaces in lilo.conf.

fstab
----------------------------------------------------------
/dev/hda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/cdrw supermount dev=/dev/scd1,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
----------------------------------------------------------
 
Old 12-24-2002, 01:55 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
to post as it is in your files, you can use the code feature. Without spaces next to the words, place the files between the 2 opening and closing brackets:
[ code ] Place the stuff here [ /code ]

Remove the spaces between the brackets and the code and that will help keep the format proper.

BTW, welcome to LQ

Onto your problem... Mandrake uses DevFS. That's great, it's fine and dandy, and some people love it. Anyway, the /mnt/cdrom is only a mount point for the media you are inserting. It can be /mnt/somewhere/anywhere/something/anything/and/so/on If you really wanted it to be. My point is that you can mount your media anywhere you want, it's the device that is changing. I can see at least 1 problem, you are getting "scsi emulation" from /dev/hdc which is more than likely your internal drive, from lilo.conf. The other is probably getting mounted as an actual scsi drive since it's an external USB drive.

Now with that mouthful said, I really am not too sure on how you'd fix it to "force" the device each time to be the same. You could try re-arranging your append line in lilo to have DevFS mount first:
from append="hdc=ide-scsi quiet devfs=mount" to append="devfs=mount quiet hdc=ide-scsi"
But I am not sure if that'd change anything.

It's all I can come up with right now, and might be worth a shot

Cool
 
Old 12-24-2002, 06:54 PM   #4
cybervyk
LQ Newbie
 
Registered: Dec 2002
Distribution: Mandrake 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
MasterC, thank you very much. I greatly appreciate the warm welcome and the prompt reply. Thank you as well for the code tip, it will prove handy in the future.
I have made the suggested change to lilo.conf.
I'll thank you early again for the help and I'll let you know after a couple reboots whether it seems effective or not.
Please, let me know if you have any other thoughts.

Appreciative

Cybervyk
 
  


Reply



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
multiple drives cs-cam General 2 02-16-2005 05:46 AM
SATA's HD Drives and mdk 10.1... setlec_seta Linux - Hardware 1 12-24-2004 12:28 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
optical drives stopped working on mdk 10 NorthStar Linux - Hardware 0 07-08-2004 03:16 PM
Issue with LG CD Drives:Resolved in Mdk 10? bongski55 Mandriva 2 03-11-2004 10:29 PM

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

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