LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-20-2005, 02:57 AM   #1
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Rep: Reputation: 15
How to Mount External USB CD Drive?


Recently installed Debian, using boot floppies and net install on
my little Fujitsu P1120 subnotebook.

Now, I want to get my external CD-R/DVD drive working.

How should I mount it since it's an external USB type drive??

Tried typical thing in /etc/fstab of:

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

after saving file, rebooted...

and then in Terminal did

mount -t /dev/cdrom /mnt/cdrom

but doesn't work....says that 'can't find /mnt/cdrom in /etc/fstab or /etc/mtab'

Any suggestions???

Thanks,

Mark
 
Old 05-20-2005, 09:45 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Usually /dev/cdrom is a link that points to the actual CDROM device i.e /dev/hdc, /dev/scd0 etc. In the case of a USB drive the device ID will be /dev/scd0.

The output of the command will display if it is a link and what it is linked to.
ls -l /dev/cdrom

Look at the output of the command dmesg and look for any CDROM messages to verify the drive is being recognized and its device ID.

Make sure the /mnt/cdrom directory exist and try to mount the drive (as root).
mount -t iso9660 /dev/scd0 /mnt/cdrom

There might be some USB or SCSI modules not loading but lets see what happens.
 
Old 05-20-2005, 12:21 PM   #3
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks for your helpful and informative reply, michaelk!

OK, here's what I got.....hope to get more input... ;-)

Code:
#ls -l /dev/cdrom
ls: /dev/cdrom: No such file or directory

#mount -t iso9660 /dev/scd0 /mnt/cdrom
cdrom: sr0: mrw address space DMA selected
mount: block device /dev/scd0 is write-protected, mounting read-only
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
             missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So did dmesg and most of what it shows is what I wrote down as laptop was finishing boot....but here's what dmesg shows:

Code:
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sr0: scsi3-mmc drive: 2x24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
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
eth0: no IPv6 routers present
cdrom: sr0: new address space DMA selected
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
Meanwhile, here's what I got just before bootup finished:

Code:
login: usb 1-1 new full speed USB device using address 4
Initializing USB Mass Storage driver....
scsi0: SCSI emulation for USB Mass Storage Devices
vendor: SAMSUNG  model: CDRW/DVD SN-324F Rev: U201
type: CD-ROM  ANSI SCSI revision 02
usbcore: registered new driver usb-storage
USB Mass Storage Support registered
sr0: scsi3-mmc drive: 2x24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver
Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
HTH,

Mark
 
Old 05-20-2005, 04:46 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Just out of curiousity what type of disk were you trying to mount?
 
Old 05-20-2005, 05:13 PM   #5
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
Not sure what you mean by "what type of disk were you trying to mount?"

Thought that the info I posted above described all the info on the CDRW/DVD drive I'm trying to use.....or are you referring to the Mass Storage stuff?? If so, I assume that it is referring to the little USB flash drive I tried to get working the other day....

Let me know if this answers your question or you need other info....

Thanks!

Mark

Quote:
Originally posted by michaelk
Just out of curiousity what type of disk were you trying to mount?
 
Old 05-20-2005, 05:55 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I was refering to was CD i.e. data CD, DVD movie, music CD etc.
You can not mount music or movie DVDS.
 
Old 05-20-2005, 06:35 PM   #7
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
Red face

Quote:
Originally posted by michaelk
I was refering to was CD i.e. data CD, DVD movie, music CD etc.
Oh, THAT kind of disk....Now I get it!..

I was trying to get music CD to play....trying out xmms....

Also, want to be able to use data CD's too....

Quote:
Originally posted by michaelk
You can not mount music or movie DVDS.
So, I assume you're saying that either I need to

1) take out music CD from drive and put in data CD and try again or

2) do something else to get music CD to play in drive or

3) none of the above and do something else....

Thanks!

Mark
 
Old 05-20-2005, 09:03 PM   #8
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
Talking GOT DATA CD!!!

OK, finally made some progress....

Managed to get data CD working in drive....

Redid what you suggested in your first post...but with
data CD in it...heard CD drive spin up and can cd to it and
see CD contents!

However, just tried clicking on CD drive eject button and nothing
happens, no eject of CD....

How do I fix that??

Also, still need to get music CD's working....



Mark
 
Old 05-20-2005, 10:41 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Music CDs do not get mounted because they do not contain a valid filesystem. You need to configure the application to use the CDROM device i.e. /dev/scd0. I believe the same is true for the eject utility.
 
Old 05-20-2005, 11:33 PM   #10
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
Now I get it, Michael....

Thanks for all your help. Really appreciate it!

Will keep plugging away at it....

Mark
 
Old 05-21-2005, 12:12 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
However, just tried clicking on CD drive eject button and nothing
happens, no eject of CD....
BTW Were you refering to the CDROM physical eject button or the eject command?

The CDROM drive is locked until you unmount the drive.
umount /mnt/scd0
 
Old 05-21-2005, 12:29 PM   #12
ArchiMark
Member
 
Registered: Sep 2004
Location: Silicon Valley
Distribution: Debian/Linux Mint/Archbang/Angstrom
Posts: 81

Original Poster
Rep: Reputation: 15
I was referring to physically ejecting CD from the drive with the eject button...

I did try and see if there was an eject command, but got response that eject command
not found or something like that....

Thanks,

Mark

Quote:
Originally posted by michaelk
BTW Were you refering to the CDROM physical eject button or the eject command?

The CDROM drive is locked until you unmount the drive.
umount /mnt/scd0
 
Old 05-29-2006, 07:10 PM   #13
fulanolinux
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 0
Hello all,

In my case I had to recompile the kernel in order to add scsi device support (scsi cdrom support), which adds module sr_mod (check with modprobe -l or lsmod if you already have it), since usb devices are accessed via scsi devices.
After that (make xconfig, make modeles_install) , reboot and mounted /dev/scd0 on /mdeia/dvdrecorder (or any other mount point).
mount -t iso9660 /dev/scd0 <mountpoint>
In some cases, depending on the number of usb devices attached, the device id may differ from scd0, being another number. In such case, use lsusb (figure out bus and device ids), /proc/scsi files, /var/log/messages.
regards,
F.
 
  


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
Mount points on usb devices (dig. camera, zip drive, external hard disk) Impaler Linux - Hardware 3 05-29-2006 11:08 PM
How to mount an external NTFS USB drive on Mandrake 10.0?? mannyjazz Linux - Hardware 6 05-29-2006 07:13 PM
Mount external USB cdrom drive rickenbacherus Linux - Hardware 3 05-29-2006 07:12 PM
New to RH9 please help me to mount? a external usb hard drive ginda Linux - Newbie 7 05-29-2006 07:11 PM
How to mount external USB hard drive? zyzyis Linux - Newbie 6 02-01-2006 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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