LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-03-2003, 04:17 PM   #1
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Rep: Reputation: 15
Question Adding a second cdrom


I have a dvd and a cdrw in my computer. The dvd was set up automatically by slackware 9.1 and the cdrw was not. Now I know I need to edit /etc/fstab so that I can be able to mount it, but i'm lost when it comes to the /dev/somedevice. I looked in /dev and don't see my cdrw listed under cdrom2 or anything like that. What do I need to do?
 
Old 10-03-2003, 04:28 PM   #2
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
how are your devices installed? (i.e. master, slave, etc)
linux name devices such as:

hda, primary master
hdb primary slave
hdc, secondary master
hdd, secundary slave

so it's a matter to figure out which one's the cd rom, and find it in /dev/hdx in order to edit fstab

Hope this help
 
Old 10-03-2003, 05:24 PM   #3
reclusivemonkey
Member
 
Registered: May 2003
Location: Halifax, WY, UK
Distribution: Slackware 9
Posts: 167

Rep: Reputation: 30
See if you have a /dev/cdrom. If you have, delete it and then create it again with a link to /dev/sr0 (providing that is your correct device, there should be a message in dmesg about it). If this doesn't work its most likely you don't have the magic line in /etc/lilo.conf which is

append="hdd=ide-scsi"

providing again that hdd is the correct device. If you have your DVD in the first slot on the secondary IDE and your CD-RW in the second as I think most people would be set up, the above should work.
 
Old 10-03-2003, 07:01 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
I don't know if you have one or 2 hard drives in your system, but my recommendation would be to not put both the CD and DVD on the same ribbon cable. Because both are removable media devices, it can screw things up during boot if both are empty (at least that has been my experience).

I would recomend you set things up this way:

Primary Master = main hard drive
Primary Slave = DVD
Secondary Master = CD
Secondary Slave = second hard drive (if it exists)

-- J.W.
 
Old 10-03-2003, 07:42 PM   #5
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
Well, I've tried a couple things. First I tried linking to cdrom2 to hdd, that didn't work. Then I tried linking cdrom2 to sr0 with the append statement and that didn't work. Weird thing is, on both, when i accessed cdrom or cdrom2 i would get the contents of my dvd (cdrom). I'm confused now.

J.W. - I've never had a problem with having a both on the same strip in linux before (or windows). Thanks for the suggestion though.

Any other ideas?
 
Old 10-03-2003, 07:49 PM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Protex, showing us your fstab would help immensely.

JW, setting a CD/DVD/Non-HDD device as master is highly unrecommended. This is because those drives are WAAAAYYY slower than hard disks. And this will degrade the performance of the slave especially if it is a HDD.

However, your suggestion on separating CD/DVD and CD-RW on different IDE cables is recommended because having them on the same IDE bus will cause bottleneck if you want to do on-the-fly CD copying and may result in coasters (although rare nowadays, because of technologies like burn-proof, etc).
 
Old 10-03-2003, 08:35 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Azmeen - well I agree with you partially. On a system with one drive, a CD, and a DVD, either the CD or DVD has to be jumpered as the Master on IDE-2, right? Regarding possible performance degradation, Yes, your point makes sense but at least for me it has not been an issue. (The layout suggestion I posted is how I've got my system set up, and so far it has been working pretty well.) Admittedly I do not put a significant load on my 2nd HD, perhaps if I did I may be coaxed into re-evaluating my layout. As I indicated before, at least back in the days when I was trying to configure my box, I ran into trouble if I had both HD's on the same cable and a CD and CD-RW both on the other cable. Arranging them as I mentioned avoided all problems, at least for me. -- J.W.
 
Old 10-03-2003, 08:47 PM   #8
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
JW, maybe your problem was due to the limited capabilities of systems at that time

However, speaking from experience (sysadmin of three years++ multiple OS/hardware/platforms)... no, optical media does not necessarily have to be a master of whatever IDE channel. In fact, like I stated earlier, it's not recommended, of course you still can do it, it'll just slow down the system if you perform operations off the hard disk while doing something on the CD as well.

You'll have to benchmark this yourself to see the results "live" because I agree that you have to see it in order to believe it.

Something simple would be copying a 100MB file from one HD to another while playing a music CD... or something along those lines...
 
Old 10-03-2003, 08:51 PM   #9
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
Here is my fstab:

/dev/hdb1 swap swap defaults 0 0
/dev/hdb5 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/cdrom2 /mnt/cdrom2 iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


cdrom (dvd) points to hdc
cdrom2 (cdrw) points to sr0
 
Old 10-03-2003, 09:17 PM   #10
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Protex,

That looks just right to me... I assume you added the append line to your lilo.conf, did you run /sbin/lilo as root after that? Any error messages?
 
Old 10-04-2003, 12:46 AM   #11
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Azmeen - well, shoot, I'd like to think that I know more now than I did back then, and your suggestion certainly is easy enough to experiment with, so this weekend I'll give it a try. If it speeds things up, as it very well may do, heck, I owe you one.

Protex- I'll echo Azmeen's comments about rerunning lilo. One other question, from the Obvious Dept: I assume you've verified that all necessary connections, cables, and the like are seated properly and secure. I have no doubt that they are, but hey, I once spent about 3 hours trying to completely overhaul my entire suite of audio software, until I discovered that the problem was that the the speaker cable was no longer plugged into the sound card (apparently due to the GF's overly curious cat). Oops. Oh well live and learn -- J.W.
 
Old 10-04-2003, 05:56 PM   #12
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
The cdrw isn't new, it's been in the system for quite some time so it can't be that a cable is loose (i had to burn the iso some how). It just wasn't setup by Slackware. It did work fine under mandrake 9.0, 9.1, and 9.2 rc2 so i know it is possible.

I did run lilo after I added the append, so i'm ruling that out too.

Cdrom2 points to sr0 so is it possible that that isn't my cdrw?
The reason I ask this is because both cdrom and cdrom2 access my dvd at this point.
 
Old 10-04-2003, 08:39 PM   #13
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
I gathered that from what you posted that your cdrom and cdrom2 symlinks are somehow pointing to the same device. Can you state where are they pointing to exactly?

Another thing, how is your IDE devices set up? Something like this listing:
Primary Master: Hard Disk
Primary Slave: DVD-ROM
Secondary Master: Burner
Secondary Slave: none

...will help immensely.
 
Old 10-05-2003, 08:25 PM   #14
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
Primary Master: Hard drive 1
Primary Slave: Hard Drive 2
Secondary Master: DVD
Secondary Slave: CDRW

File: `/dev/cdrom' -> `hdc'
Size: 3 Blocks: 1 IO Block: 4096 symbolic link
Device: 345h/837d Inode: 170561 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-10-05 21:27:13.000000000 -0400
Modify: 2003-10-03 19:47:37.000000000 -0400
Change: 2003-10-03 19:47:37.000000000 -0400

File: `/dev/cdrom2' -> `sr0'
Size: 3 Blocks: 1 IO Block: 4096 symbolic link
Device: 345h/837d Inode: 170639 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-10-05 21:27:13.000000000 -0400
Modify: 2003-10-03 20:33:46.000000000 -0400
Change: 2003-10-03 20:33:46.000000000 -0400
 
Old 10-05-2003, 09:16 PM   #15
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
This may sound weird but, have you tried linking /dev/cdrom2 to sr1?
 
  


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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
adding permisssions to cdrom so it can be mounted by a user paul62 Slackware 14 11-09-2004 04:46 PM
Cant access first cdrom after adding second cdrom Zero-0-Effect Slackware 2 02-18-2004 09:25 PM
Adding cdrom to lilo ksgill Linux - Newbie 3 06-20-2003 11:43 PM
Can't mount cdrom after adding new drive jimweatherly Linux - General 4 05-29-2001 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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