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

Re: Can one Mount a usb Drive read-only?



<tomas@tuxteam.de> writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Yes, you can. Try
> 
>   sudo mount -oro /dev/<your usb drive partition> /mnt
> 
> (for a more concrete example, assuming your USB drive comes up as
> /dev/sdc and has one partition, say /dev/sdc1):
> 
>   sudo mount -oro /dev/sdc1 /mnt
> 
> Now if you are using a desktop environment, it will most probably
> mount things for you... but read/write.
> 
> You can remount it read-only like so
> 
>   sudo mount -oro,remount /dev/sdc1 /mnt
> 
> Perhaps your desktop environment has some knobs to do that. Here,
> I'll have to defer to more DE knowledgeable folks here.
> 
> Cheers

Thank you.  I see the error of my ways, now.  I had tried just
about everything except -oro and that worked perfectly.

	Funny thing, it was /dev/sdc1 in this case but that was
pure coincidence.

	We normally have a stable power situation, here, but
recently we had 4 small glitches in one day plus several more
before and after that day and anything mounted rw usually needs
the fsck procedure afterward to be sure it is still any good.

	Nothing like power interruptions to make a fellow truly
paranoid.

Martin McCormick


Reply to: