This is an old revision of the document!
X68000 - Writing 5.25" Floppies in Linux
You need a package of tools called `fdutils` installing, this includes things like 'getfdprm', 'setfdprm', etc:
$ apt-get install fdutils
To set up the drive for the Sharp X68000 track layout, you need to configure the drive. Here's a quick shell script that automates it:
#!/bin/bash MODE=$1 FD=$2 if [ "$MODE" == "on" ] then echo "1232/1232 2464 16 2 77 0 0x35 0x08 0xDF 0x74" > /etc/fdprm setfdprm /dev/$FD -p 1232/1232 fdformat /dev/$FD else setfdprm /dev/$FD -c fi
Run it as
$ sudo setx68flop on fd1
Then write your disk image using dd (dd if=image.xdf of=/dev/fd1), finally clear the floppy settings:
$ sudo setx68flop off fd1