Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This one has me stumped. Is there any way to format a standard DOS FAT 3.5 in. 1.44 MB diskette in a USB diskette drive with Linux? The diskette drive appears as /dev/sda, but mformat doesn't work.
I realize I could possibly "cheat" by creating an image file from a blank diskette and then using something like this:
dd if=/opt/dosblank.flp of=/dev/sda
But that hardly seems satisfying.
Related to this problem, perhaps, is that VMware doesn't really see a USB diskette drive.
Anyone have any ideas on either of these issues? Thanks in advance.
fdformat doesn't think it's a diskette drive. The /dev/sda device is, I believe, basically a SCSI-like device, and fdformat doesn't know what to do with it.
Could it be that there's another /dev that gets instantiated (or could get instantiated)?
Yes, that is a low-level format. What you want to do (assuming you already did the low-level format) is create a new partition table with "fdisk" or "cfdisk". Then use "mkfs.msdos" to make it a FAT partition.
Ohhhhhhh. . . okay, that clears a lot up! I was thinking he was talking about a USB flash memory drive.
Well you can use KFloppy if you want to format a floppy disk. I don't know how to do it from the command line, though (and I doubt it would be worth the extra time).
KFloppy doesn't seem to work, unfortunately. Apparently USB diskette drives are just somehow...different. They look more like SCSI devices to Linux (hence the /dev/sda presence).
I've never known a floppy to be FDISKed under DOS (for example), so that's what's got me confused about partitioning.
Hmm. . . looks like you might just have to go the long route of formatting and creating a new partition manually - I doubt that there's much work being done for floppy disk tools any more since people are switching over to flash drives and CD/DVD-RW's.
I, too, have a floppy connected to a USB port. My
OS is Redhat 9.0. The diskette drive also appears
as /dev/sda (I always wondered why it's not
/dev/fd0).
If it's any consolation, I can't even 'fdformat' a floppy.
Nor can I use the 'floppy' command or any of the
'm---' dos linux commands.
Strangely enough, I can mount/umount the floppy drive,
change directory, mkbootdisk, copy to and from, boot
from, etc.
I stumbled onto this rather lame thread in trying to deal with my own usb floppy. There are a couple of basic facts I've found.
1. If fdformat supports the usb floppy device (/dev/sda, etc.) the documentation is well hidden. It certainly fails for me. The man page fdformat(8) doesn't hint at such support. fdformat is part of the util-linux package of utilities. There is a related package, fdutils (fdutils[dot]linux[dot]lu), which supports manipulating the parameters of the floppy drive, etc. This package explicitly excludes support for usb floppy drives right there on its home page.
2. Fortunately, as noted by the fdutils people, there is another project that does support usb floppies at this url:
The program you need to format a floppy on a usb floppy drive is ufiformat. The typical use is: ufiformat -f 1440 /dev/sda. After creating a file system on the floppy (mkfs -t msdos /dev/sda), it should be ready to mount and use.
(I modified the urls above because of a strange limitation at this site.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.