Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #197742 > unrolled thread
| Started by | "Martin McCormick" <martin.m@suddenlink.net> |
|---|---|
| First post | 2018-07-17 21:50 +0200 |
| Last post | 2018-07-17 22:10 +0200 |
| Articles | 11 — 6 participants |
Back to article view | Back to linux.debian.user
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
| From | "Martin McCormick" <martin.m@suddenlink.net> |
|---|---|
| Date | 2018-07-17 21:50 +0200 |
| Subject | Can one Mount a usb Drive read-only? |
| Message-ID | <wcE8V-44t-3@gated-at.bofh.it> |
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. Thank you. Martin McCormick
[toc] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-07-17 22:00 +0200 |
| Message-ID | <wcEiB-47I-3@gated-at.bofh.it> |
| In reply to | #197742 |
-----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-----
[toc] | [prev] | [next] | [standalone]
| From | "Martin McCormick" <martin.m@suddenlink.net> |
|---|---|
| Date | 2018-07-17 23:50 +0200 |
| Message-ID | <wcG13-5co-1@gated-at.bofh.it> |
| In reply to | #197743 |
<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
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-07-18 09:00 +0200 |
| Message-ID | <wcOBj-290-11@gated-at.bofh.it> |
| In reply to | #197747 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jul 17, 2018 at 04:46:59PM -0500, Martin McCormick wrote: > <tomas@tuxteam.de> writes: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Yes, you can. Try [...] > Thank you. I see the error of my ways, now. I had tried just > about everything except -oro and that worked perfectly. Glad it helped... > Funny thing, it was /dev/sdc1 in this case but that was > pure coincidence. Magic powers... crystall ball... ;-P > 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. Heh. You're in good company [1] (if you allow me to tweak the context a bit -- but don't take it too seriously). Cheers [1] https://hardwaresecurity.training/trainings/chipwhisperer-fall-2017/ - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAltO4xoACgkQBcgs9XrR2kaKugCfZbnE/dFjpeX7j1SfXHwKSw1t nHUAnAtro1SY/ceczd7BlzjypOpkau20 =1bMf -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2018-07-18 21:00 +0200 |
| Message-ID | <wcZQ6-rJ-3@gated-at.bofh.it> |
| In reply to | #197747 |
Martin McCormick wrote: ... > 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. i've never regretted buying a small UPS to ride out power glitches and it gives me enough time to shut down the system safely. we get enough power flickers that it's probably saved me a lot of issues over the years since. well worth the $80 i spent. songbird
[toc] | [prev] | [next] | [standalone]
| From | Brad Rogers <brad@fineby.me.uk> |
|---|---|
| Date | 2018-07-18 21:20 +0200 |
| Message-ID | <wd09r-Nn-7@gated-at.bofh.it> |
| In reply to | #197778 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, 18 Jul 2018 09:47:31 -0400
songbird <songbird@anthive.com> wrote:
Hello songbird,
> we get enough power flickers that it's probably saved
>me a lot of issues over the years since. well worth the
>$80 i spent.
Agreed, *well* worth the spend.
During stormy weather, in the exposed rural area I live in, power can go
off several times an hour. Although it's rarely longer than a few
seconds at a time, it's enough to forcibly shut down computers, and
would be rather annoying if said computer were to be shut down *again*
whilst still trying to recover the journal after the previous outage.
--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"
We are the League, we are the anti band
We're The League - Anti-Nowhere League
[toc] | [prev] | [next] | [standalone]
| From | Cindy-Sue Causey <butterflybytes@gmail.com> |
|---|---|
| Date | 2018-07-18 21:40 +0200 |
| Message-ID | <wd0sN-Tl-1@gated-at.bofh.it> |
| In reply to | #197779 |
On 7/18/18, Brad Rogers <brad@fineby.me.uk> wrote: > On Wed, 18 Jul 2018 09:47:31 -0400 > songbird <songbird@anthive.com> wrote: > >> we get enough power flickers that it's probably saved >>me a lot of issues over the years since. well worth the >>$80 i spent. > > Agreed, *well* worth the spend. > > During stormy weather, in the exposed rural area I live in, power can go > off several times an hour. Although it's rarely longer than a few > seconds at a time, it's enough to forcibly shut down computers, and > would be rather annoying if said computer were to be shut down *again* > whilst still trying to recover the journal after the previous outage. I'm glad I waited a few seconds instead of responding immediately to songbird's input. This is a purchase on my own to-do that I occasionally even remember is needed.. What you said there about power going on and off a few times within minutes.. That killed a forgotten something once a LONG time ago. I think it was that it [borked] the code so badly that I had to reinstall... or something. I don't remember hardware getting fried, just [code]. Maybe it was even "that other" operating system or something, i.e. not Linux. ? :) Whatever it was that happened, I now tell my BIOS to NO, DO *NOT* keep trying to come back up if a power failure completely shuts it down at some point. That's from having seen the lights and thus power flicker on and off some 4, 5, 6, 7 times within a 2 or 3 minute timespan. My memory is yelling that I've possibly even heard the computer grunting and groaning while trying to keep up with that outside interference. Cindy :) -- Cindy-Sue Causey Talking Rock, Pickens County, Georgia, USA * runs with duct tape *
[toc] | [prev] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2018-07-20 06:40 +0200 |
| Message-ID | <wdvmV-2Ed-7@gated-at.bofh.it> |
| In reply to | #197780 |
Cindy-Sue Causey wrote: ... > Whatever it was that happened, I now tell my BIOS to NO, DO *NOT* keep > trying to come back up if a power failure completely shuts it down at > some point. That's from having seen the lights and thus power flicker > on and off some 4, 5, 6, 7 times within a 2 or 3 minute timespan. My > memory is yelling that I've possibly even heard the computer grunting > and groaning while trying to keep up with that outside interference. yep, no need to make things even worse. :) songbird
[toc] | [prev] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2018-07-20 06:50 +0200 |
| Message-ID | <wdvwB-2Hz-3@gated-at.bofh.it> |
| In reply to | #197779 |
Brad Rogers wrote: ... > During stormy weather, in the exposed rural area I live in, power can go > off several times an hour. Although it's rarely longer than a few > seconds at a time, it's enough to forcibly shut down computers, and > would be rather annoying if said computer were to be shut down *again* > whilst still trying to recover the journal after the previous outage. i always turn off the automatic reboot. i don't want a system playing yoyo during power fluctuations. when i shut it down i want it off. i also turn off any wake-on-[x] things. songbird
[toc] | [prev] | [next] | [standalone]
| From | Brad Rogers <brad@fineby.me.uk> |
|---|---|
| Date | 2018-07-20 07:40 +0200 |
| Message-ID | <wdwj0-3eh-3@gated-at.bofh.it> |
| In reply to | #197823 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, 20 Jul 2018 00:20:02 -0400
songbird <songbird@anthive.com> wrote:
Hello songbird,
> i always turn off the automatic reboot. i don't want
If this machine had that option, so would I. Meaning; once powered
down it requires user interaction to restart, it doesn't automatically
reboot after power is restored. BIOS doesn't allow for it.
--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"
It's the age of destruction, in a world of corruption
Neuromancer - Billy Idol
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2018-07-17 22:10 +0200 |
| Message-ID | <wcEsh-4qo-9@gated-at.bofh.it> |
| In reply to | #197742 |
On 7/17/2018 9:44 PM, 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. > I would use the '-r' or '-o ro' option to the mount command. https://linux.die.net/man/8/mount -- John Doe
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web