Write Blocker scrip...
 
Notifications
Clear all

Write Blocker script issue

11 Posts
3 Users
0 Reactions
1,214 Views
(@dreamqq)
Active Member
Joined: 11 years ago
Posts: 5
Topic starter  

I want to test the write blocker if it works or not. The /mnt/sda1 is the mount point for the write protected device.

Try to use MD5 hash function for that

md5sum /dev/sda1 (execute this before and after mounting a file system and compare the values)

You can also try to debug IO functions
1) execute "sysctl vm.block_dump=1" to enable debugging;
2) all read/write requests will be logged to the syslog ("less /var/log/syslog" or something similar to view all read/write requests made, write requests will look like "WRITE block 821424 on dm-1 (8 sectors)");
3) execute "sysctl vm.block_dump=0" to disable debugging.

Thank you very much thefuf for all the help. Truly I can't thank you enough.


   
ReplyQuote
Page 2 / 2
Share: