Is it possible to mount an entire disk device read only?
Oliver Grawert
ogra at ubuntu.com
Mon Sep 7 07:58:52 UTC 2015
hi,
Am Sonntag, den 06.09.2015, 23:19 +0100 schrieb Colin Watson:
> On Sun, Sep 06, 2015 at 05:59:13PM +1000, Karl Auer wrote:
> > While looking at another poster's issue I started wondering whether it
> > is possible to attach an entire hard disk drive in read-only mode.
> > Mounting a partition read-only is easy, but I'm not talking about
> > partitions here - I mean the entire drive.
> >
> > That is, can I have a read-only /dev/sdb?
>
> (Disclaimer: some of the following is from reading kernel code and I
> haven't actually tried it on a whole disk device.)
>
> "blockdev --setro" is a useful tool that makes a block device read-only.
there is also "hdparm -r" ;)
ciao
oli
More information about the ubuntu-users
mailing list