LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-05-2004, 12:46 PM   #1
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Rep: Reputation: 15
Help With SCSI Emulation with RW/DVD Drive


I have a CD writer/DVD player combo drive in my laptop. I have all the options configured into my kernel correctly to allow SCSI emulation. When I add 'hda=ide-scsi" to my Grub config, I am able to boot into Linux fine and I can see my drive with cdrecord --scanbus. This is great, but I'm not sure what to do next. I am not able to mount any CDs though--and I'm guessing this has something to do with my fstab not accommodating to the newly emulated CD drive. Furthermore, I am not able to get Grip to find my CD-ROM.

Here is a snippet of /etc/fstab:

/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
 
Old 03-05-2004, 12:58 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Is your CD/DVD drive really hda?
hda - 1st controller master
hdb - 1st controller slave
hdc - 2nd controller master
hdd - 2nd controller slave
etc....

The CD/DVD drive should be /dev/scd0. Is /dev/cdrom a link to /dev/scd0?
What is the output of:
ls -l /dev/cdrom

Try mounting manually, login a root:
mount -t iso9660 /dev/scd0 /mnt/cdrom
 
Old 03-05-2004, 01:19 PM   #3
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
I am quite positive that my CD-ROM is located at /dev/hda. In every distribution I've installed, my CD-ROM has been detected as /dev/hda.

Here is the output of ls -l /dev/cdrom:
lr-xr-xr-x 1 root root 13 Mar 5 13:03 /dev/cdrom -> cdroms/cdrom0

And here is the output of mount -t iso9660 /dev/scd0 /mnt/cdrom:
mount: special device /dev/scd0 does not exist
 
Old 03-05-2004, 01:28 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
You use SATA hd's or something? Post the output of the 'mount' command (all by itself).
 
Old 03-05-2004, 01:29 PM   #5
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
mount:
/dev/hdc3 on / type reiserfs (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
 
Old 03-05-2004, 01:34 PM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
What's the output of 'cdrecord -scanbus'?
Try mounting this like it's a cdrom: /dev/scsi/host0/bus0/target0/lun0/cd
 
Old 03-05-2004, 01:39 PM   #7
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
During boot, the module ide-cd is loaded, but not scsi-cd. After running modprobe scsi-cd, I am able to run cdrecord -scanbus. Here are the results:

Cdrecord-Clone 2.01a25 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HL-DT-ST' 'RW/DVD GCC-4240N' 'D110' 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) *

And then this:

mount /dev/scsi/host0/bus0/target0/lun0/cd -t iso9660 /mnt/cdrom
mount: block device /dev/scsi/host0/bus0/target0/lun0/cd is write-protected, mounting read-only
mount: No medium found

Last edited by deadjoebob; 03-05-2004 at 01:41 PM.
 
Old 03-05-2004, 01:42 PM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
What distro is this?
 
Old 03-05-2004, 01:45 PM   #9
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Oddly enough, I am able to mount the CD by running

mount /mnt/cdrom

Strange. Any ideas about this or getting Grip to see audio CDs?
 
Old 03-05-2004, 01:47 PM   #10
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
And now Grip can see the CD, but upon trying to rip, I get the error:

Unable to open cdrom drive.
 
Old 03-05-2004, 01:47 PM   #11
deadjoebob
LQ Newbie
 
Registered: Feb 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Gentoo

Update:

I can rip CDs using Grip, but only as root. This bothers me. I will continue too look for a solution, but if anyone knows how to fix this problem, let me know.

Last edited by deadjoebob; 03-05-2004 at 02:13 PM.
 
Old 03-06-2004, 02:48 PM   #12
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
You need to give users read and write access to the cdrom device so that they can send the appropriate ripping commands to the cd and read the data back. It looks like you're using devfs, so you can just set the appropriate permissions in devfsd's configuration to make it save permissions over reboots.

Gentoo probably also has a cdrom group for users who have access to the cdrom. If they do, you can try adding the user to that group in /etc/group The user will have to logoff and log back in to get the new groups.
 
  


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
DVD Decrypter (without SCSI emulation) + DVD Shrink mrbass Linux - Software 5 10-25-2005 01:20 PM
scsi emulation for dvd burner fails Recon68 Linux - Newbie 2 05-10-2005 08:40 AM
how can I mount my dvd burner using SCSI emulation? Xavius Linux - Hardware 14 04-17-2005 11:38 PM
Trouble with SCSI emulation for DVD/CDRW drive ohleary Linux - Hardware 5 11-18-2003 04:50 PM
have combo CD-RW/DVD, problem with SCSI emulation, can not play DVD stunix Linux - Hardware 3 10-12-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 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