LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't mount usb cd rom in ubuntu 8.04 (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-mount-usb-cd-rom-in-ubuntu-8-04-a-853722/)

xr4ti 01-02-2011 10:46 AM

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>

pickarooney 01-02-2011 04:16 PM

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?

EDDY1 01-02-2011 05:06 PM

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.

frankbell 01-02-2011 08:32 PM

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.

xr4ti 01-04-2011 06:02 AM

Quote:

Originally Posted by pickarooney (Post 4210728)
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

xr4ti 01-04-2011 06:04 AM

Quote:

Originally Posted by frankbell (Post 4210916)
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?

ashish_neekhra 01-04-2011 06:07 AM

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


...

xr4ti 01-04-2011 06:34 AM

Quote:

Originally Posted by ashish_neekhra (Post 4212488)
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

ashish_neekhra 01-04-2011 06:49 AM

Quote:

Originally Posted by xr4ti (Post 4212518)
mount: special device /dev/cdrom does not exist

Check this

xr4ti 01-04-2011 07:32 AM

Quote:

Originally Posted by ashish_neekhra (Post 4212526)
Check this

Thanks but it was not helpful.

frankbell 01-05-2011 02:15 AM

Quote:

Originally Posted by xr4ti (Post 4212485)
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.


All times are GMT -5. The time now is 04:19 AM.