Mounting a Drive

Published: 1/12/2009
 

Mounting a CDROM Drive


In Linux, like in UNIX, diskettes and CD-ROMs need to be mounted before they can be used. What mount does is to associate the devices (floppy or CD-ROM drives) to a mount point (a directory) in the root file system. The usual mount point for diskettes is /mnt/floppy , while the usual mount point for CD-ROMs is /mnt/cdrom. This is not to say that we need to use these specific mount points. You can get help about mount by typing man mount in a shell prompt.

CD-ROM

In a shell prompt (or shell window) you can mount a CD-ROM in /mnt/cdrom as follows:

mount -t auto /dev/cdrom /mnt/cdrom

If /etc/fstab has been modified as explained below under "Using the mount tool", then you can just type:

mount  /dev/cdrom

Floppy

In a shell prompt (or shell window) you can mount a floppy diskette in /mnt/floppy to read DOS formatted diskettes or Linux formatted diskettes, respectively, as follows:

mount  -t  msdos  /dev/fd0  /mnt/floppy

mount  -t  ext2  /dev/fd0  /mnt/floppy

Using the mount tool

In X Windows, with any desktop (KDE, GNOME, AnotherLevel, etc), you can mount CD-ROMs and diskettes by simply typing usermount in a shell window. A graphical window will open and let you mount and unmount both type of devices.

To allow users other than root to mount and unmount devices you need to edit as root the lines in /etc/fstab corresponding to floppy and CD-ROM, respectively, to look like the following:

/dev/fd0  /mnt/floppy     auto   user,defaults,noauto   0  0

/dev/cdrom  /mnt/cdrom     auto   user,ro,defaults,noauto   0  0

You can create a KDE desktop link to usermount by right-clicking on the desktop and selecting new, application. Rename Program.kdelnk to something like Mount.kdelnk and click OK in the new application dialog. A new dialog will open and you should select the Execute tab. In the Execute window type usermount, then click on the generic icon and a Select Icon window will open and let you choose an icon (like a diskette, etc) to represent the mount tool. Click OK twice and the link will be placed on the desktop.

 

Ref: http://home.ubalt.edu/abento/linux/terminal/mount.html

 

Related Posts

Linux File Structure Part 2

Last Updated: 1/12/2009
When you wish to use the CDROM drive it must first have a cdrom in the drive and data on the cdrom. To view the data you must mount the device to a given place of the Linux filing tree. Everything in Linux is a file. The whole partition of a hard dr
Read more...

 

Linux File Structure

Last Updated: 1/12/2009
Understanding the basic idea behind the Linux file structure can help but only if other people follow this idea!
Read more...

 

Pipe and Redirection

Last Updated: 1/12/2009
The command line is not only a tool for bashing out program names but an elegant and intelligent environment. Some programming languages can be typed directly into the command line. Also tasks that take some time to execute in the background leaving
Read more...

 

Beginners Guide to Vi

Last Updated: 1/12/2009
Beginners Guide to Vi
Read more...

 

Linux in a nut Shell

Last Updated: 1/12/2009
Why should we bother learning Linux shell command when we have GUI like KDE?
Read more...