Format floppy problem
Mike Jeays
Mike.Jeays at rogers.com
Tue Mar 16 16:48:50 PST 2004
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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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.
More information about the freebsd-questions
mailing list