Help with DFS discs on Linux

discuss PC<>Acorn file transfer issues & the use of FDC, XFER, Omniflop/disk etc.
ptheta
Posts: 89
Joined: Mon Jul 08, 2013 8:16 pm

Help with DFS discs on Linux

Postby ptheta » Sun Dec 29, 2013 11:32 pm

I'm trying to format some DD 3.5" floppies for DFS on my Linux PC with a view to copying over some of the dsd images that have been posted on this forum

I've been following the instructions that I found on here and a couple of other places. I tried to format like this:

paul@enfield:~/emulators/elk/stardot_discs$ sudo setfdprm /dev/fd0 sd sect=10 head=1 cyl=80 ssize=256 zerobased dtr=2
paul@enfield:~/emulators/elk/stardot_discs$ sudo fdformat /dev/fd0
Single-sided, 80 tracks, 5 sec/track. Total capacity 200 kB.
Formatting ... done
Verifying ... Read: : Input/output error
Problem reading cylinder 0, expected 2560, read -1

I've had this with a couple of discs so I'm wondering if I'm doing something wrong here. Can anyone help? Note that I've tried with and without the "dtr=2" bit and it behaves the same regardless.

Assuming I do get this working is it possible to copy over dsd images directly with an Linux tool? I've not come up with anything in the reading I've done and my current thinking is that I will need to use an emulator to create ssd images for drive 0 & 2 and then copy them individually with dd. Am I barking up the right tree with that or just talking nonsense?

Any help gratefully received.

Paul.

User avatar
sweh
Posts: 1833
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: Help with DFS discs on Linux

Postby sweh » Mon Dec 30, 2013 1:49 am

ptheta wrote:Assuming I do get this working is it possible to copy over dsd images directly with an Linux tool? I've not come up with anything in the reading I've done and my current thinking is that I will need to use an emulator to create ssd images for drive 0 & 2 and then copy them individually with dd. Am I barking up the right tree with that or just talking nonsense?

The latest version of my MMB utils ( http://sweh.spuddy.org/Beeb/mmb_utils.html ) can split a DSD into two SSDs. eg

Code: Select all

$ ls -l Datascope.dsd
-rw-r--r-- 1 sweh sweh 409600 Dec 29 20:47 Datascope.dsd
$ beeb split_dsd Datascope.dsd ds0.ssd ds1.ssd
Disks created
$ ls -l ds*
-rw-r--r-- 1 sweh sweh 204800 Dec 29 20:48 ds0.ssd
-rw-r--r-- 1 sweh sweh 204800 Dec 29 20:48 ds1.ssd
$ beeb info ds0.ssd
Disk title:  (32)  Disk size: &320 - 200K
Boot Option: 3 (EXEC)   File count: 7
 
Filename: Lck Lo.add Ex.add Length Sct
$.Scopemc      000B00 000B00 000100 11B
$.!BOOT        000000 000000 0000BE 11A
$.DSCIMAG      FF1900 FF8023 001209 107
$.DSCEDIT      FF1900 FF8023 001076 0F6
$.DSCOPEM      FF1900 FF8023 003EC2 0B7
$.SCOPEL2      FF1900 FF8023 005A42 05C
$.SCOPEL1      FF1900 FF8023 00596F 002
$ beeb info ds1.ssd
Disk title:  (19)  Disk size: &320 - 200K
Boot Option: 0 (None)   File count: 26
 
Filename: Lck Lo.add Ex.add Length Sct
$.CAPP1/0      000000 000000 003BB1 1D7
$.CAPPARA      000000 000000 000C0B 1CA
$.CAP10M       000000 000000 000B94 1BE
$.CAP820K      000000 000000 000B94 1B2
$.CAP220K      000000 000000 000900 1A9
$.CAPP1/1      000000 000000 000000 1A9
$.CAP39K       000000 000000 000BE2 19D
$.CAP100K      000000 000000 000B94 191
$.CAP68K       000000 000000 000B93 185
....
Rgds
Stephen

ptheta
Posts: 89
Joined: Mon Jul 08, 2013 8:16 pm

Re: Help with DFS discs on Linux

Postby ptheta » Mon Dec 30, 2013 10:42 am

That's awesome, thanks!

I don't suppose anyone else has seen that disc error? I may just go ahead and try the ssd images regardless and see what happens.

Electron related fun is likely to be delayed for a day or two now though as I have a new motherboard/cpu/ram turning up at some point today. Time to take the old machine down and pull the innards out.

ptheta
Posts: 89
Joined: Mon Jul 08, 2013 8:16 pm

Re: Help with DFS discs on Linux

Postby ptheta » Mon Dec 30, 2013 11:59 pm

Wouldn't you know it. I just fitted a new motherboard and it doesn't have any floppy or PATA interfaces. There go my dvd burner and floppy drive then!

Anyone had any success with USB floppy drives? I believe I have seen such an odd beast on ebay in the past.

User avatar
sweh
Posts: 1833
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: Help with DFS discs on Linux

Postby sweh » Tue Dec 31, 2013 12:11 am

Build a UPURS cable and use MartinB's UPURS software; you can use this to transfer ssd images from your PC (inc. Linux) using a serial port and write them to a floppy drive attached to your Beeb.

You might also need a FTDI based USB serial cable; I found my motherboard onboard serial ports didn't work too well.
Rgds
Stephen

User avatar
1024MAK
Posts: 6678
Joined: Mon Apr 18, 2011 4:46 pm
Location: Looking forward to summer in Somerset, UK...

Re: Help with DFS discs on Linux

Postby 1024MAK » Tue Dec 31, 2013 8:26 am

USB 3.5" FDD are of very little use with retro computer formats. They don't use a normal FDD controller chip, and as as result can normally only be used with MSDOS formats (and some formats that are close to MSDOS formats).

Mark
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk NOW!
BeebWiki‬ - for answers to many questions...

ptheta
Posts: 89
Joined: Mon Jul 08, 2013 8:16 pm

Re: Help with DFS discs on Linux

Postby ptheta » Wed Jan 01, 2014 11:03 am

The UPURS route would be nice but I have an Electron rather than a BBC so it would be more than my budget or soldering skills could sustain right now.

I had a flash of inspiration (just before finishing the bottle of JD last night :-) ). My old Sun Ultra 60 will apparently take a standard floppy drive. I've not done anything with it since I got it except plug in a serial cable and reconfigure the boot Prom. This will give me the motivation to finally chuck a copy of Debian on it.

User avatar
BeebMaster
Posts: 2441
Joined: Sun Aug 02, 2009 4:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Help with DFS discs on Linux

Postby BeebMaster » Wed Jan 01, 2014 6:08 pm

ptheta wrote:I've been following the instructions that I found on here and a couple of other places. I tried to format like this:

paul@enfield:~/emulators/elk/stardot_discs$ sudo setfdprm /dev/fd0 sd sect=10 head=1 cyl=80 ssize=256 zerobased dtr=2
paul@enfield:~/emulators/elk/stardot_discs$ sudo fdformat /dev/fd0
Single-sided, 80 tracks, 5 sec/track. Total capacity 200 kB.
Formatting ... done
Verifying ... Read: : Input/output error
Problem reading cylinder 0, expected 2560, read -1

That's more or less the method I use, apart from using "swapsides" instead of dtr=2 for "drive 2".

However, I have to define a 720K/DD drive type first to get it to work, like this:

Code: Select all

sudo mknod -m 0660 /dev/fd0d720 b 2 24


And thereafter using /dev/fd0d720 (or whatever you decide to call it) to access the floppy drive.

Just reading up on something I have about floppy drive device types, it appears that the command above makes a 720K 5.25" drive in an HD drive. The code for 720K 3.5" drive would be 16 instead of 24, so I wonder if that might be where I've been going wrong all these years...
Image

ptheta
Posts: 89
Joined: Mon Jul 08, 2013 8:16 pm

Re: Help with DFS discs on Linux

Postby ptheta » Wed Jan 01, 2014 8:42 pm

Thanks for that, much appreciated.

Thought I'd try putting the floppy into the Sun this evening. I only have a single spare floppy drive cable and when I went to fit it I found that it was an ASUS specific one with one of the pin holes blocked. Just ordered a standard one on the bay for £2.49 delivered but it'll be a few more days now before I can play with it. It's never simple is it!


Return to “software & utilities for the pc, mac or unix”

Who is online

Users browsing this forum: No registered users and 2 guests