LinuxQuestions.org
Review your favorite Linux distribution.
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 08-12-2002, 01:15 AM   #1
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
cdrw + dvd in fstab


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.
 
Old 08-12-2002, 03:46 AM   #2
dai
Member
 
Registered: May 2002
Location: Wales
Distribution: Slack 8.1, Gentoo 1.3a, Red Hat 7.3, Red Hat 7.2, Manrake 8.2
Posts: 328

Rep: Reputation: 30
What you should find is that if your DVD is /dev/cdrom then your Cd-writer should be /dev/cdrom1.

This is how my DVD (primary slave) and CD-R (Secondary Master) are shown in Slack 8.1 and Red hat 7.2.

this may not answer your question directly but if you are having an issue finding your CD-R it should assist you.

I hope this helps
 
Old 08-12-2002, 06:19 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
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.

/dev/hdb1 swap swap defaults 0 0
/dev/hdb4 / reiserfs defaults 1 1
/dev/hdb2 /home reiserfs defaults 1 2
/dev/hdb3 /usr/local reiserfs defaults 1 2
/dev/dvd /mnt/dvd auto noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/hda1 /mnt/win auto noauto,user,ro 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0

hope that helps
-NSKL
 
Old 08-12-2002, 12:27 PM   #4
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Original Poster
Rep: Reputation: 30
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:

03:07: rw=0, want=1350636751, limit=7166848
Directory sread (sector 0xa102299d) failed

nothing else will read out. I don't know what causes this. I try to mount the cdrw and I get this message:

/dev/cdrom is not a valid block device

I'm lost.
 
Old 08-12-2002, 12:34 PM   #5
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Original Poster
Rep: Reputation: 30
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?
 
Old 08-13-2002, 03:16 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
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.

Any luck yet?

Cool
 
Old 08-13-2002, 09:44 AM   #7
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Original Poster
Rep: Reputation: 30
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?
 
Old 08-13-2002, 07:33 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Sure no problem...

According to the MAN for ln (huh huh, I like saying that, it sounds like Big Brother)
http://man.linuxquestions.org/index....ction=0&type=2

ln -sf means:
-s, --symbolic
make symbolic links instead of hard links
-f, --force
remove existing destination files

And according to the MAN for ls: http://man.linuxquestions.org/index....ction=0&type=2

-l use a long listing format (shows you where it's linked and much more)
-a, --all
do not hide entries starting with . (period)

Cool, knowledge is power, and power, well that's in the MAN! huh huh

Cool
 
Old 08-13-2002, 09:14 PM   #9
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Original Poster
Rep: Reputation: 30
awesome thank you very much...I'll post again when i get the new drive.
 
Old 08-14-2002, 01:09 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
No problem, and good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
Cannot mount DVD/CDRW Combo drive iff in fstab Iggyboo Linux - Hardware 0 12-21-2004 06:18 PM
Play DVD on CDRW/DVD Combo Drive?? halo14 Linux - Laptop and Netbook 13 09-21-2004 10:21 AM
cdrw not 100% via dodgy fstab dave bean Slackware 2 02-26-2004 06:25 AM
Dvd/cdrw lava135 Linux - Newbie 3 09-04-2003 02:08 PM

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

All times are GMT -5. The time now is 03:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration