English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. Scripting (http://eab.abime.net/forumdisplay.php?f=117)
-   -   DiskSalv 1.42 Bug with Format at same drive (http://eab.abime.net/showthread.php?t=103613)

Starfox 18 August 2020 10:01

DiskSalv 1.42 Bug with Format at same drive
 
2 Attachment(s)
Good morning,


at the moment i write a Workaround for Disksalv 1.42 and the additional FORMAT Option.


Problem is that Disksalv gives an Error when Disksalv is at the same drive as the Source disk


Ex.: "Disksalv df0: df1: FORMAT" and Disksalv is stored at the same Source like DF0: in this case.


Then there is an Error "Replace Volume xy" can´t find Formatter and Disk-Validator.


If i choose "Disksalv df1: df2: FORMAT" and Disksalv ist stored on DF0: it works.


Now i would like to copy Disksalv at startup to RAM:


I´ve written this but Disksalv didn´t find Disk-Validator (don´t know why).


Code:

mount pipe:
makedir ram:l ; Creates the L Directory on Ram Disk

echo "Copy stuff to Ramdisk"
copy df0:disksalv ram:disksalv
copy df0:l/Disk-Validator ram:l/Disk-Validator
copy df0:format ram:format

cd ram:
disksalv df0: df1: FORMAT


Any Ideas ?

Starfox 18 August 2020 14:00

I have solved it with:


Code:

assign l: ram:l

but disksalv can´t find "format" stored in ram: same folder as disksalv is.


i start disksalv with ram:disksalv df0: df1: FORMAT

Starfox 18 August 2020 15:26

Hmmm

Format didn´t work on command line.

Do Format need any other Files to work on a blank Floppy ?

Starfox 18 August 2020 19:26

Update.

I have coded a little bit this afternoon.

It´s not a Problem of Format itself it´s a Problem how Disksalv find Format.

What i need is assign format from Ram Disk to Disksalv but how i do this ?

With Disk-Validator it work´s with
Code:

assign l: ram:l
But how to assign format stored in Ram:format ?

I´v tried
Code:

assign c: ram:format
because Disksalv searches also in c: for format, but this creates an Error from Disksalv itself "DISK FAIL: Trouble formatting, select action ?"

Starfox 21 August 2020 11:39

2 Attachment(s)
Who want´s here´s my complete working code for Workbench 1.3 (Kick 1.3) Systems

What you need are following Files on a Floppy disk:

Directorys: L, C, DEVS and S for Startup-Sequence

ROOT Directory (attached File to this Thread):
ds
ds2
disksalv (Version 1.42 only)

From Workbench 1.3:

C: Directory:
c:makedir
c:copy
c:execute
c:format
c:run
c:cd
c:dir
c:assign
c:delete
c:echo
c:if
c:else
c:endif
c:ask
c:lab
c:skip
c:setenv
c:wait

L: Directory:
l: Disk-Validator
l:Ram-Handler

DEVS Directory:
devs:ramdrive.device

S: Directory:
s: your own startup-sequence
with the line execute "df0:ds"

or from command line only execute ds

Attached Files Disksalv.zip contains ds (copys Disksalv to Ram and Start the Programm) ds2 (the Script itself) and the original Disksalv 1.42

I have already attached a ready to Boot ADF contained in Repair-Tool.zip

** There is a warning after you have choosen Formating Disk with (y/n) to replace the Disk. This is normal and came from Disksalv itself. Click on Cancel !

If there is a bug or you have an enhancment feel free to Post it here


All times are GMT +2. The time now is 02:11.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.04394 seconds with 11 queries