How to mount a CD ROM from a USB CD ROM drive on Ubuntu 10.04.3 server
Solution 1:
You can glean the device name with "list hardware" (lshw
):
sudo lshw -short
Output something like this:
H/W path Device Class Description
==========================================================
/0/100/1f.2/0 /dev/cdrom disk DVD+-RW GSA-H31L
/0/100/1f.2/1 /dev/sda disk 750GB ST3750640AS
Or maybe pipe to less if there is too much output:
sudo lshw -short | less
Solution 2:
On Ubuntu Server 12.04 LTS it is as easy as:
$ sudo mount /dev/sr0 /media/cdrom
To unmount, type:
$ sudo umount /media/cdrom
Solution 3:
TRY
sudo su
mount /dev/scd0 /mnt/{custom-name} -t iso9660
mount /dev/scd0 /mnt/{custom-name} -t udf
OR
mount /dev/sr0 /mnt/{custom-name} -t udf
mount /dev/sr0 /mnt/{custom-name} -t iso9660
To Check
ls -l /dev/{cd,dvd}*
Output
lrwxrwxrwx 1 root root 3 2012-01-29 16:58 /dev/cdrom -> sr0
lrwxrwxrwx 1 root root 3 2012-01-29 16:58 /dev/cdrw -> sr0
lrwxrwxrwx 1 root root 3 2012-01-29 16:58 /dev/dvd -> sr0
lrwxrwxrwx 1 root root 3 2012-01-29 16:58 /dev/dvdrw -> sr0
Solution 4:
Type blkid
to see a list of devices attached to your computer.
then type:
$ mount /dev/sdc1 cdrom
change sdc1
to the name of your usb stick as listed in blkid. e.g. sdc0
, sdc2
, etc