[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Write protect access on USB port

 <berenger.morel <at> neutralite.org> writes:

> You can enable read-only on partitions by using the "ro" flag in fstab.
> By example:
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc	/proc	proc	defaults	0	0
> #Entry for /dev/sda6 :
> UUID=85bb1632-546f-460f-8cc7-5b15fd2c046b	/	ext4	noatime,errors=remount-ro	0	1
> Here, / will be mounted with read-only if there were errors. I guess 
> that if you just remove the "errors=" it will be ro everytime.
> Hope it helps.

Thanks for the reply. I was looking for block level write protect. That
is, nobody can write a simple C program and use the open call and write
garbage to the device.

Reply to: