LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why does linux hang when i try to mount cd-rewriter ??? (https://www.linuxquestions.org/questions/linux-newbie-8/why-does-linux-hang-when-i-try-to-mount-cd-rewriter-62447/)

qwijibow 05-29-2003 04:51 AM

why does linux hang when i try to mount cd-rewriter ???
 
Hello.

why is it, that everytime i try to mount my second cd-drive (a cd re-writer (samsung RW 8.8.32)

the thing is, the cd drive works perfectly when im playing audio cd'svia xmms or grip or mplayer.

but the second i type

mount /dev/cdrom1

everything goes bad, first the disk activity light comes on like it should while it reads the disk, then a few seconds later, still mounting the thing everything halts, mouse dead, and all keyboard shortcuts dead Ctrl + alt + backspace does nothing.

is this some huge bug in linux of what ???

incase its important

/dev/cdrom is a link to
/dev/hdd

and my pc spec is

1.3 gigHz AMD Athlon
ATI Rage128 graphics (running "r128" driver)
first cd drive /dev/cdrom is a DVD player hitachi
256 meg dram 266mhz

ohh, and im running a fresh non upgraded redhat 9 distrobution

fancypiper 05-29-2003 09:22 AM

What is the actual device is /dev/cdrom1 pointing to?

Also, what is your /etc/fstab entry for it?

Was hd<X>=ide-scsi passed to the kernel for it?

If you use grub, post /boot/grub/grub.conf as well.

qwijibow 05-30-2003 01:00 PM

like i said..
/dev/cdrom1 is a link to
/dev/hdd/

and my fstab entry for it is
/dev/cdrom1 /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


and as for the rest of what you said....
could you explain it in ummmm DUMBER words.

lol, im still very much new to this, the last operating system i used was windows, so to me the kernel is a weired mysteriouse thing which is onlt updated once every millenium, the concept of passing it strings scares me !

but since i can play audio cd's with it, i assume the kernel is happy with the device.

fancypiper 05-30-2003 01:21 PM

Are you using the grub bootloader? (Redhat 7.3 up defaults to grub) If so, examine /boot/grub/grub.conf (or menu.lst, depending on distro). Here is mine:
Code:

default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Windows 98SE
        rootnoverify (hd0,0)
        chainloader +1
title Red Hat Linux (2.4.18-3)
        root (hd0,1)
        kernel /vmlinuz-2.4.18-3 ro root=/dev/hda6 hdd=ide-scsi mem=nopentium
        initrd /initrd-2.4.18-3.img
title Mandrake Linux
        kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount hdd=ide-scsi quiet vga=788 mem=nopentium
        initrd (hd0,6)/boot/initrd.img
title Gentoo Linux
        root (hd0,1)
        kernel (hd0,1)/boot/bzImage root=/dev/hda3 hdd=ide-scsi mem=nopentium

Make sure that hdd=ide-scsi is added so that it is passed to the kernel

My /etc/fstab entry:
Code:

/dev/cdrom1            /mnt/cdrom1            iso9660 noauto,owner,ro 0 0
/dev/cdrom1 is a symbolic link pointing to /dev/scd0.

# CD burning info
Is it configured and what is the device? Command this to find out:
cdrecord -scanbus
Adding an IDE CD-Writer to Linux
CD Writing HOWTO

qwijibow 05-30-2003 01:41 PM

im using redhat 9 and booting through grub yes.

looks like the scanbus didnt detect my cd-rewiter !

[root@localhost root]# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jrg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'HITACHI ' 'DVD-ROM GD-2500 ' '0101' 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) *

also, where do i add the hdd=ide-scsi line, does it matter.

and yes, i found it unusual that my .dev.cdrom1 was a symbolic link to /dev/hdd/ shouldnt it be sumthing like /dev/scd1 since my sirst cd drive is /dev/scd0

ThanX for the help.

qwijibow 05-30-2003 02:00 PM

Here's my grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi mem=nopentium
initrd /initrd-2.4.20-8.img


ive just added the hdd=ide-scsi mem=nopentium
part, not rebooted yet so.... dont know if it will help.
(downloadeing a new kernel)

fancypiper 05-30-2003 02:01 PM

Edit /boot/grub/grub.conf

Look for your Redhat stanza and put it in the kernel line. Just a space between each thing you want to pass. Something like this
Code:

title Red Hat Linux (your value)
        root (<your value>)
        kernel /vmlinuz-<your kernel> ro root=<your value> hdc=ide-scsi hdd=ide-scsi

Remove the old symbolic link and make the new one by

ln -sf /dev/cdrom1 /dev/scd1

Reboot and try.

fancypiper 05-30-2003 02:04 PM

You only need mem=nopentium if you are using an AMD processor. If you have an intel, leave that out. That's for a memory bug between the AMD processor instruction set and AGP.

qwijibow 05-30-2003 02:08 PM

Yeah, i have a AMD Athlon Processor.

Sorry for this, buti dont understand this command ?
ln -sf /dev/cdrom1 /dev/scd1

what is it please ??

sorry if im being annoying, im just trying to learn, so i understand exactly what im doing.

ThanX

qwijibow 05-30-2003 02:13 PM

ahh, read the man page.. LEARNING :D

thanX for all the help, this forum is KEWL,

im off to reboot now,, byby, and here comes the moment of truth

qwijibow 05-30-2003 02:19 PM

AGH !!!!!!!!!!!!!!!!!!!!!!!!!!!

the command line

ln -sf /dev/cdrom1 /dev/scd1

changes the /dev/scd1 file into a symbolic link to /dev/cdrom1
i needed the /dev/cdrom sybbolic link to be changed to /scd1

now that file is GONE !!!!
DMANIT !!!!

where can i ger a replacement scd1 file ?????

:'(

damnit, i was so close, now im further away than when i started GRRR

fancypiper 05-30-2003 02:34 PM

Ran it up the flagpole and nobody saluted? :D

:eek: I am built backwards, my nose runs and my feet smell. Sorry!!

ln -sf /dev/scd1 /dev/cdrom1 was the command, I got it backwards.

Try this as root

/dev/MAKEDEV scd1

Then

ln -sf /dev/scd1 /dev/cdrom1

fancypiper 05-30-2003 02:45 PM

Quote:

Originally posted by qwijibow
Sorry for this, buti dont understand this command ?
ln -sf /dev/cdrom1 /dev/scd1

ln (make a link) -sf (symbolic, force, ie make it a symbolic link and don't ask me any questions about it, just do it) /dev/<first> (device to point to) /dev/<second> (name of the symbolic link).

Apparently, neither do I. :D

qwijibow 05-30-2003 02:47 PM

ThanX. thats got my sorted out properly.

suppose the man page isnt too helpful.

when reading it, you could take it to mean eaither, depening.. anyway, thanX

qwijibow 05-30-2003 04:38 PM

Sooo.

after i updated the grub.config a littte, change the symbolic link of cdrom1 from /dev/hdd to /dev/scd1

the command # cdrecord -scanbus

detects my cd-re writer....

however.

mount /dev/cdrom1

STILL hangs my system

i run it, the cd drive activity light blinks a bit, like it should, but the drive does not mount, no error messages or anything, he command just doesnt finish executing, then 10 seconds later, i have a TOTAL system freeze up, whats wrong ???

is this sum kind of bug in linux and my cd drive ..

can i fix it by updating the kernel of sumthing..

any1 else have this trouble ?


All times are GMT -5. The time now is 07:34 PM.