Linux Headquarters

I've installed Linux… now what???

Using Your CD-ROM Drive

Introduction

In Linux, the floppy and CDROM drives must be “mounted” before the data on them can be read. When a CDROM is mounted, its file heirarchy is added to the existing file heirarchy usually under /mnt/cdrom or /cdrom. It can be mounted anywhere the user wants it to be. Thus, after mounted the floppy, the command ls /mnt/cdrom displays the contents of the disk. Unlike a floppy disk, a CD has only one file system: iso9660. After using the CDROM drive, the disk must be “unmounted” before it is removed.
Mounting the CDROM Drive
The syntax is mount -t iso9660 /dev/cdrom /mnt/cdrom

/dev/cdrom is usually autoconfigured during installation to point to a device off the EIDE or SCSI controller such as /dev/hdb or /dev/sdb depending on your controller and how many other devices you have in your machine.
Allowing Users to Mount the CDROM Drive
Most Linux distributions do not allow users to mount the CDROM drive for security reasons. Root access is usually required to do so. However, someone with root access can allow users to mount the CDROM using the /etc/fstab configuration file.

Example /etc/fstab without user privileges to mount the CDROM:

/dev/hda1       /                ext2    defaults        1 1
/dev/hda5       swap             swap    defaults        0 0
/dev/fd0        /mnt/floppy      ext2    noauto          0 0
/dev/cdrom      /mnt/cdrom       iso9660 noauto,ro       0 0
none            /proc            proc    defaults        0 0
none            /dev/pts         devpts  gid=5,mode=620  0 0

Example /etc/fstab with user privileges to mount the CDROM:

/dev/hda1       /                ext2    defaults        1 1
/dev/hda5       swap             swap    defaults        0 0
/dev/fd0        /mnt/floppy      ext2    noauto          0 0
/dev/cdrom      /mnt/cdrom       iso9660 noauto,ro,users 0 0
none            /proc            proc    defaults        0 0
none            /dev/pts         devpts  gid=5,mode=620  0 0

Notice the users tag in the fourth column of the line beginning with /dev/cdrom. This allows anyone in the users group to mount the CDROM using the iso9960 filesystem with the command mount /mnt/cdrom.
You can also add individual user names to the end of the fourth column to give them only certain users access.

What is Related

Comments are closed.

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Dedicated Linux Serv

Linux is the popular system nowadays, offering all the benefits ...

StarOffice 5.1

Introduction StarOffice 5.1 is a complete office suite with a word ...

AxY FTP

Introduction AxY FTP, formerly known as wxFTP, is a graphical FTP ...

Adobe Acrobat PDF Re

Introduction Many of you are probably familar with Adobe Acrobat Reader ...

Macromedia Shockwave

Introduction Macromedia has developed a version of its popular Shockwave plugin ...

Twitter updates

No public Twitter messages.