LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-16-2003, 12:21 PM   #1
lumpfish
Member
 
Registered: Sep 2002
Location: Halifax Nova Scotia, Canada
Distribution: Arch Linux 0.7
Posts: 38

Rep: Reputation: 15
How do I set up CDROM and CDRW in Slack?


I am having a heck of a time trying to get a cdrom and cdrw working on my new Slack installation. I have been pouring over posts and trying to get things configured right to no avail for some time now. Before I started fooling around with this, I was able to use my cdrom, however, with my tinkering I have messed things up. Any thoughts or ideas would be greatly appreciated.




cdrecord -scanbus

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer+ 9100 ' '1.0c' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *


lsmod

Module Size Used by Not tainted
snd-pcm-oss 37252 0
snd-mixer-oss 11992 1 [snd-pcm-oss]
parport_pc 14724 1 (autoclean)
lp 6752 0 (autoclean)
parport 23264 1 (autoclean) [parport_pc lp]
audio 41656 0 (unused)
snd-usb-audio 41216 0 (unused)
pwc 42248 0 (unused)
videodev 5664 1 [pwc]
printer 7040 0
pegasus 14968 1
uhci 24496 0 (unused)
usbcore 58400 1 [audio snd-usb-audio pwc printer pegasus uhci]
snd-cs46xx 66460 1
gameport 1452 0 [snd-cs46xx]
snd-pcm 55904 0 [snd-pcm-oss snd-usb-audio snd-cs46xx]
snd-timer 13252 0 [snd-pcm]
snd-ac97-codec 37240 0 [snd-cs46xx]
snd-page-alloc 6004 0 [snd-cs46xx snd-pcm]
snd-rawmidi 12512 0 [snd-usb-audio snd-cs46xx]
snd-seq-device 3920 0 [snd-rawmidi]
snd 27460 0 [snd-pcm-oss snd-mixer-oss snd-usb-audio snd-cs46xx snd-pcm snd-timer snd-ac97-codec snd-rawmidi snd-seq-device]
soundcore 3332 6 [audio snd]
pcmcia_core 40032 0
ide-scsi 9424 0
agpgart 39576 0 (unused)
apm 9640 2

lilo.conf

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA fBefore I started fooling around with this, I was able to use my cdrom, however, with my tinkering I have messed things up.ramebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins
other = /dev/hda1
label = DOS
table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
label = Linux
read-only
#append="hdc=ide-scsi"
append="hdd=ide-scsi"
# Linux bootable partition config ends


/etc/fstab

/dev/hdb2 swap swap defaults 0 0
/dev/hdb3 / ext3 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/hdb1 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
#/dev/scd1 /mnt/cdrw iso9660 noauto,user, ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 11-16-2003, 12:38 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Re: How do I set up CDROM and CDRW in Slack?

cdrecord -scanbus

Halfway there.

lsmod

Good.

lilo.conf

#append="hdc=ide-scsi"
append="hdd=ide-scsi"

Halfway.

/etc/fstab

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
#/dev/scd1 /mnt/cdrw iso9660 noauto,user, ro 0 0

You need to uncomment the append line you have commented (mine's up near the top, rather than the bottom - doesn't seem to matter on one of your devices, so I guess it's fine) and I'd make a symlink 'dev/cdrw' - or something like - pointing at one 'scsi' device and make sure /dev/cdrom points to the other one. The question is (and I've never understood why) what cdrecord is calling your stuff. Some people have 'scd' but mine are 'sr'. However, you'll need to reboot (ugh, shades of Windows) to make the append line take effect (I think) and when you do that, you can 'dmesg | grep -i hd' and it'll show what your devices are being translated to. That should let you hook up the links and that should do it. Then you have to tell all your apps which ones to use. If I'm wrong or being an idiot, somebody correct me.

Great post, btw.

-- Oh, and current cdrtools apparently don't require scsi-emulation anymore, though I still have mine set up that way. Don't know which versions are different.

Last edited by slakmagik; 11-16-2003 at 12:40 PM.
 
Old 11-16-2003, 12:48 PM   #3
lumpfish
Member
 
Registered: Sep 2002
Location: Halifax Nova Scotia, Canada
Distribution: Arch Linux 0.7
Posts: 38

Original Poster
Rep: Reputation: 15
Hi digiot.... thanks for the response. I am curious about my fstab. Should this be uncommented as well:
#/dev/scd1 /mnt/cdrw iso9660 noauto,user, ro 0 0

As well, would the symlink to the cdrw be as follows:

ln -s scd1 cdwr

Please forgive me. I am a recent convert from Mandrake... essentially because I didn't find myself learning anything. I have picked up more knowledge in the past week cruising this forum and tinkering with Slack than I did in the previous year with Mandrake. Just as a comment, the speed differential on my system from Mandrake to Slack is incredible... I shall not be returning.
 
Old 11-16-2003, 12:49 PM   #4
lumpfish
Member
 
Registered: Sep 2002
Location: Halifax Nova Scotia, Canada
Distribution: Arch Linux 0.7
Posts: 38

Original Poster
Rep: Reputation: 15
Oops typo.....

ln -s scd1 cdrw

lumpfish
 
Old 11-16-2003, 01:01 PM   #5
lumpfish
Member
 
Registered: Sep 2002
Location: Halifax Nova Scotia, Canada
Distribution: Arch Linux 0.7
Posts: 38

Original Poster
Rep: Reputation: 15
After making changes, I get the following error:

root@lumpfish:/home/steve# mount /mnt/cdrom
[mntent]: line 6 in /etc/fstab is bad
mount: Too many levels of symbolic links


fstab

/dev/hdb2 swap swap defaults 0 0
/dev/hdb3 / ext3 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/hdb1 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/cdrw /mnt/cdrw iso9660 noauto,user, ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


Any thoughts?
 
Old 11-16-2003, 01:10 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah, I meant to say that the fstab line should be uncommented.

But uh oh. Did you check what was in /dev with an ls -l? The symlink thing was an example. I haven't seen that with mount before but I'm guessing maybe you pointed your new cdrw symlink at an old symlink rather than the actual device file or something and mount doesn't like it. You don't want to be overwriting symlinks or pointing them to other symlinks.
 
Old 11-16-2003, 01:16 PM   #7
lumpfish
Member
 
Registered: Sep 2002
Location: Halifax Nova Scotia, Canada
Distribution: Arch Linux 0.7
Posts: 38

Original Poster
Rep: Reputation: 15
Here is what I have in /dev using ls for scd*....

brw-r----- 1 root disk 11, 0 Jul 18 1994 scd0
brw-r----- 1 root disk 11, 1 Jul 18 1994 scd1
brw-r----- 1 root disk 11, 10 Apr 13 1999 scd10
brw-r----- 1 root disk 11, 11 Apr 13 1999 scd11
brw-r----- 1 root disk 11, 12 Apr 13 1999 scd12
brw-r----- 1 root disk 11, 13 Apr 13 1999 scd13
brw-r----- 1 root disk 11, 14 Apr 13 1999 scd14
brw-r----- 1 root disk 11, 15 Apr 13 1999 scd15
brw-r----- 1 root disk 11, 2 Apr 13 1999 scd2
brw-r----- 1 root disk 11, 3 Apr 13 1999 scd3
brw-r----- 1 root disk 11, 4 Apr 13 1999 scd4
brw-r----- 1 root disk 11, 5 Apr 13 1999 scd5
brw-r----- 1 root disk 11, 6 Apr 13 1999 scd6
brw-r----- 1 root disk 11, 7 Apr 13 1999 scd7
brw-r----- 1 root disk 11, 8 Apr 13 1999 scd8
brw-r----- 1 root disk 11, 9 Apr 13 1999 scd9

Any ideas on how I can rebound?
 
Old 11-16-2003, 01:36 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Okay - those are all plain block devices. And, allowing for cdrw instead of dvd and scd instead of sr, you've got a simple

lrwxrwxrwx 1 root root 8 Oct 6 12:36 /dev/cdrom -> /dev/sr1
lrwxrwxrwx 1 root root 8 Oct 6 04:39 /dev/dvd -> /dev/sr0

? This looks to be the second or third time I've been completely stumped today. Aside from the cd's actually *working* or not , I can't imagine why mount would have a problem with that setup.
 
  


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
cant read cdrom and cdrw cholombeh Slackware 6 08-20-2004 01:45 AM
cdrom & cdrw dilberim82 General 5 01-09-2004 11:22 AM
re: how do I mount my cdrom-which is a cdrw ergo_sum Linux - Hardware 10 11-01-2003 04:37 AM
cdrom/cdrw how to set up as hd/scd Zarnce Slackware 3 06-11-2003 05:36 PM
CDROM, CDRW Mount Harryc Linux - Newbie 5 01-01-2003 05:18 AM

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

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