I am trying to mount the installation CD rom drive using a USB CD ROM drive on Ubuntu 10.4.3 server to extract additional packages (since I do not have internet active on the server). I plugged the CD rom drive and inserted the CD and I could not find any auto mounting happening. I could not figure out what would be the device name to manually mount. Looks like it is not /dev/sr0. Any guidance on mounting a CD on Ubuntu server is appreciated.
EDIT Based on the answer from Christopher, here is more information,
/0/1 scsi6 storage
/0/1/0.0.0 /dev/cdrom disk DVD RW AD-7560S
/0/1/0.0.0/0 /dev/cdrom disk So I guess the device name would be /dev/cdrom and I should be able to mount it with the following command
sudo mount /dev/cdrom /mntI get the following error.
mount: /dev/sr0: unknown deviceHowever I can automount the CD in my Ubuntu 10.10 Desktop edition.
So please confirm I am recognising the correct /dev/<dev name>
4 Answers
You can glean the device name with "list hardware" (lshw):
sudo lshw -shortOutput 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 ST3750640ASOr maybe pipe to less if there is too much output:
sudo lshw -short | less 6 On Ubuntu Server 12.04 LTS it is as easy as:
$ sudo mount /dev/sr0 /media/cdromTo unmount, type:
$ sudo umount /media/cdrom 1 TRY
sudo su mount /dev/scd0 /mnt/{custom-name} -t iso9660 mount /dev/scd0 /mnt/{custom-name} -t udfOR
mount /dev/sr0 /mnt/{custom-name} -t udf
mount /dev/sr0 /mnt/{custom-name} -t iso9660To 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 Type blkid to see a list of devices attached to your computer.
then type:
$ mount /dev/sdc1 cdromchange sdc1 to the name of your usb stick as listed in blkid. e.g. sdc0, sdc2, etc