1. Home
  2. Computing & Technology
  3. Linux

From Authors, for About.com

don't have IDE but a SCSI CDROM? Then try /dev/sda, /dev/sr0, etc.


A short listing of possible drives could include:

  • hda -- the master drive on the first IDE interface (that's always the first hard drive)

  • hdb -- the slave drive on the first IDE interface (you must have at least two hard drives for that)

  • hdc -- the master drive on the second IDE interface (if you have two IDE interfaces on your computer, most newer computers do)

  • hdd -- the slave drive on the second IDE interface (if you have one)

  • sda -- the first SCSI drive

  • sdb -- the second scsi drive ("sdc" is the third scsi drive, etc. There can be many scsi drive on a system).

  • sr0 -- the first scsi CD drive (sometimes called scd0)

  • sr1 --the second scsi CD drive (sometimes called scd1), (sr2 is the third scsi CD drive, etc. There can be many scsi CD drives on the system).

It is a good idea to have a device /dev/cdrom anyway because some programs assume that it exists. If it does not exist on your system, you may create it as a symbolic link using, for example:

ln -s /dev/hdb /dev/cdrom

if your cdrom is the /dev/hdb drive.

If you cannot mount because "the device is already mounted or directory busy", perhaps the mountpoint /mnt/cdrom is your current directory. You have to change the directory to somewhere else in order to be able to mount to it; for example change the current directory to the root directory by issuing this command:

cd /

To unmount a mounted CD, exit the directory /mnt/cdrom and type as root:

umount /mnt/cdrom

Your CDROM may refuse to eject the media if it is not unmounted. Also, you may have problems mounting the next CD if the previous one was not unmounted. If you cannot unmount because "the device is busy", perhaps /mnt/cdrom (or any subdirectory underneath) is your current directory? You need to change your current directory to somewhere else out of the mountpoint in order to unmount the device.

5.2.3 Mounting my other devices

Very much the same as CDROM--see the previous answer if you did not read it.

5.2.3.1 Floppy

I can mount my floppy (as root) with:

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

Again, make sure that the directory /mnt/floppy exists and is empty. Also, /mnt/floppy/ cannot be your current directory.

After a successful mount, the files from the floppy appear in the directory /mnt/floppy/ . All the users will be able to read the files, but only root will be able to modify/delete the files. Please read further if you wanted the users to be able to write to the floppy.

To unmount a floppy (you *must* do this before ejecting the disk!) use:

umount /mnt/floppy

If you cannot unmount because "the device is busy", perhaps the /mnt/floppy/ directory is your current directory. Exit it by typing (for example):

cd

which will change your current directory to your home directory.

5.2.3.2 Zipdrive

I mount the parallel port external zipdrive (scsi emulation) with:

mount -t vfat /dev/sda4 /mnt/zipdrive

The "-t vfat" is used here because zip disks come preformatted in the vfat filesystem, which is the filesystem of MS Windows with the long filename support. You won't be able to eject the disk without unmounting it. Again, the directory must exist, be empty, and must not be your current working directory (see the previous answer).

I can mount an internal IDE zipdrive using:

mount -t vfat /dev/hdd4 /mnt/zipdrive

On my system, this is the second drive on the second IDE interface, hence "hdd"--replace it with "hdb" or "hdc" if necessary on your system.

A tip from Alvaro Reguly <alvaro@reguly.net>. "I have a ATAPI Zip Drive (recognized as ATAPI Floppy) so to make it work with Debian and kernel 2.4.3 I had to switch my BIOS setting from "Autodetect" to "None" (just the Zip channel of course), and mount it using

mount -t vfat /dev/hdb

(without the trailing 4!) "

All zipdrives (internal SCSI and IDE, external SCSI and parallel port) but the USB are supported under Linux (April 1999). See forward in this chapter for info on how to manually load a module (driver) for zipdrives if one does

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux