Access the CD-ROM or USB from a Linux Terminal

Writing by on Saturday, 14 of January , 2012 at 1:40 am

Even though this is not a very common use case, you might need to do this and like just about anything with Linux, there’s a bit of a pain here as well.
The easiest way is to access the Disk Utility and see the Mount Point and just cd to that mount point. For example, cd /media/RHEL_6.1/

Otherwise, follow the steps below or read up on mount and umount (unmount)

Depending on the OS, most likely the cdrom will be at /dev/cdrom, the USB will be at /dev/usb etc. But may change.

# Login as root, then follow these steps
$ mkdir /mnt
$ mount /dev/cdrom /mnt/cdrom
$ cd /mnt/cdrom
$ ls

# To unmount, use the umount command
$ umount /mnt/cdrom
$ ls

Leave a comment

Category: Linux

No Comments

No comments yet.

Leave a comment

You must be logged in to post a comment.

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.