English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 26 June 2011, 15:01   #1
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,510
WinUAE can no longer be used to prepare a CF card for a real Amiga?

Current versions of WinUAE no longer have the -disableharddrivesafetycheck option but allow to write to a drive only if there are no Windows partitions on it.

However, thumb drives and card readers are treated by Windows as removable drives. Windows Disk Management does not allow to delete partitions from those drives and DiskPart does not show these drives at all.

I don't see any other Windows built-in method to erase flash drives for use with WinUAE.

My suggestion is either to change the "block zero write attempted" requester to have a Yes / No choice so that the user has an option to write to the disk nevertheless. Or to add an option to the "Add Harddrive" window to erase the MBR from the disk.
thomas is offline  
AdSense AdSense  
Old 26 June 2011, 16:26   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,560
It has always been bad idea to write to disk if it is mounted in Windows.
Sometimes it appeared to work but nothing was actually written.

MBR/partition table must be erased, CF ejected and then re-inserted. Thats the only 100% safe way. Or use diskpart or any other utility that knows how dismount all partitions and tell Windows to re-read partition tables.
Toni Wilen is online now  
Old 26 June 2011, 16:55   #3
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,510
Quote:
MBR/partition table must be erased, CF ejected and then re-inserted. Thats the only 100% safe way.
Agreed.


Quote:
Or use diskpart
DiskPart does not show USB flash drives or card readers. That's my point.


Quote:
or any other utility that knows how dismount all partitions and tell Windows to re-read partition tables.
Can you name one that works with USB flash drives or CF card readers?

I found dd for Windows, but it's an expert's job to identify the correct drive to write to.
thomas is offline  
Old 26 June 2011, 17:23   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,560
diskpart "list disk" seems to work fine here with CF cards (USB reader) and USB sticks. (Win7 x64)
Toni Wilen is online now  
Old 26 June 2011, 17:36   #5
johnim
Amibay Mod/Staff

johnim's Avatar
 
Join Date: Jun 2010
Location: birmingham uk
Age: 41
Posts: 1,024
i use a usb multibay for my cf with win7 32 and diskpart works fine for me to. I use winuae 2.3 tho
johnim is offline  
Old 26 June 2011, 18:06   #6
FOL
PSPUAE DEV

FOL's Avatar
 
Join Date: Nov 2006
Location: Barry / UK
Age: 39
Posts: 5,532
Send a message via MSN to FOL Send a message via Skype™ to FOL
I agree, I have been experimenting with a few different types of usb devices.
Thumb, stick and reader drives. Diskpart see's all fine.
USB devices used; Sandisk 2GB sticks, Sandisk 8GB thumb drive, Orca 8 in 1 Multi Card reader, Linksys 20 in 1 Multi Card reader.

@Toni can you tell which release -disablesafetycheck was removed and what has replaced it, as this was one of my main issues with new versions.
I have to use earlier versions cause new version refuses to let me setup non rdb drive.
FOL is offline  
Old 26 June 2011, 18:15   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,560
Use diskpart's CLEAN command.

Drive must be RDB partitioned or empty. The end. Anything else isn't safe or reliable.
Toni Wilen is online now  
Old 26 June 2011, 18:16   #8
FOL
PSPUAE DEV

FOL's Avatar
 
Join Date: Nov 2006
Location: Barry / UK
Age: 39
Posts: 5,532
Send a message via MSN to FOL Send a message via Skype™ to FOL
Quote:
Originally Posted by Toni Wilen View Post
Use diskpart's CLEAN command.

Drive must be RDB partitioned or empty. The end. Anything else isn't safe or reliable.
Ah, so aslong as it has nothing on it at all, then you can use it as if you had disksafetycheck off (so to speak).
Why did it change? out of interest, cause it was nice and easy the old way.
FOL is offline  
Old 26 June 2011, 18:26   #9
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,560
Quote:
Originally Posted by FOL View Post
Ah, so aslong as it has nothing on it at all, then you can use it as if you had disksafetycheck off (so to speak).
Why did it change? out of interest, cause it was nice and easy the old way.
On some systems/Windows versions, writing to drive that Windows recognises may do any of following:

- write actually succeeds (but this can cause major issues if Windows decides to write to the drive, for example it had FAT partition that had some data in write cache) It was important to reinsert the card after RDB was written.

- write appears to succeed (ok returned) but nothing was written. This was the cause for "block zero write failed"-message, after writing to block zero (and return code was ok), it re-read same block and checked if data matched.

- error is returned

I decided to only allow safest solution = drive that is guaranteed not mounted in Windows, blank or RDB partitioned.
Toni Wilen is online now  
Old 12 September 2011, 01:07   #10
fgh
Registered User
 
Join Date: Dec 2010
Location: Norway
Posts: 576
Just to confirm: Diskpart deals with removable media under Windows Vista and 7, not XP.

On Linux you can use dd command.
On Mac OS you can use disk utility.
On Win XP you can use EaseUS Partition Master (Freeware).

Last edited by fgh; 12 September 2011 at 01:55. Reason: Found solution for WinXP
fgh is offline  
Old 12 September 2011, 10:39   #11
FOL
PSPUAE DEV

FOL's Avatar
 
Join Date: Nov 2006
Location: Barry / UK
Age: 39
Posts: 5,532
Send a message via MSN to FOL Send a message via Skype™ to FOL
Quote:
Originally Posted by fgh View Post
Just to confirm: Diskpart deals with removable media under Windows Vista and 7, not XP.

On Linux you can use dd command.
On Mac OS you can use disk utility.
On Win XP you can use EaseUS Partition Master (Freeware).
This may help (for winodws 7 atleast).

If you have a card reader, add it in WinUAE, then save the config.
Now everytime I insert a fat formatted card, WinUAE assumes its empty and lets me alter it without using diskpart.

Obviously, I only use card reader for WinUAE / Amiga. So its not a problem.
I just always got worried while using diskpart, I would check it had right partition / disk selected about 5 or 6 times.
FOL is offline  
Old 16 January 2015, 23:24   #12
ilkerg
 
Posts: n/a
thank you for all
 
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting CF card set-up as a real Amiga HD keitha1200 support.WinUAE 42 30 April 2012 20:37
Worms: The Director's Cut no longer functioning under WinUAE [2.3.0] squirminator2k support.WinUAE 13 12 October 2010 17:48
Formating a CF Card in WinUAE to Use in a real amiga paulo_becas support.WinUAE 32 02 July 2010 18:29
CF card booting in Winuae but not on real Amiga 4000 Sandman support.Hardware 1 03 July 2008 08:19
[half OT] Good news! Winamp 5.0x no longer interferes with WinUAE (fullscreen)! andreas support.WinUAE 2 22 August 2004 02:26

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 12:01.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.23579 seconds with 11 queries