Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: "Andrew M.A. Cater" Newsgroups: linux.debian.user Subject: Re: Lock tab on SD card? Date: Sun, 19 Sep 2021 14:00:01 +0200 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Sun Sep 19 11:59:16 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.3 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/780864 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/YUcmBMIfYAdYaqTv@einval.com Approved: robomod@news.nic.it Lines: 39 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 19 Sep 2021 11:59:00 +0000 X-Original-Message-ID: X-Original-References: <20210918172826.2309.qmail@rahul.net> <20210918190614.jdyuich3ofkyze4q@randomstring.org> Xref: csiph.com linux.debian.user:240145 On Sat, Sep 18, 2021 at 03:06:14PM -0400, Dan Ritter wrote: > John Conover wrote: > > > > Mounting an SD card with the lock tab enabled mounts as read only. > > > > But can Linux still write to the SD card, under any circumstances? > > Under *any* circumstances? Yes. > > Those circumstances include: > > - a broken lock position sensor on the SD card reader > > - the SD card is actually a microSD card in an adaptor; moving > it to a microSD reader or a different adaptor will work > > - the reader has been altered away from spec > > - the lock tab is moved > > Note that Linux needs to remount a read-only filesystem to make > it read-write. > > Now, what is the problem you are actually trying to solve? > > -dsr- > I'll agree with all Dan has written: there's also the real annoyance and difficulty that it is small and hard to see and invariably gets locked when you least expect it and you're trying to work out why you can't copy a file to an SD card to make it bootable :) if you're worried about "Can Linux override a physical switch" - the answer is no, in general terms. All the very best, as ever, Andy Cater