LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2003, 05:51 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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
 
Old 05-29-2003, 10:22 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-30-2003, 02:00 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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.
 
Old 05-30-2003, 02:21 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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
 
Old 05-30-2003, 02:41 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

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

Last edited by qwijibow; 05-30-2003 at 02:42 PM.
 
Old 05-30-2003, 03:00 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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)
 
Old 05-30-2003, 03:01 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-30-2003, 03:04 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-30-2003, 03:08 PM   #9
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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
 
Old 05-30-2003, 03:13 PM   #10
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ahh, read the man page.. LEARNING

thanX for all the help, this forum is KEWL,

im off to reboot now,, byby, and here comes the moment of truth
 
Old 05-30-2003, 03:19 PM   #11
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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
 
Old 05-30-2003, 03:34 PM   #12
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Ran it up the flagpole and nobody saluted?

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

Last edited by fancypiper; 05-30-2003 at 03:46 PM.
 
Old 05-30-2003, 03:45 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-30-2003, 03:47 PM   #14
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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
 
Old 05-30-2003, 05:38 PM   #15
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

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


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
Why does mount hang Mike Davies Linux - General 6 12-01-2005 02:45 AM
stopping auto mount hang my machine rabins Linux - Networking 0 10-13-2004 02:56 AM
CD-ReWriter not reading flied X4Ivan Linux - Hardware 0 06-23-2004 03:21 AM
Cant access cd-rewriter Flober-a-lob Linux - Hardware 6 12-08-2002 10:59 AM
pcmcia cd-rewriter jsurgeson Linux - Newbie 0 03-27-2002 10:28 AM


All times are GMT -5. The time now is 10:44 AM.

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