English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 09 August 2009, 02:05   #1
olesio
Registered User
 
Join Date: Apr 2007
Location: Poland
Posts: 337
Strange hdf behavior [not really a problem].

Hello. I make following hdf as DH0: Device in WinUAE 1.1 which format disk inserted as
DH2: and copy all files from DH1: to DH2: This helps me make bootable hdf in easy way.
My startup-sequence file looks like below: Polish text are no matter beacuse there are a
messages for me, but I wonder why 5 MB hdf created in this way contain a following text
at offset 280714 (hex). Is it RequestString fault? This really do not disturb me in anything,
but I wondet why this text is stored on hdf when is it not copied in any way by me. Also I
chceck the same data on formated disk and copied under notmal Workbench version 3.1
and at the same place in hdf file there are 0 (hex) bytes. And sorry for my bad english
Btw, the text below in english mean "Give name (volume label) for formated disk DH2:".
I discovered this text when I search text "olesio" in hdf file for Soccer Kid AGA because I
want to check did game store highscore anywhere with my nickname on exit from game.

Code:
by olesio" "Podaj nazwe dla formatowanego dysku DH2:"
My startup-sequence
Code:
assign ENV: RAM:
assign T: RAM:

setenv AppTitle "HDF Creator by olesio"
setenv EmptyStr "!aN! !eMPTy! !STRiNG!"

cls
noborder on

if NOT EXISTS DH1:
run >nil: CentreQuest CX_PRIORITY=1 AUTOQUIT=NO CENTRE=SCREEN TEST=NO
setenv Choice `RequestChoice "$AppTitle" "Nie znaleziono dysku DH1:*NTeraz nastapi reboot." OK`
If $Choice eq "0"
EndIf 
reboot
EndIf

setenv HddLabel "$EmptyStr"
setenv HddLabel `RequestString "$AppTitle" "Podaj nazwe dla formatowanego dysku DH2:"`
if "$HddLabel" eq "$EmptyStr"
run >nil: CentreQuest CX_PRIORITY=1 AUTOQUIT=NO CENTRE=SCREEN TEST=NO
setenv Choice `RequestChoice "$AppTitle" "Nie podano nazwy dla dysku DH2:*NTeraz nastapi reboot." OK`
EndIf
If $Choice eq "0"
reboot
EndIf 

Format Device=DH2: Name="$HddLabel" FFS NOICONS
copy DH1: DH2: ALL

run >nil: CentreQuest CX_PRIORITY=1 AUTOQUIT=NO CENTRE=SCREEN TEST=NO
setenv Choice `RequestChoice "$AppTitle" "Dysk zostal utworzony." OK`

Last edited by olesio; 09 August 2009 at 02:11.
olesio is offline  
Old 12 August 2009, 08:29   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,545
Perhaps editor you used created some temporary backup files or something like that.
Toni Wilen is offline  
Old 12 August 2009, 15:35   #3
olesio
Registered User
 
Join Date: Apr 2007
Location: Poland
Posts: 337
Hmmm editor? But what editor you mean? Is this which I used to make startup-sequence?
I created startup-sequence in FAR Editor under Windows and copied files on hdf in DH0:.
olesio is offline  
Old 12 August 2009, 17:52   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,021
It's rather a buffer which is not cleared before being used.

For example if you try out this command:

RequestString "$AppTitle" "Podaj nazwe dla formatowanego dysku DH2:"

The shell probably allocated a small piece of memory to resolve the variable and to store the real command in it:

RequestString "HDF Creator by olesio" "Podaj nazwe dla formatowanego dysku DH2:"

After this has finished, another program (for example copy) stores a file on HDD and the file system allocates memory as buffers. Buffers are always in block size (512 bytes) but may not be entirely used, if the file is smaller. So if only the first 27 bytes of the memory area is used for the file and the rest is kept unused, then when the block is written do disk the text by olesio" "Podaj nazwe dla formatowanego dysku DH2:" which remained in the buffer is written to disk, too, although it is not used ever again.
thomas is offline  
Old 13 August 2009, 08:34   #5
olesio
Registered User
 
Join Date: Apr 2007
Location: Poland
Posts: 337
Ok, thanks for answer.
olesio is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very strange SFS behavior. Thorham support.Apps 26 17 October 2009 15:04
HDF Problem with WinUAE Steve support.WinUAE 24 01 July 2009 08:52
discovered strange behavior NfernalNfluence support.WinUAE 7 26 May 2009 08:10
hdf ndos problem flibble42 support.WinUAE 12 21 September 2008 02:03
Strange behavior in A4000 Computolio support.Hardware 8 22 September 2007 12:39

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14115 seconds with 13 queries