Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197747

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

From "Martin McCormick" <martin.m@suddenlink.net>
Newsgroups linux.debian.user
Subject Re: Can one Mount a usb Drive read-only?
Date 2018-07-17 23:50 +0200
Message-ID <wcG13-5co-1@gated-at.bofh.it> (permalink)
References <wcE8V-44t-3@gated-at.bofh.it> <wcEiB-47I-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


<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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can one Mount a usb Drive read-only? "Martin McCormick" <martin.m@suddenlink.net> - 2018-07-17 21:50 +0200
  Re: Can one Mount a usb Drive read-only? <tomas@tuxteam.de> - 2018-07-17 22:00 +0200
    Re: Can one Mount a usb Drive read-only? "Martin McCormick" <martin.m@suddenlink.net> - 2018-07-17 23:50 +0200
      Re: Can one Mount a usb Drive read-only? <tomas@tuxteam.de> - 2018-07-18 09:00 +0200
      Re: Can one Mount a usb Drive read-only? songbird <songbird@anthive.com> - 2018-07-18 21:00 +0200
        Re: Can one Mount a usb Drive read-only? Brad Rogers <brad@fineby.me.uk> - 2018-07-18 21:20 +0200
          Re: Can one Mount a usb Drive read-only? Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-07-18 21:40 +0200
            Re: Can one Mount a usb Drive read-only? songbird <songbird@anthive.com> - 2018-07-20 06:40 +0200
          Re: Can one Mount a usb Drive read-only? songbird <songbird@anthive.com> - 2018-07-20 06:50 +0200
            Re: Can one Mount a usb Drive read-only? Brad Rogers <brad@fineby.me.uk> - 2018-07-20 07:40 +0200
  Re: Can one Mount a usb Drive read-only? john doe <johndoe65534@mail.com> - 2018-07-17 22:10 +0200

csiph-web