Friday, August 5, 2011

Easy Understanding - Mount and Un-Mount CDROM

Attaching any filesystem to the root filesystem hierarchy of linux is basically called mounting the filesystem. Here in this blog, i will tell you how to mount the cdrom filesystem on the linux file system hierarchy. Find the easy steps:

1. Insert the CD/DVD into the physical drive
2. Login to the linux system with root privileges (Otherwise execute the command - sudo `mount command`)
3. Create a directory under /mnt or /media 
    [root@localhost:/]# mkdir /mnt/cdrom
4. Mount the cdrom with the following commands
    [root@localhost:/]# mount -t iso9660 /dev/cdrom /mnt/cdrom
5. Navigate to the folder /mnt/cdrom to verify that the drive is mounted.

One can also check the file /etc/mtab to see the disk in mounted. Now, for unmounting.....its fairly easy. Run the following command.
6. Unmount the cdrom
[root@localhost:/]#umount /mnt/cdrom

Verify it from the file /etc/mtab






No comments:

Post a Comment