Skip site navigation (1)Skip section navigation (2)
Date:      16 Mar 2004 19:48:48 -0500
From:      Mike Jeays <Mike.Jeays@rogers.com>
To:        Prodigy <prodigy@punktas.lt>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Format floppy problem
Message-ID:  <1079484528.5194.9.camel@chaucer>
In-Reply-To: <004501c40b75$501d8e90$1e00a8c0@prodigy>
References:  <200403170921.34200.satimis@icare.com.hk> <004501c40b75$501d8e90$1e00a8c0@prodigy>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2004-03-16 at 11:39, Prodigy wrote:
> When u formated your floppy, u have to use disklabel to label floppy disc:
> disklabel -w -r /dev/fd0 fd1440
> 
> and then u have to make new file system on that floppy:
> newfs /dev/fd0
> 
> That's all, now u can mount your floppy disc.
> 
> > Hi folks,
> >
> > FreeBSD 5.2
> > ==========
> >
> > Floppies formatted on M$Win can be mounted, copied files to and read, etc.
> >
> > But floppies formatted on FreeBSD with
> >
> > $ fdformat /dev/fd0
> > Format 1440K floppy `/dev/fd0'? (y/n): y
> > Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.
> >
> > they could not be mounted
> >
> > $ mount -t msdos /dev/fd0 /usr/home/user/floppy
> > msdosfs: /dev/fd0: Invalid argument
> >
> > I tested 3 floppies with the same result.  Kindly advise how to fix this
> > problem.  Is there a special format floppy command for FreeBSD.
> >
> > TIA
> >
> > Stephen Liu
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

If you want to format a floppy with the FAT format for use in a Windows
system, try:

#!/bin/sh
# Format a DOS floppy  TMJ 1999-05-15
fdformat -f 1440 fd0
newfs_msdos -f 1440 fd0

You can then mount it as
mount -t msdos /dev/fd0 /mnt

The other method is to format it with the UFS filesystem, by:

#!/bin/sh
# Floppy formats:
#
# To make a filesystem on a floppy:
#       fdformat [-f <size>] fd<drive>[.<size>]
#       disklabel -B -r -w fd<drive>[.<size>] fd<size>
#       newfs <opts> fd<drive>[.<size>]
fdformat -q fd0.1440
disklabel -B -r -w fd0.1440 fd1440
newfs -c 1 fd0.1440

These can be mounted by
mount /dev/fd0 /mnt
but cannot be used on a Windows system.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1079484528.5194.9.camel>