LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-27-2005, 06:39 PM   #1
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Rep: Reputation: 15
cdrom not seen Part2


OK...
Slackware 10.1
I did a clean install, formatting the harddrive, checking for bad blocks and all. Everything went fast and smooth.

However, just as before (in the previous thread) one cdrom is listed and noticed, the other is not even seen (btw, its the one that isn't seen that is the one I didi the install with)

/etc/fstab:
Code:
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                ext2        defaults         1   1
/dev/cdrom       /mnt/cdrom       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
dmesg | grep "hd"
Code:
ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda: DMA, hdb: pio
    ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc: DMA, hdd: DMA
hda: QUANTUM FIREBALLlct20 20, ATA DISK drive
hdc: Hewlett-Packard CD-Writer Plus 9100, ATAPI CD/DVD-ROM drive
hdd: Compaq CRD-8322B, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 39876480 sectors (20417 MB) w/418KiB Cache, CHS=39560/16/63, UDMA(33)
hdc: attached ide-cdrom driver.
hdc: ATAPI 32X CD-ROM CD-R/RW drive, 4096kB Cache, UDMA(33)
hdd: attached ide-cdrom driver.
hdd: ATAPI 32X CD-ROM drive, 128kB Cache, DMA
 hda: hda1 hda2
A data disc can be read in cdrom, but will not eject.
and audio cd won't do anything and tells me:
**********
mount: wrong fs type, bad option, bad superblock on /dev/cdrom
missing codepage or other error
...in some cases...
...try dmesg...
please check the disk is entered correctly
**********

Thanks for taking a look

-Michael
 
Old 02-27-2005, 07:09 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Quote:
hdc: attached ide-cdrom driver.
hdc: ATAPI 32X CD-ROM CD-R/RW drive, 4096kB Cache, UDMA(33)
hdd: attached ide-cdrom driver.
hdd: ATAPI 32X CD-ROM drive, 128kB Cache, DMA
This tells me that both CD drives are detected. I do not know why only one was configured. I also can not tell which one is being seen.

You need to unmount the data CD before it will eject. Audio CDs can not be mounted because they do not contain a valid filesystem.

You do not mention which drive i.e. the writer or the ROM drive is working. To see the what /dev/cdrom is actually linked to look at the output of the command:
ls -l /dev/cdrom

You can always add an fstab entry for the other device like
/dev/hdd /mnt/cdrom2 iso9660 noauto,owner,ro 0 0

You will need to create the mount point. Change hdd to hdc if the writer is the device not configured.

Last edited by michaelk; 02-27-2005 at 07:10 PM.
 
Old 02-27-2005, 08:30 PM   #3
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
You need to unmount the data CD before it will eject.
The data cd will not unmount. I get an error stating that "unmount /dev/cdrom Failed!"

Quote:
You do not mention which drive i.e. the writer or the ROM drive is working. To see the what /dev/cdrom is actually linked to look at the output of the command:
ls -l /dev/cdrom
/dev/cdrom -> /dev/hdc

ok, so the other cdrom is being seen as hdd (through dmesg), but is not configured.

Quote:
You can always add an fstab entry for the other device like
/dev/hdd /mnt/cdrom2 iso9660 noauto,owner,ro 0 0
the fstab entry is confounding me. for the cdrom that is currently working (except for the unmounting part) the fstab line is:

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

instead of /dev/hdc /mnt/cdrom

as described in the other thread, I tried " #mkdir /dev/cdrom1 " then added a line for it in fstab, but that didn't work. I feel like I'm missing a step.

So what do you think about that first part of the fstab line? Everything I've been reading has described it as needing to be " /dev/hd* "
 
Old 02-27-2005, 09:06 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
To create a mount point.
mkdir /mnt/cdrom2

add this line to the fstab file
/dev/hdd /mnt/cdrom2 iso9660 noauto,owner,ro 0 0

The /dev/cdrom is a link that points to the actual device /dev/hdc. In this case it is just creating a device name that has more meaning then /dev/hdc. The devices (/dev/hdc /dev/cdrom) are interchangable.
 
Old 02-27-2005, 09:27 PM   #5
AnderWinkler
LQ Newbie
 
Registered: Feb 2005
Location: Curitiba (Brazil)
Distribution: Slackware 10.1
Posts: 8

Rep: Reputation: 0
Try the following (logged as root):

1 - Be sure that there are two different directories inside /mnt where you'll mount your devices. For example /mnt/cdrom and /mnt/cdrom1. If these directories doesn't exist, create them;

2 - Remove any symbolic link to cdrom drives thay may exist in your /dev directory. You'll create them again in step 3;

3 - Create new (and correct) symbolic links to your devices, using the ln command. Type the following at the prompt:
Code:
# ln -s /dev/hdc /dev/cdrom
# ln -s /dev/hdd /dev/cdrom1
4 - Open the fstab. The lines that configure your drives should be like this:

Code:
/dev/cdrom        /mnt/cdrom        iso9660     noauto,owner,ro  0   0
/dev/cdrom1       /mnt/cdrom1       iso9660     noauto,owner,ro  0   0
Notice that, since you have 2 devices, you need 2 separate lines in fstab.

5 (optional) - If you want to give permissions for every user (not only root) being able to mount or umount the cdrom, add the users option to the fstab, like this:

Code:
/dev/cdrom        /mnt/cdrom        iso9660     noauto,owner,ro,users  0   0
/dev/cdrom1       /mnt/cdrom1       iso9660     noauto,owner,ro,users  0   0
6 - To test your configuration, put cds in the drives and mount them:

Code:
# mount /dev/cdrom
# mount /dev/cdrom1
It's not necessary to specify details such as file system or where to mount, since these information are already in fstab.

7 - To umount the cds, use:

Code:
# umount /dev/cdrom
# umount /dev/cdrom1
Before umounting, be sure that no user or application is using the device. And if you are at the prompt, you must be out of the directories /mnt/cdrom or /mnt/cdrom1, i.e. none of these dirs can be your current directory when umounting. To be sure you are out, just type cd /.

Good luck!

Ander

P.S.: If you prefer, when creating the dirs and links in steps 1 and 3 you can use the names cdrw and cdrom instead of cdrom and cdrom1 respectively. It sounds more friendly (at least for me!). Obviously you'll have to adapt the lines in fstab.

Last edited by AnderWinkler; 03-01-2005 at 09:19 PM.
 
Old 02-27-2005, 09:37 PM   #6
redbeansnrice
Member
 
Registered: Aug 2004
Location: Eastern Shore
Distribution: Slack 10.1
Posts: 36

Original Poster
Rep: Reputation: 15
OK, its working now.
Thank you for the explain on /dev/cdrom vs /dev/hdd
I like to understand at least somewhat what I'm typing in.

There is still an issue with /mnt/cdrom not wanting to unmount. I tried it out as the first thing after starting x. I put a disc in *************
EDIT
Nevermind. I was just being dumb. I think i was replying while Ander was and...y'know...its getting late and all...
END EDIT

HOWEVER:
my whole system has FROZEN three times since I did this latest install about 4 hours ago.
I'm getting a whole slew of errors from fsck.
Should i start a new thread here, or do you think this would be more for the hardware forums?

Thanks again all.

-Michael

Last edited by redbeansnrice; 02-27-2005 at 09:46 PM.
 
Old 02-28-2005, 06:28 AM   #7
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I'd post a new thread in hardware about the fsck stuff.

The symlinks are a good idea, I set mine up to my preference too:
/dev/burner -> /dev/scd0
/dev/cdrom -> /dev/scd1
/dev/usbstick -> /dev/sdb1

/dev/cdrom /mnt/cdrom iso9660 noauto,users,gid=11,mode=007,ro,unhide 0 0
/dev/burner /mnt/burner iso9660 noauto,users,gid=11,mode=007,ro,unhide 0 0
/dev/usbstick /mnt/usbstick auto noauto,users,gid=11,umask=007 0 0
 
  


Reply



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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
Can't mount CD-ROM - part2 skybell Slackware 28 07-18-2005 02:37 PM
Need some help badly Part2 Rolby Linux - Hardware 2 06-21-2004 03:29 PM
9.1 install, boot from cdrom, select source as cdrom, Can't find disk jake555 Slackware 1 10-30-2003 10:34 AM

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

All times are GMT -5. The time now is 11:39 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
Open Source Consulting | Domain Registration