First you have to mount the device, if the system doesn't mount it automatically. Insert the cd or the usb device, wait for some seconds, then use the command mount without arguments to check if the device is already mounted or not:
/dev/sda1 on /media/USB DISK type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=502)
this example shows a usb device mounted in "/media/USB DISK". So you can check the mount point and access it as usual. The same for a CD/DVD. If you have to mount it manually you can check the output of fdisk -l
, look for the device name and the filesystem type, then mount it using an existing directory a mount point (for example /mnt).
# fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 250 2007008+ 6 FAT16
# mount /dev/sda1 /mnt
# cd /mnt
If you insert a CD in most cases it is mounted automatically. If not, you can use /dev/cdrom as device, since it exists on all system and usually is a link to a physical device (in this case you don't see the CD device using fdisk -l):
# mount /dev/cdrom /mnt
# cd /mnt
When you've finished, unmount the device using the umount
command giving either the mount point or the device name as argument.
Hope this helps.