Monday, November 24, 2014

Mount CD | Create ISO | Mount ISO in Linux

I am posting after a long time, since i became busy with my tough work schedule but wanted to share something. So i am writing a small article which some may find boring but newbies to Linux need to know about this basic functionality. The below steps will work in most of the Linux distributions

- Mounting a CD in Linx
- Create ISO Image from the CD
- Mount the ISO Image in Linux




Mounting a CD in Linux 

Execute the below command in the shell prompt after inserting the CD into CD Drive

[root@theiot ~]# mount /dev/cdrom /mnt

or you can create a separate directory, i.e "mkdir /cddrive" and mount the CD in the directory

[root@theiot ~]# mount /dev/cdrom /cddrive

Works for DVD as well :-)

Create ISO Image from the CD

Execute the below command to create ISO Image "media.iso" from the CD

[root@theiot ~]# dd if=/dev/cdrom of=/mnt/media.iso

Mounting the ISO Image in Linux

Execute the below command to mount any ISO Image to a Directory

[root@theiot ~]# mount -o loop /mnt/media.iso /cddrive

Get into the directory to see the contents

[root@theiot ~]# cd /cddrive

[root@theiot ~]# ls -l

...
...
...


Thats it!, Done!

No comments: