English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 14 May 2010, 13:36   #1
Maccara
The Spanish Songstress
 
Join Date: Jul 2009
Location: Finland
Posts: 114
v2.1.0 VHD RDB non-writable

Hi,

First of all, I would like to know if someone else has run into this issue before I delve too much deeper into this, and if I'm doing something wrong.

I have a strange issue when I create a dynamic volume, where WUAE needs to be QUIT and have the configuration saved, or the dynamic disk will become write protected.

Steps I can produce this in:
1. Quickstart A500+ (KS 2.04 + WB 2.04 Install disk)
2. click "Set configuration"
3. Go to hardfiles tab and CREATE f.e. 20MB dynamic hardfile
4. "Enable RDB"
5. Start

With HDToolbox, any changes to HD partitionin etc + save results in "Error 28".

Now:
1. SAVE a temp configuration
2. QUIT WUAE
3. start wuae & load the config
4. Start

Now everything works with HDToolbox (partitioning) and then formatting etc.

If I next hit the restart button in wuae and load a A500 quickstart (KS 1.3 + WB1.3) and add the just prepared hardfile, it is write protected in WB1.3.

I can fix this again by saving the configuration and completely quitting wuae.

Noteworthy is that I absolutely need to save the configuration and use that after restarting. If I just quit and try to add the hardfiles again, they're write protected.

I don't have this problem with non-dynamic hardfiles. Didn't try this in earlier versions of winuae (yet, at least), so I have no idea if this is a new or old issue.

My system may definitely affect this, as I'm running WinXP x64. However, it seems like it might be some dangling filehandles in wuae, but I haven't debugged this further at all yet.

(dynamic hardfiles work in other (virtualization) apps so it is not a general problem of the tech on this OS)

Edit:
Configs added:
- "Not Working.uae" -> immediately saved after A500 quickstart, which did not work
- "Working.uae" -> immediately saved after quitting and loading "Not Working", this works.
- As you can see, there's no difference
- Logs of the same "sessions"

Edit2: I can replicate this on WB 3.1 also (A1200 basic non-expanded quickstart configuration)
Attached Files
File Type: uae Not Working.uae (20.5 KB, 192 views)
File Type: uae Working.uae (20.7 KB, 183 views)
File Type: txt notwork_winuaebootlog.txt (18.8 KB, 221 views)
File Type: txt notwork_winuaelog.txt (9.0 KB, 209 views)
File Type: txt working_winuaebootlog.txt (18.2 KB, 203 views)
File Type: txt working_winuaelog.txt (8.8 KB, 202 views)

Last edited by Maccara; 14 May 2010 at 14:13.
Maccara is offline  
Old 14 May 2010, 14:29   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,999
I can confirm that VHD files are mounted as write protected, no matter if R/W switch is checked or not.

The same VHD file works fine when mounted under Windows using VHDMount and added to WinUAE using Add Harddrive.
thomas is online now  
Old 14 May 2010, 17:40   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
It was caused by unrelated transparent archive support handle leak, VHD is internally considered "an archive" (VHD is a container that contains a HDF), parent handle was leaked in this case.

VHD is opened as "an archive" to view first 8 bytes of data in HDF GUI. Fully automagic this way
Toni Wilen is offline  
Old 15 May 2010, 08:07   #4
Maccara
The Spanish Songstress
 
Join Date: Jul 2009
Location: Finland
Posts: 114
Thanks for looking into this!

Quote:
Originally Posted by Toni Wilen View Post
VHD is opened as "an archive" to view first 8 bytes of data in HDF GUI. Fully automagic this way
Ha! That's a neat trick to do it.

Quote:
Originally Posted by Toni Wilen View Post
It was caused by unrelated transparent archive support handle leak, VHD is internally considered "an archive" (VHD is a container that contains a HDF), parent handle was leaked in this case.
So that was it? And here I was thinking I was going nuts... Looking back at my bug report with fresh eyes/mind, I could've been much more clear & concise what actually works/doesn't - glad you figured it out without needing to elaborate.

Sounds like simple fix then? I'll try that again in some future version (not a terribly important feature for me at the moment and I hear next beta is not too far away anyway ).
Maccara 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
E-UAE RDB HD File Washac support.OtherUAE 0 22 February 2012 18:52
Compacting vhd hardfiles hrmes support.WinUAE 7 19 October 2010 19:42
vhd physical vs. logical size thomas support.WinUAE 2 19 August 2010 16:44
Use .vhd extension for new dynamic HDFs. thomas request.UAE Wishlist 8 29 July 2010 17:49
RDB-Salv vandam request.Apps 9 19 July 2006 15:06

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 20:32.

Top

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