English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 15 January 2017, 21:12   #21
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,518
Looks perfect

Perrhaps there should be automatic "delayed" locking, if drive is read-write mounted and writing returns error: check if drive has mounted partitions (also probably best to abort if NTFS partitions found), if found, automatically lock&dismount them and retry operation.
Toni Wilen is offline  
AdSense AdSense  
Old 15 January 2017, 21:27   #22
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
The current "lock at startup" behaviour already looks perfect for normal usage. I don't think that delayed locking would improve any real-world scenario.
BlankVector is offline  
Old 15 January 2017, 22:49   #23
fgh
Registered User
 
Join Date: Dec 2010
Location: Norway
Posts: 576
Can we now prep devices with FAT partitions in winuae without removing partitions first?

If you don't want them locked permanently, perhaps you could unlock them when emulation is paused?
fgh is offline  
Old 16 January 2017, 08:54   #24
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,518
Quote:
Originally Posted by fgh View Post
Can we now prep devices with FAT partitions in winuae without removing partitions first?
I think so. I am not yet sure what to do if drive has NTFS partitions, currently it prevents locking but perhaps some big warning dialog is good enough. (You can't lock drive that has open handles or system files anyway)

Quote:
If you don't want them locked permanently, perhaps you could unlock them when emulation is paused?
That can cause confusing errors. For example pausing (including entering GUI) when emulation has partially formatted some important MBR or FAT block = Windows may show error dialogs to user when it attempts to remount (now) damaged FAT partition.
Toni Wilen is offline  
Old 16 January 2017, 13:26   #25
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 2,976
Yes, that sounds like it's filled with unintended side-effects.
idrougge is offline  
Old 16 January 2017, 20:55   #26
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
By thinking twice, you should lock all partitions when WinUAE is running, not only FAT ones. That would ensure that no one will write to the disk when it is mounted in WinUAE. Including if someone runs (willingly or not) a second instance of WinUAE with the same settings.
BlankVector is offline  
Old 16 January 2017, 21:20   #27
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,518
I won't allow non-FAT partition locking that easily, I probably refuse to lock any partitions if drive has one or more NTFS partitions. I don't trust users to not do something that should not be done..
Toni Wilen is offline  
Old 16 January 2017, 21:28   #28
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
Now I understand: you fear that the user trashes his Windows partitions by mistake with WinUAE, right?

There are actually 2 different notions:

1) Mounting
Of course, it's up to you to decide which drives are allowed to be mounted in WinUAE.

2) Locking
But when you have decided to mount a disk in WinUAE, you should always lock all partitions. By locking, you ensure that no one will mess your data from outside. Also, locking prevents you to use (and mess) a drive which is already mounted somewhere else (i.e. Windows filesystem).
BlankVector is offline  
Old 16 January 2017, 21:35   #29
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,518
Quote:
Originally Posted by BlankVector View Post
Now I understand: you fear that the user trashes his Windows partitions by mistake with WinUAE, right?
That.

Quote:
But when you have decided to mount a disk in WinUAE, you should always lock all partitions. By locking, you ensure that no one will mess your data from outside. Also, locking prevents you to use (and mess) a drive which is already mounted somewhere else (i.e. Windows filesystem).
Locking has nothing to do with this.

When harddrive (or hardfile) is opened, open parameters include share mode (which tells what other processes can do with this "file"). If hdf/drive is opened read-only: allow other read-only openers to open it. If opened read-write: no one else can open it (returns sharing violation error).
Toni Wilen is offline  
Old 29 January 2017, 20:26   #30
BlankVector
Registered User
 
Join Date: Jun 2012
Location: Paris, France
Posts: 148
Strangely, WinUAE can access the FAT16 partition of my CompactFlash/USB drive without Administrator privileges. Maybe a strange Windows rule about removable drives.

On the other hand, my second partition formatted as ext2 is only accessible with Administrator privileges.

Not a big issue, as I can easily always run WinUAE with Administrator privileges, but somehow inconsistent.
BlankVector is offline  
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
IDE Hard Disk drive installation alphagemini Hardware mods 46 02 June 2014 07:24
issues with ide hard drive hydravox support.Hardware 7 20 May 2013 11:14
Hard Drive Crashes Amiga on Write (SFS) Mnemesi support.Hardware 6 04 March 2012 19:47
Is the Hard Drive Read/Write flag supposed to do anything? :) rhester72 support.WinUAE 1 29 September 2011 20:54
IDE hard drive probs Smiley support.Hardware 12 08 May 2006 15:56

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:45.


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