Writing to a diskette
My frame of reference is W98, and so Linux is completely foreign to me. I am experimenting with Fedora Core 3, among other distros.
1) How do I go about formatting a diskette in /dev/fd0? 2) How do I go about writing a simple TXT file to a diskette, to be reread by a) a W98 machine and b) another Linux machine? 3) How do I go about reading a file on a diskette or copying it from there to my Linux system? |
You simply need to mount the diskette with a vfat (FAT32) filesystem. This will probably be as simple as this:
1) Insert the diskette 2) Type this command Code:
mount /dev/fd0 Code:
cat /etc/fstab 4) Copy whatever you wish to the directory it gets mounted to, then unmount the disk with this command Code:
umount /dev/fd0 |
To format a floppy...
You will need to su into root (I've tried several pleas for help, but no response. Try adding yourself to group floppy) Once that's done: Code:
fdformat /dev/fd0 Remember: :study: :study: :study: |
Mugwump,
OK. I formatted the diskette as you suggested. I presume the 'mkdosfs' will still enable me to read/write to/from Linux systems as well as Windows systems. Now, how do I copy to or from the diskette? If I try "cp somefile.txt /dev/fd0", I get a message warning me about overwriting /dev/fd0. I don't think that is something I should do. |
Once you're done with formatting the floppy disk and you have a filesystem written on it, there is something else that must be done before you can write to it: mount it
Code:
su --press Enter, enter root password, then press Enter again Code:
cp somefile /mnt/floppy Code:
umount /dev/fd0 |
All times are GMT -5. The time now is 08:24 AM. |