Click to See Complete Forum and Search --> : Using floppy disks in FreeBSD


tmcG
09-02-2003, 08:09 PM
Hi everyone!

I am sorry to post what is probably a dumb question but I have searched through the FreeBSD handbook with little success.

I have just installed FreeBSD 5.0 and and wanting to copy some files from a floppy disk onto FreeBSD.

The problem is that I cannot mount a floppy drive because it does not exist.

I have gone through sysinstall and had no luck there.

I have tried to use this from the FreeBSD handbook with no luck:
------------------------------------------------------------------------------------
The following is from the FreeBSD handbook:

I have a new removable drive, how do I use it?

Whether it is a removable drive like a ZIP or an EZ drive (or even a floppy, if you want to use it that way), or a new hard disk, once it is installed and recognized by the system, and you have your cartridge/floppy/whatever slotted in, things are pretty much the same for all devices.

(this section is based on Mark Mayo's ZIP FAQ)

If it is a ZIP drive or a floppy, you have already got a DOS filesystem on it, you can use a command like this:

# mount -t msdos /dev/fd0c /floppy
if it is a floppy, or this:

# mount -t msdos /dev/da2s4 /zip
for a ZIP disk with the factory configuration.

For other disks, see how they are laid out using fdisk(8) or sysinstall(8).

The rest of the examples will be for a ZIP drive on da2, the third SCSI disk.

Unless it is a floppy, or a removable you plan on sharing with other people, it is probably a better idea to stick a BSD filesystem on it. You will get long filename support, at least a 2X improvement in performance, and a lot more stability. First, you need to redo the DOS-level partitions/filesystems. You can either use fdisk(8) or /stand/sysinstall, or for a small drive that you do not want to bother with multiple operating system support on, just blow away the whole FAT partition table (slices) and just use the BSD partitioning:

# dd if=/dev/zero of=/dev/rda2 count=2
# disklabel -Brw da2 auto
You can use disklabel or /stand/sysinstall to create multiple BSD partitions. You will certainly want to do this if you are adding swap space on a fixed disk, but it is probably irrelevant on a removable drive like a ZIP.

Finally, create a new filesystem, this one is on our ZIP drive using the whole disk:

# newfs /dev/rda2c
and mount it:

# mount /dev/da2c /zip
and it is probably a good idea to add a line like this to /etc/fstab (see fstab(5)) so you can just type mount /zip in the future:

/dev/da2c /zip ffs rw,noauto 0 0

Can anyone tell me where I am going wrong?

Thank you!:confused:

Alex Cavnar, aka alc6379
09-02-2003, 10:24 PM
What exactly doesn't exist?

I'll bet you didn't make a mountpoint. As root, try mkdir /floppy, and see if that doesn't help. I know by default, /floppy doesn't exist.

tmcG
09-03-2003, 12:30 AM
Thanks for the response Alex!:)

i have created a folder in /mnt called /floppy but do I need to link it to /dev/fd0 and if so how??:confused:

PS Love the Cookie Monster pic and Happy Birthday for the 4th September (which is my birthday too!!:p

tmcG
09-03-2003, 03:16 AM
I have solved my problem by adding /dev/fd0u1440 to /mnt/floppy in /etc/fstab.:cool: