LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-02-2011, 10:46 AM   #1
xr4ti
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Rep: Reputation: 0
Can't mount usb cd rom in ubuntu 8.04


My cdrom is not mounting on ubuntu 8.04. I find this message in syslog (below). How can I resolve this?

<code>


Dec 30 16:13:26 ubuntusap kernel: [ 351.765683] usb-storage: device scan complete
Dec 30 16:13:26 ubuntusap kernel: [ 351.766423] scsi 5:0:0:0: CD-ROM Memorex DVD+-RAM 530L v1 5M64 PQ: 0 ANSI: 0
Dec 30 16:13:26 ubuntusap kernel: [ 351.766785] scsi 5:0:0:0: Attached scsi generic sg1 type 5
Dec 30 16:13:26 ubuntusap kernel: [ 351.856208] Driver 'sr' needs updating - please use bus_type methods
Dec 30 16:13:26 ubuntusap kernel: [ 351.861991] sr0: scsi3-mmc drive: 125x/125x writer dvd-ram cd/rw xa/form2 cdda tray
Dec 30 16:13:26 ubuntusap kernel: [ 351.861994] Uniform CD-ROM driver Revision: 3.20
Dec 30 16:13:26 ubuntusap kernel: [ 351.862029] sr 5:0:0:0: Attached scsi CD-ROM sr0

</code>
 
Old 01-02-2011, 04:16 PM   #2
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
From a quick goolge this seems to be a harmless error message from the Intrepid kernel. It's not necessarily the reason your drive is not mounting.
Do you get anything from lsusb related to the drive? What is the last line in dmesg just after you plug it in?
 
Old 01-02-2011, 05:06 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I have an external usb that sometimes when I plug in it doesn't automatically detect, but it is seen by disk utility.
Anyway I can mount using disk utility or just reboot. Obviously I just don't know command , but that's my work around.
Also if there's no media there's nothing to mount.

Last edited by EDDY1; 01-02-2011 at 05:08 PM.
 
Old 01-02-2011, 08:32 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,495
Blog Entries: 16

Rep: Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210
Ubuntu 8.04 is two and a half years old. Depending on your kernel, you may have to modify your /etc/fstab to get the device to mount reliably.

The output of sudo dmesg will tell you whether your computer is seeing the device.

I normally like to add such devices to fstab. It just simplifies matters.
 
Old 01-04-2011, 06:02 AM   #5
xr4ti
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pickarooney View Post
From a quick goolge this seems to be a harmless error message from the Intrepid kernel. It's not necessarily the reason your drive is not mounting.
Do you get anything from lsusb related to the drive? What is the last line in dmesg just after you plug it in?
dmesg output after connecting says:

usb 5-3: configuration #1 chosen from 1 choice
scsi15 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 12
usb-storage: waiting for device to settle before scanning
 
Old 01-04-2011, 06:04 AM   #6
xr4ti
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
Ubuntu 8.04 is two and a half years old. Depending on your kernel, you may have to modify your /etc/fstab to get the device to mount reliably.

The output of sudo dmesg will tell you whether your computer is seeing the device.

I normally like to add such devices to fstab. It just simplifies matters.
Sorry newbie here with just a little unix experience. What must I insert into fstab?
 
Old 01-04-2011, 06:07 AM   #7
ashish_neekhra
Member
 
Registered: Nov 2007
Posts: 67

Rep: Reputation: 4
Hi, Let me know what error you are getting while mounting CD-ROM on a folder or a mount point ? Because Ubuntu detecting your CD-ROM device properly. Please run below command as root or sudo an tell me output,


sudo mount /dev/cdrom /mnt


...
 
Old 01-04-2011, 06:34 AM   #8
xr4ti
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ashish_neekhra View Post
Hi, Let me know what error you are getting while mounting CD-ROM on a folder or a mount point ? Because Ubuntu detecting your CD-ROM device properly. Please run below command as root or sudo an tell me output,


sudo mount /dev/cdrom /mnt


...
mount: special device /dev/cdrom does not exist
 
Old 01-04-2011, 06:49 AM   #9
ashish_neekhra
Member
 
Registered: Nov 2007
Posts: 67

Rep: Reputation: 4
Quote:
Originally Posted by xr4ti View Post
mount: special device /dev/cdrom does not exist
Check this
 
Old 01-04-2011, 07:32 AM   #10
xr4ti
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ashish_neekhra View Post
Check this
Thanks but it was not helpful.
 
Old 01-05-2011, 02:15 AM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,495
Blog Entries: 16

Rep: Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210Reputation: 3210
Quote:
Originally Posted by xr4ti View Post
dmesg output after connecting says:

usb 5-3: configuration #1 chosen from 1 choice
scsi15 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 12
usb-storage: waiting for device to settle before scanning
Somewhere in the dmesg output it should identify the device as a drive, like sd[something], such as sda, sdb, sdc, and so on.

Let's say is shows up as "sdc."

It is being seen as /dev/sdc, since devices are seen to be in /dev.

The next step is to create directory in either /mnt or /media to which to mount the device. You can call it anything you want, for example, "joe." (The traditional way is to use /mnt; the current way is to use /media.)

So we create a directory

Code:
mkdir /mnt/joe
We can test this by entering this command, which links the device in /dev to the mountpoint in /mnt:

Code:
mount /dev/sdc /mnt/joe
cd /mnt/joe
dir joe
If we got it right, the file list shown by dir should reflect the contents of the media in the drive (there must be valid media in the drive for this test to work; a commercial audio CD is not valid media for this purpose).

We unmount the device with

Code:
umount /mnt/joe
If the test worked, we enter a line in fstab like this:

Code:
/dev/sdc    /mnt/joe    auto   rw,user,noauto    0   0
This translates to

"Mount the device seen as /dev/sdc to /mnt/joe, auto detect the file type, make it read/write, allow any user to mount the drive, do not mount it automatically."

See the link I provided earlier for the meaning of "0 0."

We should then be able to mount device with

Code:
mount /mnt/joe
and see its contents with a dir or ls command.

For comparison, here is the dmesg output for my external USB HDD. Since it is already mounted and partitioned, the partitions also show. Note that it is seen as sdb; the remainder of that line refers to how the partitions are seen:

Code:
[    8.340046] scsi 2:0:0:0: Direct-Access     MICRONET FANTOM DRIVE     2.10 PQ: 0 ANSI: 4
[    8.341262] sd 2:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
[    8.342139] sd 2:0:0:0: [sdb] Write Protect is off
[    8.342143] sd 2:0:0:0: [sdb] Mode Sense: 21 00 00 00
[    8.342146] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.343261] sd 2:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
[    8.344528] sd 2:0:0:0: [sdb] Write Protect is off
[    8.344532] sd 2:0:0:0: [sdb] Mode Sense: 21 00 00 00
[    8.344535] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.344579]  sdb: sdb1 sdb2 < sdb5 >
Here are the relevant lines from /etc/fstab (since this is a hard drive, and not a CD/DVD drive, I am mounting the individual partitions and I want them to mount automatically on reboot, hence the numbers after sdb and the "auto"):

Code:
/dev/sdb1       /media/sdb1     ext3    rw,user,auto    0      1
/dev/sdb5       /media/sdb5     ext3    rw,user,auto    0      1
Afterthought:

I would not have understood a word of this five years ago.

Last edited by frankbell; 01-05-2011 at 02:19 AM.
 
  


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
[SOLVED] can not detect or mount cd-rom on ubuntu (server) 6.06.1 i386 addic Linux - Newbie 5 11-22-2010 10:18 PM
Installing Debian from USB flash drive - Cannot mount "CD-ROM" Jinouchi Linux - Software 1 07-29-2010 10:52 AM
USB CD-ROM and IDE-CD-ROM device name conflicts in Lenny kushalkoolwal Debian 4 01-16-2009 12:47 PM
cd-rom and dvd-rom drives won't mount... :-( Ausar Linux - Newbie 12 09-01-2004 02:51 PM
Multiple cd-rom icons from one cd-rom mount CEG Linux - General 5 02-04-2004 07:04 PM

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

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