Datacentre Copy ADFS Disc to USB Question

discussion of beeb/electron applications, languages, utils and educational s/w
User avatar
jgharston
Posts: 2658
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield

Re: Datacentre Copy ADFS Disc to USB Question

Postby jgharston » Tue May 07, 2013 8:23 pm

Update:
ADFStoUSB v0.30 now uses machine code for transfer to the USB, and reads as much disk as possible in one go, dynamically adapting to skip past dodgy sectors. It can transfer a 640K ADFS disk in about one minute.

Usage:
When run, prompts for source ADFS drive number and destination USB filename. The USB filename must be an 8.3 DOS filename, and the file is stored in the USB device's root directory, for example:
Enter ADFS drive number: 0
Enter USB filename: UTILS1.ADF
Reading
Writing
Reading
Writing
etc.
Closing
Done.

I don't have any dodgy ADFS disks, so I'd appreciate feedback from copying dodgy disks. It should display a Disk error message and skip past to a readable sector.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
daveejhitchins
Posts: 3624
Joined: Wed Jun 13, 2012 5:23 pm
Location: Newton Aycliffe, County Durham

Re: Datacentre Copy ADFS Disc to USB Question

Postby daveejhitchins » Tue May 07, 2013 9:31 pm

JG: I'll feedback ASAP. Again , many thanks.

Dave H :D

p.s The tea out now . . . not enough time to even take a sip - Mrs H's upset too :roll:
Parts: UM6502CE, GAL22V10D, GAL16V8D, AS6C62256A, TC514400AZ, WD1772, R6522, TMS27C512, AT28C256
Products: ARA II, ABR, ATI, AP6, MGC, AP5 . . .
For a price list, contact me at: Retro Hardware AT dave ej hitchins DOT plus DOT com

User avatar
darren.au
Posts: 54
Joined: Wed Jun 09, 2010 1:51 am
Location: Australia

Re: Datacentre Copy ADFS Disc to USB Question

Postby darren.au » Mon Jun 10, 2013 12:35 am

I've tried using this command too as I have a number of ADFS disks that I would like to copy over and I get an error:

USB ERROR: device Detected P2

I have no idea what this means. I've tried formatting the USB drive and using a different stick but no luck. Any help would be appreciated.

Darren.
Brrrrrrr-beep

User avatar
jgharston
Posts: 2658
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield

Re: Datacentre Copy ADFS Disc to USB Question

Postby jgharston » Mon Jun 10, 2013 10:23 am

darren.au wrote:I've tried using this command too as I have a number of ADFS disks that I would like to copy over and I get an error:
USB ERROR: device Detected P2
Try re-running the program. Sometimes the synchronisation with the USB port reads back a previous status string instead of the current status string.
It's one of those little niggles that I haven't been able to entirely remove yet. My coding in ADFStoUSB and USBFiler is subtly different to the RAMFS code somewhere and I haven't managed to work out where yet, and it happens so occasionally that it hasn't become a big enough obstacle to work out how to fix it.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
darren.au
Posts: 54
Joined: Wed Jun 09, 2010 1:51 am
Location: Australia

Re: Datacentre Copy ADFS Disc to USB Question

Postby darren.au » Mon Jun 10, 2013 11:41 pm

I've tried it a number of times but not sure whether I have tried the exact command immediately after this error so I'll try again tonight when I get home.

Cheers,
Darren.
Brrrrrrr-beep

User avatar
danielj
Posts: 5136
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester

Re: Datacentre Copy ADFS Disc to USB Question

Postby danielj » Tue Jul 16, 2013 6:58 pm

jgharston wrote:2: is fiddly. Now that I've worked out what you're trying to do. The USB "drive" in the DataCentre is only visible to *CAT, *EXPORT and *IMPORT, it doesn't work as a filing system, so you can't save/load to it. If you could, then MkImage ram::5.IMAGE.ADF disk::0 -type adfs would do it. You can copy files to the USB device using USBFiler:
CHAIN "USBFiler"
USB Filer 1.20
U>*ADFS
U>*MOUNT (whatever)
U>COPY BBC:(dirname) USB:(dirname)


JGH - USBFiler has saved my sanity. Thank you!

d.

mjf2708
Posts: 47
Joined: Sun Oct 07, 2012 8:37 am

Re: Datacentre Copy ADFS Disc to USB Question

Postby mjf2708 » Wed Jul 26, 2017 3:39 pm

jgharston wrote:You can copy files to the USB device using USBFiler:
CHAIN "USBFiler"
USB Filer 1.20
U>*ADFS
U>*MOUNT (whatever)
U>COPY BBC:(dirname) USB:(dirname)


JGH: I'm only getting v0.11 from your website, which gives 'BBC to USB not implemented'. Is this later version available?

User avatar
retroclinic
Posts: 3015
Joined: Thu Jul 03, 2008 1:22 pm
Location: East Riding of Yorkshire
Contact:

Re: Datacentre Copy ADFS Disc to USB Question

Postby retroclinic » Wed Jul 26, 2017 3:57 pm

jgharston wrote:,,,,,,The USB "drive" in the DataCentre is only visible to *CAT, *EXPORT and *IMPORT, it doesn't work as a filing system


Erm..yes it does, in part....

jgharston wrote:so you can't save/load to it.


Yes you can. It supports the OS calls that allow SAVE and LOAD, both as BASIC and *SAVE *LOAD etc. The only thing it doesn't store is the metadata, as FATxx doesn't support it.

Mark.
Image

User avatar
jgharston
Posts: 2658
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield

Re: Datacentre Copy ADFS Disc to USB Question

Postby jgharston » Sun Jul 30, 2017 6:40 pm

retroclinic wrote:
jgharston wrote:The USB "drive" in the DataCentre is only visible to *CAT, *EXPORT and *IMPORT, it doesn't work as a filing system
Erm..yes it does, in part....
jgharston wrote:so you can't save/load to it.
Yes you can. It supports the OS calls that allow SAVE and LOAD, both as BASIC and *SAVE *LOAD etc. The only thing it doesn't store is the metadata, as FATxx doesn't support it.
Brain fart. What I should have written was something like: only supports load, save, import, export, catalogue, so you can't do stuff that requires other functions, such as open (eg dump, type, copy, etc.)

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
jgharston
Posts: 2658
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield

Re: Datacentre Copy ADFS Disc to USB Question

Postby jgharston » Sun Jul 30, 2017 6:44 pm

mjf2708 wrote:
jgharston wrote:You can copy files to the USB device using USBFiler:
CHAIN "USBFiler"
USB Filer 1.20
(...)
JGH: I'm only getting v0.11 from your website, which gives 'BBC to USB not implemented'. Is this later version available?

Ah. I've just checked my server and only 0.11 is there. I certainly remember writing BBCtoUSB transfer code.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

Stewie66
Posts: 9
Joined: Sun Jan 16, 2011 2:44 am

Re: Datacentre Copy ADFS Disc to USB Question

Postby Stewie66 » Tue Aug 01, 2017 9:52 am

Hi, I’ve downloaded the USBfiler from mdfs.net and it’s downloaded with a .dms extension, However I’ve not come across this extension before so not sure what to do next

Not sure if it has to be extracted with a specific utility or loaded onto the beeb in a specefic way

Can somebody help point me in the right direction

Cheers
Stewart

User avatar
retroclinic
Posts: 3015
Joined: Thu Jul 03, 2008 1:22 pm
Location: East Riding of Yorkshire
Contact:

Re: Datacentre Copy ADFS Disc to USB Question

Postby retroclinic » Tue Aug 01, 2017 10:02 am

Basic programs on JGHs site are usually just BBC Tokenised BASIC, so drag it to the USB Stick, rename it 7 characters with no file extension, then just LOAD it from drive 5 on the DataCentre in BASIC.

Thanks, Mark.
Image

Stewie66
Posts: 9
Joined: Sun Jan 16, 2011 2:44 am

Re: Datacentre Copy ADFS Disc to USB Question

Postby Stewie66 » Tue Aug 01, 2017 1:11 pm

retroclinic wrote:Basic programs on JGHs site are usually just BBC Tokenised BASIC, so drag it to the USB Stick, rename it 7 characters with no file extension, then just LOAD it from drive 5 on the DataCentre in BASIC.

Thanks, Mark.



Thanks, up and running

Cheers
Stewart


Return to “software: other”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests