English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 12 June 2008, 11:37   #1
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Creating and mounting hardfiles from amiga side

Is it possible, from within the emulated amiga, to create a hardfile of a certain size and then mount it (and unmount it), without restarting the amiga?
rare_j is offline  
Old 12 June 2008, 14:30   #2
rhester72
Registered User
 
Join Date: Feb 2008
Location: New York / USA
Posts: 360
No, because the Amiga itself does not support fixed-disk removable media. What you're suggesting is the equivalent of plugging a hard drive into the SCSI cable of a running Amiga and having AmigaDOS see the RDB without rebooting.

Rodney
rhester72 is offline  
Old 12 June 2008, 17:21   #3
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
I see.
Is it possible in winuae to mount a hardfile as removable media?
(Like on a real Amiga when you use a zip drive)
rare_j is offline  
Old 12 June 2008, 18:56   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by rare_j View Post
I see.
Is it possible in winuae to mount a hardfile as removable media?
(Like on a real Amiga when you use a zip drive)
Hardfile on the fly insertion via GUI or dragndrop isn't working yet but real removable (non PC-formatted, USB sticks, memory cards, zip disks etc..) drives mount automatically.
Toni Wilen is offline  
Old 12 June 2008, 23:08   #5
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Cool, thanks Toni.
Last question - is there a limit to the number of hardfiles I can have mounted?

Would 10 or 15 hardfiles (only little ones - each under 20 Mbyte ) be ok?
rare_j is offline  
Old 13 June 2008, 09:18   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Is it possible, from within the emulated amiga, to create a hardfile of a certain size and then mount it (and unmount it), without restarting the amiga?
You can use Diskimage or XFS or similar tools for AmigaOS to mount a HDF without the help of WinUAE.
thomas is offline  
Old 13 June 2008, 16:39   #7
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Ah, excellent, DiskImage is just perfect for the job I want to do!
Great suggestion!

You know you can create an empty hardfile with winuae, where you specify the size in Mbytes... do you know of a program on the Amiga to create a hardfile where I can specify the size in Kbytes? That would be awesome.

I see that DiskImage allows me to create a new empty hardfile with the properties of an existing device, but that's not the same.

Last edited by rare_j; 13 June 2008 at 16:40. Reason: used the wrong smiley!
rare_j is offline  
Old 13 June 2008, 17:48   #8
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by rare_j View Post
do you know of a program on the Amiga to create a hardfile where I can specify the size in Kbytes?
Code:
/* rexx */

size = 880*1024
file = "ram:test.adf"

buffsize = 32768
buffer = left("",buffsize,'00'x)

if Open(out,file,write) then do
	do while (size > buffsize)
		call WriteCh(out,buffer)
		size = size - buffsize
	end
	call WriteCh(out,left(buffer,size))
	call Close(out)
end
else
	say "cannot open output file:" file
thomas is offline  
Old 13 June 2008, 23:10   #9
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Excellent! Works perfect!



Thankyou!
rare_j 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 .hdf files from Linux side? How? Hercules support.OtherUAE 5 13 January 2020 10:48
WANTED: Amiga 1000 side expansion slot plastic cover klx300r MarketPlace 0 20 August 2012 03:10
Mounting a PC CD on an Amiga 1200 AndersHP support.Other 6 16 August 2010 12:59
program to format/copy Amiga diks/files on the PC side ? Overdoc support.Other 3 21 January 2010 18:08
Share Amiga volumes TO windows side. kokoko3k request.UAE Wishlist 0 06 July 2004 14: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 09:11.

Top

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