Linux Index

File systems


Removable medias

The cdroms and the floppies have to be mounted each time you will access them. Once mounted, you cannot remove those medias from their drive before you unmount them. You will have to create an empty directory for each of these media (if they don't exist) where you will be able to mount them. So, as root user, type :
mkdir /mnt/cdrom
mkdir /mnt/floppy
chmod 777 /mnt/cdrom
chmod 777 /mnt/floppy

The mount command have his default parameter in the file /etc/fstab. Look at this file :

/dev/hda7 /           ext2    defaults        1 1
/dev/hda1 /boot       ext2    defaults        1 2
/dev/hda6 /cdimage    ext2    defaults        1 2
/dev/scd0 /mnt/cdrom  iso9660 noauto,owner,ro 0 0
/dev/hda5 swap        swap    defaults        0 0
/dev/fd0  /mnt/floppy msdos   noauto,owner    0 0
none      /proc       proc    defaults        0 0
none      /dev/pts    devpts  gid=5,mode=620  0 0

For details about /etc/fstab, look at the manual page of fstab. On each line, there are 6 parameters :

  • The device, for example /dev/fd0
  • The mount point, for example /mnt/floppy
  • The file system type, for example msdos
  • The parameters for the mount command, for example noauto, owner
  • 2 additional parameters

Check that the entries /mnt/floppy and /mnt/cdrom are present and correct.

Remarks

  1. In the example above, I have a SCSI emulation for the CDROM (the CDWRITER ...), so the device name of the first SCSI is /dev/scd0.
  2. In the example above, I chose msdos as file-system type for the floppy. In this way, I can read and write floppies in MS-DOS format.
  3. If you have IDE drives, the device names begin with /dev/hd. The following letter indicates which drive you mean : /dev/hda is the master of the first IDE, /dev/hdb is the slave of the first IDE, ... The number at the end indicates the partition number : for example /dev/hda2 is the second partition of the master of the first IDE.