English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 22 December 2012, 19:29   #21
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Is there a way to detect if the mounted virtual floppy has an image attached?

I'm thinking along the lines of checking for volume =, that way I wouldn't need to dismount the drive and, as Thomas pointed out, save some memory.

The way I would like to do it is, Check if a drive has a volume attached, if yes, mount another drive, if no, use the available drives.

Sound feasible?
Arnie is offline  
Old 22 December 2012, 21:09   #22
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,000
That is quite tricky in a shell script. This could work:

Code:
info adf0: >t:info.out
search >nil: t:info.out "No disk present"
if not warn
  echo "no disk in adf0"
endif
thomas is offline  
Old 22 December 2012, 23:31   #23
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Quote:
Originally Posted by thomas View Post
That is quite tricky in a shell script. This could work:

Code:
info adf0: >t:info.out
search >nil: t:info.out "No disk present"
if not warn
  echo "no disk in adf0"
endif
That could work but sadly not with isomount. Works with XFS but, I can't reload an Image into file0:. So 6800

Works great with diskimage though. So 020
Arnie is offline  
Old 23 December 2012, 01:06   #24
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Updated archive post #1

Thanks Thomas
Arnie is offline  
Old 23 December 2012, 14:13   #25
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Another small update:

Added Selecting your path to ADF files on first startup.

post #1 updated

Will look into mounting Diskspare, dms & adz files...

How's it going Prowler?
Arnie is offline  
Old 23 December 2012, 20:07   #26
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by Arnie View Post
How's it going Prowler?
I thought I'd wait to see how your version polishes up and then create a DiskSpare version.

It was just an idea of mine. However, if you'd like to give it a go yourself, then I'll not steal your thunder.

I did write myself a procedure for how to extract DiskSqueeze archives of DiskSpare ADFs into a file mounted using FMSDisk.device, which I could post here if you think it might help.
prowler is offline  
Old 24 December 2012, 00:54   #27
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
To be honest I'm not getting very far with diskspare, one minute it works ok then nothing can be read.

I think I'm about done with my version, I might add an extra button to reset the user defined paths for adf's.

The A500/68000 version is going nowhere at the moment. It needs a type of diskimage.device for that CPU.

Feel free to add to mine or make a free standing one, it's for the benefit of all afterall.
Arnie is offline  
Old 24 December 2012, 01:10   #28
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Okay. I'm looking at the Ninja Gaiden II disks at the moment, with a view to fixing the graphics corruption on Level 7.

When I'm done with that (one way or the other), I'll have a go at creating a MountADF DiskSpare version.
prowler is offline  
Old 24 December 2012, 03:55   #29
UncleSpam
Registered User
 
UncleSpam's Avatar
 
Join Date: Jan 2007
Location: Burbank, CA
Posts: 161
Does anyone know why IconX has problems parsing the "IF" command, which is a resident/internal command?

I get the error:

"Must be in a command file
IF failed returncode 10"

The script works fine if run from CLI...
UncleSpam is offline  
Old 24 December 2012, 10:05   #30
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
I guess this should be in some other forum? I don't think WinUAE needs help with ADF mounting.
Toni Wilen is offline  
Old 24 December 2012, 11:11   #31
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Quote:
Originally Posted by UncleSpam View Post
Does anyone know why IconX has problems parsing the "IF" command, which is a resident/internal command?

I get the error:

"Must be in a command file
IF failed returncode 10"

The script works fine if run from CLI...
Is the script bit set? eg. RWED-S
Arnie is offline  
Old 24 December 2012, 16:37   #32
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by Toni Wilen View Post
I guess this should be in some other forum? I don't think WinUAE needs help with ADF mounting.
Thread moved to support.Other forum.
prowler is offline  
Old 24 December 2012, 19:37   #33
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
MountADF Final uploaded 24-12-12

Merry Christmas eveyrone

Arnie
Arnie is offline  
Old 24 December 2012, 19:41   #34
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Thanks, Arnie!
prowler is offline  
Old 25 December 2012, 03:58   #35
UncleSpam
Registered User
 
UncleSpam's Avatar
 
Join Date: Jan 2007
Location: Burbank, CA
Posts: 161
Quote:
Originally Posted by Arnie View Post
Is the script bit set? eg. RWED-S
Nope, same issue, even with the S bit set... not sure if it makes a difference that I only tried it in WinUAE and not my A1200 yet... I'll do that next.
UncleSpam is offline  
Old 04 January 2013, 17:06   #36
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Hey Prowler....how's it going.

I've managed to get Diskspare disks mounted, did you have any luck with DSQ?

If you haven't got round to it yet I can upload my new version here.

Arnie
Arnie is offline  
Old 04 January 2013, 20:09   #37
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Hi Arnie,

Please go ahead and upload your version. I have been very busy and have made no headway on this.

PS. I never intended to mount DSQ archives in this way. They can be extracted to ADF (standard or DiskSpare) with Toni Wilen's UAEUNP 0.8 tool, available on the WinUAE downloads page, and then mounted.
prowler is offline  
Old 04 January 2013, 20:51   #38
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
Yes, i understand, life gets in the way sometimes. I don't start back work 'till the 7th so I've had some spare time

Not tried UAEUNP 0.8 tool yet, is it easier than DSQ, does it unpack all the Diskspare disks?

Anyway here is a version 2 of MountADF that mounts AmigaDos & Diskspare (960mb)disks. Only works for 020 cpu due to diskimage not working for 68000 cpu's.

Oh, almost forgot, in keeping with real Amigas, only 4 drives can be used, AmigaDos & Diskspare share a drive, i.e If there ia Amigados disk in drive ADF0: then you need to eject the disk to mount a disk in ADS0:.

Enjoy

EDIT: Just found another file size for diskspare disks (923648), will add it in next release.

Last edited by Arnie; 14 February 2013 at 22:44.
Arnie is offline  
Old 04 January 2013, 21:18   #39
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by Arnie View Post
Anyway here is a version 2 of MountADF that mounts AmigaDos & Diskspare (960mb)disks. Only works for 020 cpu due to diskimage not working for 68000 cpu's.

Oh, almost forgot, in keeping with real Amigas, only 4 drives can be used, AmigaDos & Diskspare share a drive, i.e If there ia Amigados disk in drive ADF0: then you need to eject the disk to mount a disk in ADS0:.

Enjoy
Thanks, Arnie! I'll give it a try.

Quote:
Originally Posted by Arnie View Post
Not tried UAEUNP 0.8 tool yet, is it easier than DSQ, does it unpack all the Diskspare disks?
Yes, it's a lot easier than setting up and using DiskSqueeze, though, of course, it's a Windows command line utility. However, it unpacks all DiskSpare disks I've tested it with.

For details of how to use the tool (it can be a bit confusing), read the relevant parts of this thread: Uaeunp (26-10-10) extracts corrupted ADF from DSQ archive. (Don't worry, that particular bug is fixed in later versions. )
prowler is offline  
Old 05 January 2013, 00:41   #40
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,175
Nice tool Arnie!
lesta_smsc 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
Mounting adf file on floppy or cf card WeiXing3D support.Apps 6 17 March 2013 21:19
Mounting DMS and ADF images AndersHP support.Other 9 10 September 2010 20:18
Mounting .adf images THX1138 support.Games 4 25 June 2005 23:13
Mounting .adf in RAM lauri_t project.ClassicWB 9 30 April 2005 22:10
Mounting ADF files as disks on real amiga dkovacs support.Apps 5 08 April 2005 16:57

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 03:21.

Top

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