FreeBSD Stable Release 7.1 Installer  Guide

Home______________________________________________________________________

 

FBSD has its own file system. This file system is different that the MS/Windows file system. A MS/Windows PC can not read FBSD file systems, but FBSD can read and write the MS/Windows file system. Both FBSD and MS/Windows must format the floppy disk to their file system.

 

Load a floppy disk into the floppy drive.

disklabel –w -r /dev/fd0 fd1440    # FBSD ufs file system.

newfs /dev/fd0                     # create ufs file system on floppy

To use the floppy, the floppy drive must first be mounted to the system. The basic FBSD system comes with a generic mount point called /mnt I find it much more convenient to create a floppy mount point call /a like MS/Windows drive A which is the floppy drive. Since we have a new, clean, fresh install of FBSD the /a mount point has to be created. This only has to be done once.

 

cd /       # change to top of directory tree

mkdir /a   # make directory

 

Load a FBSD formatted floppy disk into the floppy drive.

mount /dev/fd0 /a      # mount device to mount point /a

cd /a                  # change to /a

 

You have already formatted the floppy, created the mount point, and mounted the drive.

cp /etc/motd /a/         # copy motd file to floppy

ls                       # list contents of directory,
                         # You should see the motd
                         # file listed as being on /a

 

It's real easy to just press the floppy drive eject button and remove the floppy disk. This will create problems for you as the floppy drive is still mounted and cannot be un-mounted without a floppy disk loaded in the drive. There is a sequence of commands you have to execute to free up the floppy drive before removing the floppy disk.

cd /           # change directory to top of directory tree

umount /a      # un-mount the floppy drive

If you get error message 'device busy', that means you forgot to change the directory pointer to a different location instead of /a. Do the cd / command again.

 

Load MS/Windows floppy into floppy drive

mount –t msdos /dev/fd0 /a      # mount device to mount point /a

cd /a                           # change to /a

 

Like most users I have an environment of both MS/Windows PC's and FBSD PC's. It's just too hard to keep separate floppy disks formatted just for FBSD and others formatted for MS/Windows. There are a lot of times when I need to copy files from FBSD to MS/Windows or the reverse. I have experienced the best way is to only use MS/Windows formatted floppy disks and configure FBSD to use them automatically. This can be configured in the /etc/fstab file

ee /etc/fstab

This is what the fstab file will look like.

# See the fstab(5) manual page for important information on automatic mounts
# of network filesystems before modifying this file.
#
# Device    Mountpoint  FStype  Options    Dump Pass#
/dev/ad0s1b  none       swap     sw         0     0
/dev/ad0s1a  /          ufs      rw         1     1
/dev/ad0s1f  /tmp       ufs      rw         2     2
/dev/ad0s1g  /usr       ufs      rw         2     2
/dev/ad0s1e  /var       ufs      rw         2     2
/dev/acd0c   /cdrom     cd9660   ro,noauto  0     0
proc         /proc      procfs   rw         0     0

You need to add the following line.

/dev/fd0 /a msdos rw,noauto,longnames 0 0

so the file looks like this

# Device    Mountpoint  FStype  Options    Dump Pass#
/dev/ad0s1b  none       swap     sw         0     0
/dev/ad0s1a  /          ufs      rw         1     1
/dev/ad0s1f  /tmp       ufs      rw         2     2
/dev/ad0s1g  /usr       ufs      rw         2     2
/dev/ad0s1e  /var       ufs      rw         2     2
/dev/acd0c   /cdrom     cd9660   ro,noauto  0     0
/dev/fd0     /a         msdos    rw,noauto,longnames 0   0
proc         /proc      procfs   rw         0     0

Save the file and reboot to enable.

After enabling your change by rebooting your FBSD system, you can now mount your floppy drive with this command:  mount /a

 

Load a MS/windows floppy into thefloppy drive.

mount /a         # mount device to mount point /a

cd /a            # change to directory

ls               # list content of floppy disk

cd /             # leave directory

umount /a        # to dismount the disk in the floppy drive.

 

 

IDE controlled CDROM drives work the same way as the floppy drive does. FBSD comes with one CDROM drive preconfigured in /etc/fstab. You only mount data CDROMs, music CDs are mounted by the music playing software you use, as does the software you use to write CDs.

Load a standard cd9660 (Rock Ridge Extensions) CD in the drive.

mount /cdrom         # mount device to mount point /cdrom

cd /cdrom            # change to directory

ls                   # list content of CDROM disk

cd /                 # leave directory

umount /cdrom        # to dismount a CDROM disk from the drive

 

If you have two CDROM drives you can add the shortcut mount command for it, just like it’s explained in the Easier way to mount MS/Windows floppies section above. Edit /etc/fstab and add the following statement:

/dev/acd1c /cdrom2 cd9660 ro,noauto 0 0

Then create its mount point:

cd /

mkdir /cdrom2

Reboot the system to enable your change.

 

Previous Page                                        Next Page         

This FreeBSD Installer Guide is an public domain HOW-TO. This content may be reproduced, in any form or by any means, and used by all without permission in writing from the author.