LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-28-2006, 02:56 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
how do i mount a usb cdrom?


i have a usb cdrom drive that i've been using with windows, but i want to use it to read a cd on my linux computer. i expected it to show up as scsi device sda because my flash drive and usb hard drive show up as sda1. when i plug it in, i see some entries in dmesg that looks like it has been recognized, but i dont know what device its assigned to, dmesg mentions sr0 and sg0, but i cant mount either of those. i have scsi cdrom support compiled into my kernel so i should be able to do this. can anybody tell me how to mount this thing?
 
Old 01-28-2006, 03:03 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Post the exact output of dmesg please and also, what happens when you do try to mount /dev/sr0 for example?

Edit: Just to say, my USB CD-RW drive gets attached to /dev/sr0.

Last edited by Nylex; 01-28-2006 at 03:22 PM.
 
Old 01-28-2006, 03:16 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Normally it would be /dev/scd0 for a cdrom.

A line in /etc/fstab like this.
Code:
/dev/scd0		/mnt/cdrom2             auto    noauto,owner,rw 0 0
Which of course mounts to the directroy /mnt/cdrom2.
Brian1

Last edited by Brian1; 01-28-2006 at 03:27 PM.
 
Old 01-28-2006, 09:34 PM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
/dev/scd0 works, but i dont understand how i could have found that out. in the past, when i plug in a usb device such as a jump drive or hard drive, dmesg or /var/log/messages will say it's mounted as sda1, etc. and i'll access it that way. nothing ever told me this drive was at /dev/scd0. as i said, dmesg said that it was at either sr0 or sg0. sr0 apparently didn't exist and sg0 wasn't a block device.
here is the output of dmesg after i plug it in:
Quote:
usb 1-3: new high speed USB device using ehci_hcd and address 3
scsi0 : SCSI emulation for USB Mass Storage devices
HID device not claimed by input or hiddev
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: Model: RW-241040 Rev: 1.02
Type: CD-ROM ANSI SCSI revision: 00
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
usb-storage: device scan complete
bump

Last edited by slinky2004; 01-28-2006 at 09:44 PM.
 
Old 01-29-2006, 10:02 AM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I don't know exactly what is going on, but USB uses the kernel scsi interface to save on a lot of new code to write for USB to be used in the kernel. All scsi cd-dvd-optical drives use the /dev/scd* naming. sr0 and sg0 are low level scsi block devices. Once the kernel understands the device it then remaps it to /dev/sd* or /dev/scd* depending on the interface code. These is a very crud info. I am sure there are others know the details of it. If you install the sg-utils and run some of the commands then some of it will make sense.

Brian1
 
  


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 refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
Mount external USB cdrom drive rickenbacherus Linux - Hardware 3 05-29-2006 07:12 PM
mount USB CDROM - minimal install ColKurtz Linux - General 3 07-08-2005 06:59 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
how to mount the usb CDROM? blue_penguin Linux - Hardware 1 11-27-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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