SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to get everything all lined up in fstab so that I can use both my cdrw and my dvd drive. In the fstab after install, there was a link to /dev/cdrom which after digging around I found out that it was pointing to my dvd rom. Is there a command i couldn't put in that has an output of where the actual device is? In suse, the fstab had a /dev/dvd and a /dev/cdrecorder that slack does not have. Thanks in advance for the help.
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
OK, i have the same lineup, its easy to fix.
First filnd out what device is dvd
ls -la /dev/cdrom
lrwxrwxrwx 1 root root 3 Aug 6 23:52 /dev/cdrom -> hdd
OK, so your DVD (which is linked to /dev/cdrom is actually /dev/hdd
So, make it into /dev/dvd.
cd /dev
ln -sf hdd dvd
and check if it's right
ls -la /dev/dvd
rwxrwxrwx 1 root root 3 Aug 6 23:52 /dev/dvd --> hdd
ok, good.
Now if you have a IDE CDROM on slave on ide2 it will be /dev/hdc (you can find this out by doing dmesg | less and looking for the part when it recognizes all drives.
I will assume your cdrw is on /dev/sr0 (since you have to setup ide-scsi emulation if you want to use it to burn CDs anyway..) so make another link
cd /dev
ln -sf sr0 cdrom
and check it
ls -la cdrom
rwxrwxrwx 1 root root 3 Aug 6 23:52 /dev/cdrom -> sr0
ok, all set, now just edit /etc/fstab, here's mine to help, yours should be a bit different probably.
okay, thanks very much for the help. The dvd links now. There's a few goofy things going on though. I run dmesg to find out where it is and this is what i get over and over:
i also tried cdburner -scanbus and this is what I got:
Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
So I logged in as root and got this:
Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
Does this mean i screwed up during installation and need to recompile kernel to get it to find the drive?
Originally posted by busbarn ... I try to mount the cdrw and I get this message:
/dev/cdrom is not a valid block device
I'm lost.
You are getting that message because /dev/cdrom IS NOT a valid block device, in fact as NSKL said, it is a symlink to the correct block device, something like /dev/hdd would be a VALID block device. Also, just to add a pinch to NSKL's great advice, my burner is /dev/scd0, and my links are setup as such. You can have multiple links to the same valid block device, such as a link called /dev/cdrom and /dev/dvd that both point to /dev/hdc This is not a problem, and is a good idea.
To enable scsi emulation, you will also have to add a line in Lilo...
If your CDRW ends up as /dev/hdd then you will add this line to your /etc/lilo.conf file: append = "hdd=ide-scsi"
in the same "chunk" as your entry for booting slack.
So it may look like this: image = /boot/vmlinuz
root = /dev/hdb1
label = slackware
append = "hdd=ide-scsi"
read-only
Now that's just an example, but similar to what yours may look like.
I think the drive died. During dmesg, it can't find the drive at all. I booted into suse (i have everything working under that) just to see and suse couldn't find the drive either. I just installed red hat and there were a couple times when the drive wouldn't start--it just sort of clicked and I got a message that there was no cd in drive. I ordered a new drive and will try all this again once I have it installed. THanks very much for the help.
FOr knowledge sake, could you guys explain those commands you had me enter? I understand ln creates a link, but what do the options -la and -sf mean?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.