mount your “Gotek” formatted usb on linux
May 2, 2015
I recently purchased this USB floppy emulator from ebay
I fixed it on to my old Yamaha PSR 550 which had a floppy drive. Everything worked perfectly, but the issue was not being able to copy the virtual drive content on to the computer.
So I managed to write this simple python fuse script which can help you to mount the virtual floppy drive on USB stick to your linux machine.
If you have an emulator, then you must know what I’m talking about.
Here’s how you can mount virtual floppies on to you linux machine (tested on Ubuntu 14.04)
- Download this file gotek2
- Extract the two python files on to a directory
- get a root terminal
- insert the usb pen drive formatted with virtual drives
- create a temporary directory (say tmp)
- run gotek2.py (to mount the 5th vistual drive)
- ./gotek2.py /dev/usb 5 tmp
- gotek2.py will continue to run
- on another terminal, go to the tmp direcotry
- you will see gotek-005.img file.
- mount this file using
- mount tmp/gotek-005.img /mnt
- copy / delete files on /mnt (5th drive)
- unmount when done
- umount /mnt
- wait for the message close :gotek-005.img
- stop gotek2.py by pressing ctrl+C
- make sure not to stop gotek2.py while a drive is mounted, it will corrupt the drive content.
Hope this will help someone.
Rate this project
0.0
User Rating
( votes)
2728total visits,2visits today
2 Comments
Instead of all of this, you can use following command
eg: mount partition 5 (run as root)
# mount -o loop,offset=$[5*1536]k,sizelimit=1440k /dev/sdb1 /mnt/tmp