Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #197743
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Can one Mount a usb Drive read-only? |
| Date | 2018-07-17 22:00 +0200 |
| Message-ID | <wcEiB-47I-3@gated-at.bofh.it> (permalink) |
| References | <wcE8V-44t-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jul 17, 2018 at 02:44:02PM -0500, Martin McCormick wrote: > The reason to do this is to protect data on thumb drives full of > archives. > > When searching for information, most of the discussion > was from people who had root file systems which had been > corrupted so the mount process mounted them read-only. > > In this case, all is well and the drives being mounted > contain archives which one doesn't want to lose so mounting them > as read-only would be a good way to protect them. 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 - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAltOSSQACgkQBcgs9XrR2kab+gCZAelUxR3R2+Lgj7C3WJCAoZjm PJwAmwQh+2gEpFqqIGQhzovP25zQApi9 =funo -----END PGP SIGNATURE-----
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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