What this feature for??

A forum for general AmigaOS 4.x support questions that are not platform-specific

What this feature for??

Postby nubechecorre » Wed May 02, 2012 2:02 pm

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
http://www.os4games.it

Sam440ep mini-itx

Classic System:

Amiga 1200
PowerPC 603+ 68040 25 Mhz + 256MbRam
Radeon 9250 128Mb VRam
Voodoo 3 3000 16Mb VRam
HD-Western Digital Caviar Blue 500 Gb PATA
DVD-RW LG Dual Layer
SoundBlaster PCI 128
4xEIDE Buffered Interface Elbox
Cocolino Interface Elbox
AmigaOne White Mouse
User avatar
nubechecorre
 
Posts: 57
Joined: Fri Jun 17, 2011 11:28 pm
Location: Sanremo

Re: What this feature for??

Postby OldFart » Wed May 02, 2012 3:00 pm

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
OldFart
 
Posts: 16
Joined: Tue Jul 12, 2011 2:56 pm

Re: What this feature for??

Postby xenic » Wed May 02, 2012 5:06 pm

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.
AmigaOne X1000 with 2GB memory - OS4.1u6
xenic
 
Posts: 346
Joined: Sun Jun 19, 2011 12:06 am

Re: What this feature for??

Postby nubechecorre » Wed May 02, 2012 6:28 pm

That's a very usefull option! thanks for the infos guys :-)
http://www.os4games.it

Sam440ep mini-itx

Classic System:

Amiga 1200
PowerPC 603+ 68040 25 Mhz + 256MbRam
Radeon 9250 128Mb VRam
Voodoo 3 3000 16Mb VRam
HD-Western Digital Caviar Blue 500 Gb PATA
DVD-RW LG Dual Layer
SoundBlaster PCI 128
4xEIDE Buffered Interface Elbox
Cocolino Interface Elbox
AmigaOne White Mouse
User avatar
nubechecorre
 
Posts: 57
Joined: Fri Jun 17, 2011 11:28 pm
Location: Sanremo

Re: What this feature for??

Postby chris » Wed May 02, 2012 6:35 pm

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).
chris
 
Posts: 235
Joined: Sat Jun 18, 2011 11:05 am

Re: What this feature for??

Postby nbache » Wed May 02, 2012 9:45 pm

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
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 586
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark

Re: What this feature for??

Postby Stephen Robinson » Wed May 02, 2012 9:58 pm

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:
Near at hand is your forgetting all; near, too, all forgetting you.
User avatar
Stephen Robinson
Beta Tester
Beta Tester
 
Posts: 197
Joined: Mon Jan 31, 2011 8:43 pm

Re: What this feature for??

Postby nbache » Fri May 04, 2012 7:16 pm

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
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 586
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark

Re: What this feature for??

Postby vox » Mon Jun 11, 2012 11:16 am

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.
YT channel http://www.youtube.com/user/rasvoja Roots Taking Over The World
AntiCUSA http://anticusa.wordpress.com/ blog
User avatar
vox
 
Posts: 28
Joined: Thu Jun 23, 2011 2:19 pm
Location: Belgrade Country:Serbia

Re: What this feature for??

Postby Deniil » Wed Jun 13, 2012 10:38 am

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.
Deniil
 
Posts: 94
Joined: Mon Jul 11, 2011 6:59 pm

Next

Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 2 guests