Making a Linux Filesystem on a Floppy
Mounting floppy and CD-ROM drives
Note the CDROM may be on the secondary controller as a master (/dev/hdc) or slave (/dev/hdd). In fact, your /dev/cdrom is probably actually a softlink to one of these two devices, if you have an IDE interface. If you use SCSI, you will probably use something like /dev/sda1 or 2, etc. Mounting a parallel port zip drive: Note: in all these examples, the mount points must exist, be empty, and not already have a device mounted on them. Also you must unmount the device before removing it. |
Setting up Removable and External Filesystems to Automatically mount when used
- The program “autofs” must be setup to run as a daemon upon system startup. To do this with Redhat Linux, use the program “linuxconf” and select “Control”, “Control panel”, “Control Service activity”. Activate “autofs” using the menu selections.
- Edit the file “/etc/auto.master” to the following:
/mnt /etc/auto.misc --timeout 20
The above example sets the program to unmount the device after 20 seconds.
- Edit the file “/etc/auto.misc” adding lines like:
cd -fstype=iso9660,ro :/dev/cdrom fl -fstype=auto :/dev/fd0
This will cause the cd-rom to be mounted when you access the directory “/mnt/cd” and the floppy to be mounted when you access “/mnt/fl”. The directories “/mnt/cd” and “mnt/fl” must not exist in order for this to work.
- To use automount, put a cd in the CD-ROM drive and type “ls /mnt/cd” or “cd /mnt/cd”.