Page 1 of 2

What this feature for??

Posted: Wed May 02, 2012 3:02 pm
by nubechecorre
Playing with AOS 4.1Classic I discovered this feature. If you click on the status button of a disk, a requester appears asking if you want to lock the partition.. What does, exactly, this feature do?.. I attached a grab:

http://www.os4games.it/immagini/wb_lock.png

Re: What this feature for??

Posted: Wed May 02, 2012 4:00 pm
by OldFart
Locking a volume is making it read-only. This feature is most easily recognised when looking at a floppy disk. There you find a little device in de perimeter of the disk often bearing a legend like: "wite protected" and " write enabled".

When you lock a volume (see command C:Lock) you make a partition read-only. Windows does not have this feature for sure and that's why it is little known. Does it have a need? Is it usefull? Well, all I can say is that I have my bootpartition(s) locked, always. This keeps the partitions clean and keeps me from the hazzards of accidentally deleting or modifying any file or directory. So, to the questions: "Does it have a need?" and "Is it usefull?", I can say: "Yes!". And I sincerely hope it is supported in every upcoming filesystem and would also go so far as to endorse it to other OS es.

OldFart

Re: What this feature for??

Posted: Wed May 02, 2012 6:06 pm
by xenic
OldFart wrote: When you lock a volume (see command C:Lock) you make a partition read-only. Windows does not have this feature for sure and that's why it is little known. Does it have a need? Is it usefull? Well, all I can say is that I have my bootpartition(s) locked, always. This keeps the partitions clean and keeps me from the hazzards of accidentally deleting or modifying any file or directory. So, to the questions: "Does it have a need?" and "Is it usefull?", I can say: "Yes!". And I sincerely hope it is supported in every upcoming filesystem and would also go so far as to endorse it to other OS es.
OldFart
I keep my main boot partition and Work partition locked too. If fact I have lock/unlock menu items in my WorkBench menus and my Dopus4 menus (runs on it's own screen). Nothing writes to my system or work partitions without my permission. I have an unlocked boot partition that I boot with before running an installer program. After the installation, I use comparedirs (from OS4Depot) to check if the installer overwrote or added anything it shouldn't have. If the installation didn't do any damage, I reboot with my main partition and move the installed files to main boot partition. That may seem paranoid but there are plenty of installers on Aminet that can make undesirable changes to your system. That's one reason why some people need to reinstall OS4.1 and 4 updates to get their systems working again. I've never had to do that.

Re: What this feature for??

Posted: Wed May 02, 2012 7:28 pm
by nubechecorre
That's a very usefull option! thanks for the infos guys :-)

Re: What this feature for??

Posted: Wed May 02, 2012 7:35 pm
by chris
nubechecorre wrote:Playing with AOS 4.1Classic I discovered this feature. If you click on the status button of a disk, a requester appears asking if you want to lock the partition.. What does, exactly, this feature do?.. I attached a grab:

http://www.os4games.it/immagini/wb_lock.png
Ooooh, how long has that been there? I'd not noticed it before (of course I knew about the c:lock command but this is more convenient).

Re: What this feature for??

Posted: Wed May 02, 2012 10:45 pm
by nbache
chris wrote:Ooooh, how long has that been there? I'd not noticed it before (of course I knew about the c:lock command but this is more convenient).
Since update 4.

Best regards,

Niels

Re: What this feature for??

Posted: Wed May 02, 2012 10:58 pm
by Stephen Robinson
OldFart wrote:
When you lock a volume (see command C:Lock) you make a partition read-only. Windows does not have this feature for sure and that's why it is little known.
Suppose you could use the NTFS file permissions to make the c:\windows folder read only, I dunno how well that would work in practice like :roll:

Re: What this feature for??

Posted: Fri May 04, 2012 8:16 pm
by nbache
Stephen Robinson wrote:Suppose you could use the NTFS file permissions to make the c:\windows folder read only, I dunno how well that would work in practice like :roll:
I guess it would be a great boost of security - by keeping Windows from running!

Best regards,

Niels

Re: What this feature for??

Posted: Mon Jun 11, 2012 12:16 pm
by vox
Stephen Robinson wrote:
OldFart wrote:
When you lock a volume (see command C:Lock) you make a partition read-only. Windows does not have this feature for sure and that's why it is little known.
Suppose you could use the NTFS file permissions to make the c:\windows folder read only, I dunno how well that would work in practice like :roll:
Simple answer: NO because WIn writtes a lot during boot. System could lock or become unstable and it is hard tio get attribute change at all to whole Win folder, especially System 32 part, SAme goes for turning off s wapping even with 50% RAM free Windows would become unstable. Avoid such "problems" and enjoy Amiga,

Do rememeber to assing T: to DH1: or whenever outside the locked partition.

Re: What this feature for??

Posted: Wed Jun 13, 2012 11:38 am
by Deniil
Do rememeber to assing T: to DH1: or whenever outside the locked partition.
T: should be assigned to RAM:T/ which it is by default. Only buggy programs would require T: to be on disk.