Custom Search

Ubuntu mount cdrom command line

This is a tip on how to mount cdrom in Ubuntu command line. In Ubuntu, mounting a cdrom and dvdrom is the same. You must use sudo command to invoke the mount command because only root can mount a cdrom. So you must have a root privilege to that.

luzar@ubuntu:~$ sudo mount /dev/cdrom /mnt/dvd/
mount: block device /dev/scd0 is write-protected, mounting read-only
luzar@ubuntu:~$


Ubuntu tells us that the mounting is read-only. So if we are going to do something with the file, we have to copy it else where. Now let's browse the cdrom we mounted in the /mnt/dvd directory.

luzar@ubuntu:~$ ls -l /mnt/dvd/
total 143
-r-xr-xr-x 1 root root 942 2008-04-22 02:07 cdromupgrade
dr-xr-xr-x 3 root root 2048 2008-07-01 00:38 dists
dr-xr-xr-x 3 root root 2048 2008-07-01 00:38 doc
dr-xr-xr-x 3 root root 2048 2008-07-01 00:39 install
dr-xr-xr-x 2 root root 12288 2008-07-01 00:39 isolinux
-r--r--r-- 1 root root 119942 2008-07-01 00:39 md5sum.txt
dr-xr-xr-x 2 root root 2048 2008-07-01 00:38 pics
dr-xr-xr-x 4 root root 2048 2008-07-01 00:38 pool
dr-xr-xr-x 2 root root 2048 2008-07-01 00:38 preseed
-r--r--r-- 1 root root 230 2008-07-01 00:38 README.diskdefines
lr-xr-xr-x 1 root root 1 2008-07-01 00:38 ubuntu -> .
luzar@ubuntu:~$


That all about the Ubuntu mount cdrom command line tips.

No comments:

Post a Comment

Please keep comment relevant and strictly no spam will be tolerated. Thank you.