LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   n00b: CD-Mounting problem (https://www.linuxquestions.org/questions/slackware-14/n00b-cd-mounting-problem-69739/)

Anti-Gates 07-03-2003 12:08 AM

n00b: CD-Mounting problem
 
I have 2 cd drives on my box. One DVD, and one CDRW. Yesterday the DVD drive was working. I turned the computer off, came back in the morning, and now my CDRW works, but not my DVD drive. (I dont think I can write to my CDRW, but I can read from it). I have searched other forums, and google, and I have not found anything that has helped me with my problem. Anything that might help would be great.

(Im sorry if there are other posts about this here, but the search on this forum wasnt working well when I tried.)

wonderpun 07-03-2003 05:23 AM

Hello and welcome to LQ :) So what would you want to know? How to get your DVD drive back or how to configure your CD-RW so that you could write CD's? Ok, I think both would be great. Hmmm... well can you post your /etc/fstab here? That would be a start. :)

Anti-Gates 07-03-2003 10:58 AM

/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/scd0 /mnt/cdrw iso9660 noauto,owner,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

Anti-Gates 07-03-2003 10:58 AM

Also, I cant mount anything as user. How do I change permissions?

acid_kewpie 07-03-2003 11:02 AM

add "user" to that option list, e.g. noauto,owner,ro,user

Anti-Gates 07-03-2003 11:16 AM

OK, thanks...

Anti-Gates 07-03-2003 12:38 PM

Hmmmm now when I mount my cdrw, my DVD drive mounts and it works... But my CDRW wont mount now...

Anti-Gates 07-03-2003 01:07 PM

OK, well now my DVD drive is scd0. I have changed my fstab. It currently looks like:

UW PICO(tm) 4.4 File: /etc/fstab

/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /mnt/win ntfs ro,umask=0222 0 0
/dev/cdrom /mnt/cdrw iso9660 noauto,owner,ro,user 0 0
/dev/scd0 /mnt/cdrom iso9660 noauto,owner,ro,user 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

grym 07-03-2003 01:22 PM

Setting up burner and dvd

if you use lilo add a line like
append="hdc=ide-scsi"
(substitute your cdrw device for hda)
run /sbin/lilo

linked /dev/hdd to /dev/dvd
(once again substitute your dvd dev for hdd)
then add these lines to /etc/fstab

/dev/sr0 /mnt/cdrom iso9660 user,noauto,ro 0 0
/dev/dvd /mnt/dvd iso9660 user,noauto,ro 0 0

if your burner is scsi things are different such as not needing the append line

Anti-Gates 07-03-2003 01:27 PM

my DVD (cdrom) works now. So that is scd0. I am using lilo, I am using the scsi kernel, I have the append line in lilo.

grym 07-03-2003 01:32 PM

burner
 
is your burner scsi?

Anti-Gates 07-03-2003 02:06 PM

No, it is IDE. It is on the secondary channel, and I believe it is set to slave. (making it /dev/hdd right?)

Locura 07-03-2003 02:18 PM

Quote:

Originally posted by Anti-Gates
No, it is IDE. It is on the secondary channel, and I believe it is set to slave. (making it /dev/hdd right?)
Yes. Make sure that the append line refers to /dev/hdd. Also, your CD-RW drive should be /dev/scd0. do an ls -l /dev/scd0 and see what device it points to (since it should be a symbolic link) It should be pointing to /dev/hdd since your burner is secondary slave. if not, delete the symbolic link and enter ln -s /dev/hdd /dev/scd0. you'll also want to make sure that /dev/cdrom points to /dev/hdc, and make the necessary changes in your fstab so /dev/cdrom is mounting as /mnt/cdrom or /mnt/dvd or whatever you want, and /dev/scd0 is mounting as /mnt/cdrw or whatever you want as the CD-RW drive.

Anti-Gates 07-03-2003 02:50 PM

root@Basement:/home/Rob# ls -l /dev/scd0
brw-rwxrwx 1 root disk 11, 0 Jul 18 1994 /dev/scd0


Does this mean that /dev/scd0 is actually pointing to /dev/scd0?

<<<Confused

Why should my cdrw be scd0? My DVD drive works as scd0.

I really dont want to touch anything in my DVD drive, cause I dont want it to stop working again.

Locura 07-03-2003 02:58 PM

My bad, I said it was a symbolic link and I was mistaken (It's not that way on my own system, I don't know why I thought this). Sorry for the confusion. In that case you would want /dev/cdrw to be a symbolic link to /dev/scd0, not to /dev/hdd. Make sure that the append statement in your lilo.conf is referring to /dev/hdd. And if you make any changes to lilo.conf, remember that they won't take place until you run lilo -v (you'll want the "-v" in case there is a problem, like a syntax error in the lilo.conf).

Locura 07-03-2003 02:59 PM

/dev/scd0 refers to a SCSI device. You have to force SCSI emulation (hence that append statement in the lilo.conf) to get the burner to work, that is why you need the CR-RW drive pointing to scd0.

Anti-Gates 07-03-2003 03:00 PM

Forget it. I just fixed it. I changed the location of my cdrw from /dev/cdrom to /dev/hdd, and I can mount it. Now to test writing capabilities.

Anti-Gates 07-03-2003 03:03 PM

OK, cdrecorder (in dropline gnome) doesnt see my cdrw as being a cdrw drive. My only choices when burning is to burn to a .iso.

Locura 07-03-2003 03:05 PM

See my post at the top of this page.

Anti-Gates 07-03-2003 03:07 PM

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhh

Anti-Gates 07-03-2003 03:11 PM

But what do I change my DVD drive to? I changed to hdc but I get an error.

Locura 07-03-2003 03:12 PM

Are you sure that the DVD drive is your secondary master? And you did use /dev/hdc, not just hdc, right? (just wanted to clarify)

Anti-Gates 07-03-2003 03:13 PM

woops never mind didnt see that? Sorry.

Locura 07-03-2003 03:15 PM

So you did use just hdc then? That would most definitely be an error :D

Anti-Gates 07-03-2003 03:16 PM

Now I get the followin error when trying to mount my cdrom:

mount: wrong fs type, bad option, bad superblock on /dev/hdc,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

And I get this error when I am trying to mount my cdrw:

mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems

Anti-Gates 07-03-2003 03:16 PM

no, I used /dev/hdc. I forgot to link it to /dev/cdrom

Locura 07-03-2003 03:53 PM

link it to /dev/cdrom and reference THAT in the fstab. Make sure it is a SYMBOLIC link (ln -s, the -s is important) And check again to make sure that in your lilo.conf you have an entry similar to this:

image = /boot/vmlinuz
root = /dev/hda5 <---- whatever partition is mounted at "/"
label = Linux
append = "hdd=ide-scsi" <---- must be your cdrw drive, if secondary slave then hdd, if master hdc
read-only

Run lilo -v as root and reboot. It looks like you still have SCSI emulation set up for the wrong device. Either that or you have the master and slave mixed up. When the computer first boots up, you should see it checking for IDE drives, look closely to make sure that the CDRW is listed as secondary slave and not master.

Anti-Gates 07-03-2003 03:54 PM

When linux boots up? Or do I have to go into my bios config?

Anti-Gates 07-03-2003 03:55 PM

Also, in my lilo file this is what I have:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdd=ide-scsi"
boot = /dev/hda
#compact # faster, but won't work on all systems.
prompt

Anti-Gates 07-03-2003 04:00 PM

OK, DVD works but not CDRW.

Also, the stuff in the linux boot up was too fast to read. It was only on screen for about .75 seconds.

Tinkster 07-03-2003 04:28 PM

Try
Code:

dmesg | less
You also may want to look
at
/proc/scsi/scsi
to see what has actually been
picked up by the driver,
and the entries in
/proc/ide
to see what is what...

Cheers,
Tink

Anti-Gates 07-03-2003 04:36 PM

for the first part, I get command not found.

for /proc/scsi/scsi I get:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: PHILIPS Model: CDD4851 CD-R/RW Rev: C2.8
Type: CD-ROM ANSI SCSI revision: 02

for /proc/ide I have:

hda, hdc, hdd
, ide0, ide1, drivers, piix


Fromt his I figure that the computer sees my CDRW, it just wont mount it.

Tinkster 07-03-2003 04:42 PM

Try the dmesg as root (it should work
for normal users, too, though)?

Also an lsmod would be interesting.

Cheers,
Tink

Locura 07-03-2003 04:45 PM

Post your fstab again, since you have changed it.

Anti-Gates 07-03-2003 04:46 PM

still command not found.

lsmod:

Module Size Used by Tainted: P
agpgart 35776 3 (autoclean)
nvidia 1539840 10 (autoclean)
parport_pc 14724 1 (autoclean)
lp 6752 1 (autoclean)
parport 23264 1 (autoclean) [parport_pc lp]
usbmouse 2008 0 (unused)
keybdev 1952 0 (unused)
mousedev 4212 0 (unused)
hid 18596 0 (unused)
usbkbd 3416 0 (unused)
input 3200 0 [usbmouse keybdev mousedev hid usbkbd]
printer 7040 0 (unused)
i810-tco 3088 0 (unused)
uhci 24560 0 (unused)
usbcore 58144 1 [usbmouse hid usbkbd printer uhci]
i810_audio 21160 1
ac97_codec 9512 0 [i810_audio]
soundcore 3332 2 [i810_audio]
pcmcia_core 38112 0
ide-scsi 8048 0
eepro100 19316 1
mii 2240 0 [eepro100]
ntfs 51040 1 (autoclean)

Anti-Gates 07-03-2003 06:17 PM

/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /mnt/win ntfs ro,umask=0222 0 0
/dev/scd0 /mnt/cdrw iso9660 noauto,owner,ro,user 0 0
/dev/hdc /mnt/cdrom iso9660 noauto,owner,ro,user 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


Sorry, didnt see your post.

Tinkster 07-03-2003 06:44 PM

Weird ... looks all good to me,
and makes sense in respect to the
output of lsmod and your fstab...

Sometimes writers are picked up as
/dev/sr0, though, maybe you want to
try a
mount -t iso9660 /dev/sr0 /mnt/cdrw
and see whether it mounts a cd, and
if so, modify your fstab accordingly.

You should install util-linux, dmesg is
quite a good tool for diagnosing your
box if something fails .... :}

Cheers,
Tink

Anti-Gates 07-03-2003 07:01 PM

Where would I get that?

Tinkster 07-03-2003 07:29 PM

Of your Slackware-CD....

Cheers,
Tink

Anti-Gates 07-03-2003 07:47 PM

sr0 worked.

Anti-Gates 07-03-2003 07:49 PM

Hmmm no it didnt

Anti-Gates 07-03-2003 07:50 PM

It started to mount, I didnt get an error. When I tried to umount it said that the drive was not mounted. I even changed fstab, and it doesnt work.

Tinkster 07-03-2003 08:01 PM

Time to

su -
cd /var/log
ls -ltr

and then look at the two or three bottom entries ;)


Cheers,
Tink

Anti-Gates 07-03-2003 08:09 PM

What is that supposed to tell me?

drwxr-xr-x 2 root root 16384 Jul 3 17:25 scripts
-rw-r--r-- 1 root root 29304 Jul 3 20:36 XFree86.0.log
-rw-r----- 1 root root 13510 Jul 3 20:46 debug
-rw-r----- 1 root root 255501 Jul 3 20:55 syslog
-rw-r----- 1 root root 294482 Jul 3 21:04 messages
-rw-r----- 1 root root 5677 Jul 3 21:08 secure

Tinkster 07-03-2003 08:21 PM

consider a less of
syslog, messages and debug :}
for more information on what's wrong....

Cheers,
Tink

Anti-Gates 07-03-2003 08:26 PM

huh?

Locura 07-03-2003 08:27 PM

he means running less syslog, etc etc etc.

less will allow you to browse a text file, just like you would browse a man page.

Anti-Gates 07-03-2003 08:32 PM

These lines drew my attention, what do they mean?

Jun 29 11:57:58 Basement kernel: Kernel command line: BOOT_IMAGE=Slackware ro root=302 ide-scsi
Jun 29 11:57:58 Basement kernel: ide_setup: ide-scsi -- BAD OPTION
Jun 29 11:57:58 Basement kernel: Detected 1695.034 MHz processor.

Locura 07-03-2003 08:34 PM

Those lines are immaterial to what we are doing right now. Look at the date on them. Find some entries from July 3.

Anti-Gates 07-03-2003 08:37 PM

and of course my CDrom just stopped working... (DVD) Great....


All times are GMT -5. The time now is 04:37 AM.