Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

On a clear disk you can seek forever.


computers / comp.sys.raspberry-pi / Re: Labeling micro-SD cards ?

SubjectAuthor
* Labeling micro-SD cards ?R.Wieser
+* Re: Labeling micro-SD cards ?nev young
|+* Re: Labeling micro-SD cards ?R.Wieser
||`- Re: Labeling micro-SD cards ?nev young
|+- Re: Labeling micro-SD cards ?R.Wieser
|`- Re: Labeling micro-SD cards ?Dave
+- Re: Labeling micro-SD cards ?JJenssen
+* Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
|`- Re: Labeling micro-SD cards ?R.Wieser
+* Re: Labeling micro-SD cards ?R.Wieser
|+* Re: Labeling micro-SD cards ?Jan Panteltje
||`* Re: Labeling micro-SD cards ?R.Wieser
|| `* Re: Labeling micro-SD cards ?Jan Panteltje
||  +- Re: Labeling micro-SD cards ?Jan Panteltje
||  `* Re: Labeling micro-SD cards ?R.Wieser
||   `* Re: Labeling micro-SD cards ?mm0fmf
||    +* Re: Labeling micro-SD cards ?A. Dumas
||    |`* Re: Labeling micro-SD cards ?mm0fmf
||    | `- Re: Labeling micro-SD cards ?R.Wieser
||    `* Re: Labeling micro-SD cards ?Pancho
||     +* Re: Labeling micro-SD cards ?The Natural Philosopher
||     |`- Re: Labeling micro-SD cards ?Pancho
||     `* Re: Labeling micro-SD cards ?mm0fmf
||      `* Re: Labeling micro-SD cards ?Pancho
||       `- Re: Labeling micro-SD cards ?mm0fmf
|`* Re: Labeling micro-SD cards ?Jeff Jonas
| `* Re: Labeling micro-SD cards ?R.Wieser
|  `* Re: Labeling micro-SD cards ?Jan Panteltje
|   `* Re: Labeling micro-SD cards ?R.Wieser
|    +- Re: Labeling micro-SD cards ?The Natural Philosopher
|    +- Re: Labeling micro-SD cards ?Jan Panteltje
|    `* Re: Labeling micro-SD cards ?Chris
|     `* Re: Labeling micro-SD cards ?R.Wieser
|      +* Re: Labeling micro-SD cards ?Theo
|      |`* Re: Labeling micro-SD cards ?R.Wieser
|      | +* Re: Labeling micro-SD cards ?Theo
|      | |`* Re: Labeling micro-SD cards ?R.Wieser
|      | | +- Re: Labeling micro-SD cards ?The Natural Philosopher
|      | | `* Re: Labeling micro-SD cards ?Jim Jackson
|      | |  +- Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
|      | |  `- Re: Labeling micro-SD cards ?The Natural Philosopher
|      | `* Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  +- Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
|      |  +* Re: Labeling micro-SD cards ?R.Wieser
|      |  |+* Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  ||`* Re: Labeling micro-SD cards ?R.Wieser
|      |  || `* Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  ||  `* Re: Labeling micro-SD cards ?R.Wieser
|      |  ||   `* Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  ||    `* Re: Labeling micro-SD cards ?R.Wieser
|      |  ||     `* Re: Labeling micro-SD cards ?Chris Elvidge
|      |  ||      +- Re: Labeling micro-SD cards ?Chris Elvidge
|      |  ||      `* Re: Labeling micro-SD cards ?R.Wieser
|      |  ||       +- Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  ||       `* Re: Labeling micro-SD cards ?Chris Elvidge
|      |  ||        `- Re: Labeling micro-SD cards ?NY
|      |  |`* Re: Labeling micro-SD cards ?Jan Panteltje
|      |  | +* Re: Labeling micro-SD cards ?R.Wieser
|      |  | |`* Re: Labeling micro-SD cards ?Jan Panteltje
|      |  | | +* Re: Labeling micro-SD cards ?R.Wieser
|      |  | | |+- Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
|      |  | | |`* Re: Labeling micro-SD cards ?Jan Panteltje
|      |  | | | `- Re: Labeling micro-SD cards ?R.Wieser
|      |  | | `- Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  | `* Re: Labeling micro-SD cards ?Martin Gregorie
|      |  |  `* Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  |   `* Re: Labeling micro-SD cards ?Theo
|      |  |    `- Re: Labeling micro-SD cards ?The Natural Philosopher
|      |  `- Re: Labeling micro-SD cards ?Andrew Smallshaw
|      `- Re: Labeling micro-SD cards ?The Natural Philosopher
+* Re: Labeling micro-SD cards ?Ian
|+- Re: Labeling micro-SD cards ?Ian
|`* Re: Labeling micro-SD cards ?R.Wieser
| +- Re: Labeling micro-SD cards ?Ian
| +* Re: Labeling micro-SD cards ?Ian
| |`* Re: Labeling micro-SD cards ?Theo
| | `* Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
| |  `- Re: Labeling micro-SD cards ?The Natural Philosopher
| `- Re: Labeling micro-SD cards ?bob prohaska
+- Re: Labeling micro-SD cards ?Thomas Kempkes
+* Re: Labeling micro-SD cards ?The Natural Philosopher
|`* Re: Labeling micro-SD cards ?Ahem A Rivet's Shot
| `* Re: Labeling micro-SD cards ?Richard Harnden
|  `- Re: Labeling micro-SD cards ?Martin Gregorie
+- Re: Labeling micro-SD cards ?nospam
+* Re: Labeling micro-SD cards ?Computer Nerd Kev
|`* Re: Labeling micro-SD cards ?R.Wieser
| `* Re: Labeling micro-SD cards ?Dennis Lee Bieber
|  `* Re: Labeling micro-SD cards ?R.Wieser
|   +* Re: Labeling micro-SD cards ?Martin Gregorie
|   |`* Re: Labeling micro-SD cards ?R.Wieser
|   | `* Re: Labeling micro-SD cards ?Martin Gregorie
|   |  `* Re: Labeling micro-SD cards ?R.Wieser
|   |   `- Re: Labeling micro-SD cards ?Martin Gregorie
|   `* Re: Labeling micro-SD cards ?David Higton
|    `- Re: Labeling micro-SD cards ?Jim Jackson
+* Re: Labeling micro-SD cards ?scott
|`- Re: Labeling micro-SD cards ?A. Dumas
+- Re: Labeling micro-SD cards ?Andrew Smallshaw
+- Re: Labeling micro-SD cards ?Clive Reuben
+* Re: Labeling micro-SD cards ?Othello
`* Re: Labeling micro-SD cards ?Binaries

Pages:12345
Re: Labeling micro-SD cards ?

<20221025161026.eed519cda977c6ab14eb7e4a@eircom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6080&group=comp.sys.raspberry-pi#6080

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Tue, 25 Oct 2022 16:10:26 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20221025161026.eed519cda977c6ab14eb7e4a@eircom.net>
References: <tiis1u$15dm$1@gioia.aioe.org>
<tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com>
<tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me>
<tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org>
<XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org>
<tj8q9q$20m9q$9@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="3bcda641e2b706504d6c97c7c486e8e5";
logging-data="2165016"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/vQQYxRzwkhjgLlClUm9zkskzMFcqhb8="
Cancel-Lock: sha1:h+y4VvfG3nOR6f3JUWKaMSQpoWE=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
 by: Ahem A Rivet's - Tue, 25 Oct 2022 15:10 UTC

On Tue, 25 Oct 2022 15:02:34 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> This is all superstructure though - as root you can mount a drive
> partition any damn where you please, even to the point of screwing up
> your machine if e.g. you decide to mount it over /bin!!!!

Much more subtle fun is to be had by mounting something over /tmp
on a running system - there will usually be processes with files open on
the masked filesystem which can cause no end of confusion.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: Labeling micro-SD cards ?

<tj97vi$242na$3@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6081&group=comp.sys.raspberry-pi#6081

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Tue, 25 Oct 2022 18:56:02 +0100
Organization: A little, after lunch
Lines: 18
Message-ID: <tj97vi$242na$3@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <YBw*AIF1y@news.chiark.greenend.org.uk>
<tj8ud0$1qqr$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Oct 2022 17:56:02 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="873f92ef92ccc8b11d1cee23867ee8b5";
logging-data="2231018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DBiKJ+B8I831HKDJWfEGidgvIe0Xw6xk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:+qTp2bq2rrFqdhChediguNXtBlU=
In-Reply-To: <tj8ud0$1qqr$1@gioia.aioe.org>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 25 Oct 2022 17:56 UTC

On 25/10/2022 16:15, R.Wieser wrote:

>
> So, either unmount or flush. I had hoped to hear (for sure) that under
> raspberian the "eject" would automatically unmount first. The less stuff
> you have to remember the better.
Eject is equivalent to unmount on any device that doesnt have a physical
eject mechanism

--
"A point of view can be a dangerous luxury when substituted for insight
and understanding".

Marshall McLuhan

Re: Labeling micro-SD cards ?

<tj9e8k$1m6g$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6082&group=comp.sys.raspberry-pi#6082

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Tue, 25 Oct 2022 21:45:38 +0200
Organization: Aioe.org NNTP Server
Lines: 30
Message-ID: <tj9e8k$1m6g$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="55504"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Response
X-Notice: Filtered by postfilter v. 0.9.2
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
 by: R.Wieser - Tue, 25 Oct 2022 19:45 UTC

TNP,

>> And a question : do you know wat happens [snip]
>
> umount /mnt

Yes, thats what theo already said. I was asking about what happens when you
forget to do so.

> /mnt may or may not be created by default - I think /media/<username> is
> often used to mount removable drives at least on my desktop linux

Both can ofcourse be checked.

On my RPi :
/mnt is present and seems to be empty.
When I inserted an USB adapter for a second uSD card it was mounted on
/media/pi

Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
/media/pi

dmseg was suggesting to do e2... something (I assume an chkdisk equivalent)
on sda7, and now that partition isn't auto-mounted anymore. Oh well, I
didn't pick that card for nothing. :-)

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tj9far$2614g$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6083&group=comp.sys.raspberry-pi#6083

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Tue, 25 Oct 2022 21:01:31 +0100
Organization: A little, after lunch
Lines: 51
Message-ID: <tj9far$2614g$2@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Oct 2022 20:01:31 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="873f92ef92ccc8b11d1cee23867ee8b5";
logging-data="2294928"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yODuIdHmd0cOwnsaSo8Zp3mcpkqw7tD0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:/IWXysuTamRG9RGqenLNZQuZKYI=
In-Reply-To: <tj9e8k$1m6g$1@gioia.aioe.org>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 25 Oct 2022 20:01 UTC

On 25/10/2022 20:45, R.Wieser wrote:
> TNP,
>
>>> And a question : do you know wat happens [snip]
>>
>> umount /mnt
>
> Yes, thats what theo already said. I was asking about what happens when you
> forget to do so.
>
Well unless yuou pull the live card out of its socket, nothing.
If you IMMEDIASTELY pull it out, and you are writing to it, it may get
corrupetd. But mostly the cards get data flushed to them quickly, so
provided its idle, it may end up needin an fsck, bu thats all.

>> /mnt may or may not be created by default - I think /media/<username> is
>> often used to mount removable drives at least on my desktop linux
>
> Both can ofcourse be checked.
>
> On my RPi :
> /mnt is present and seems to be empty.
> When I inserted an USB adapter for a second uSD card it was mounted on
> /media/pi
>
that is because it was mounted by pi the user not root.

> Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
> /media/pi
>
should be able to

> dmseg was suggesting to do e2... something (I assume an chkdisk equivalent)
> on sda7, and now that partition isn't auto-mounted anymore. Oh well, I
> didn't pick that card for nothing. :-)
>
e2fsck?
Means the partition is not internally consistent

> Regards,
> Rudy Wieser
>
>

--
“It is dangerous to be right in matters on which the established
authorities are wrong.”

― Voltaire, The Age of Louis XIV

Re: Labeling micro-SD cards ?

<tjah5k$2d9eg$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6084&group=comp.sys.raspberry-pi#6084

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pNaonStp...@yahoo.com (Jan Panteltje)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 05:37:22 GMT
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <tjah5k$2d9eg$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 05:39:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b1a990b7e75862b8767d3126394d278a";
logging-data="2532816"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qBXVJavFsEWjlwNXaoteAPM6+fa8+Jv4="
User-Agent: NewsFleX-1.5.7.5 (Linux-2.6.37.6)
Cancel-Lock: sha1:SiJQLVc19f9DPGTCGU2tqvlCcOI=
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.com/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
 by: Jan Panteltje - Wed, 26 Oct 2022 05:37 UTC

On a sunny day (Tue, 25 Oct 2022 21:45:38 +0200) it happened "R.Wieser"
<address@not.available> wrote in <tj9e8k$1m6g$1@gioia.aioe.org>:

>TNP,
>
>>> And a question : do you know wat happens [snip]
>>
>> umount /mnt
>
>Yes, thats what theo already said. I was asking about what happens when you
>forget to do so.
>
>> /mnt may or may not be created by default - I think /media/<username> is
>> often used to mount removable drives at least on my desktop linux
>
>Both can ofcourse be checked.
>
>On my RPi :
>/mnt is present and seems to be empty.
>When I inserted an USB adapter for a second uSD card it was mounted on
>/media/pi
>
>Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
>/media/pi
>
>dmseg was suggesting to do e2... something (I assume an chkdisk equivalent)
>on sda7, and now that partition isn't auto-mounted anymore. Oh well, I
>didn't pick that card for nothing. :-)

What I always do is:
if dmesg shows say sdb2
mkdir /mnt/sdb2
mount /dev/sdb2 /mnt/sdb2
cd /mnt/sdb2 to view whts there

This seems to be common practice and never caues problems
when finsished with that partition do
umount /dev/sdb2

But I am always root, maybe be pees need to sudo
;-)

Re: Labeling micro-SD cards ?

<tjambm$sjc$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6085&group=comp.sys.raspberry-pi#6085

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 08:41:50 +0200
Organization: Aioe.org NNTP Server
Lines: 53
Message-ID: <tjambm$sjc$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="29292"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Wed, 26 Oct 2022 06:41 UTC

TNP,

> Well unless yuou pull the live card out of its socket, nothing.

Again, not the question. Imagine the following : I insert an USB adapter
with an uSD card, off of which two partitions get auto-mounted. Than I
open a console and manually mount a third. What happens when I click the
"eject" button (at the top right-ish of the screen) ? Does the manually
mounted partition get unmounted first too ? Or do I need to manually
unmount it first (which would be a problem just waiting to happen) ?

>> On my RPi :
>> /mnt is present and seems to be empty.
>> When I inserted an USB adapter for a second uSD card it was mounted on
>> /media/pi
>>
> that is because it was mounted by pi the user not root.

In that case, how do I mount a partition as myself, the user "pi" ? The
last time I forgot to prepend "sudo" before "mount" I got the reply "mount:
only root can do that".

>> Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
>> /media/pi
>>
> should be able to

Hmm... I just retried it (double checking) and indeed the partition
appeared there. I have no idea what, or even /if/ I did anything different.
:-|

> e2fsck?

Yep, thats the one.

> Means the partition is not internally consistent

That is what I guessed from that message (and the errors shown below it in
dmesg) too. What I didn't expect that it would be running for half an hour
and, in the end, throwing the towel in the ring leaving me with an trashed
partition / unusable installation.

Currently I can't even manually mount the partition anymore. :-(

One other question : Automount creates, before mounting the partition, a
folder with with a name ("boot", "root") it probably gets from the
to-be-mounted partition itself. Do you have any idea how I can retrieve the
same (so I can take a swing at creating a simple bash script for it) ?

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjambn$sjc$2@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6086&group=comp.sys.raspberry-pi#6086

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 09:09:53 +0200
Organization: Aioe.org NNTP Server
Lines: 34
Message-ID: <tjambn$sjc$2@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="29292"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
 by: R.Wieser - Wed, 26 Oct 2022 07:09 UTC

Jan,

> What I always do is:
> if dmesg shows say sdb2
> mkdir /mnt/sdb2
> mount /dev/sdb2 /mnt/sdb2
> cd /mnt/sdb2 to view whts there
>
> This seems to be common practice and never caues problems
> when finsished with that partition do
> umount /dev/sdb2

:-)

I was just asking NTP the question how I can extract the name of the
to-be-mounted partition from the partition itself (mimicking what automount
does). But if that can't be done that one is a good second-placer.

.... wait, now I think of it, the to-be-mounted partitions ID is unique,
while a partitions name doesn't need to be. Hmmm... There is perhaps
something to be said for that "common practice". :-)

I just decided that I dislike the way I have to first create a directory to
be able to mount a partition on it, and after unmounting having to remove
that directory again. I've just taken a peek at the man pages for both
mount and unmount, but have not been able to spot anything which automates
it. Have I overlooked something ?

Or perhaps a better question : can I invoke automount in some way for it ?

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjaqq6$2e8ih$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6087&group=comp.sys.raspberry-pi#6087

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pNaonStp...@yahoo.com (Jan Panteltje)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 08:21:44 GMT
Organization: A noiseless patient Spider
Lines: 110
Message-ID: <tjaqq6$2e8ih$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me> <tjambn$sjc$2@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 08:23:34 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5178dcefb75c2ea405fb5e538066b7a7";
logging-data="2564689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/S5RzQwjvpJSlY5rfljCebWImjM+eF4QM="
User-Agent: NewsFleX-1.5.7.5 (Linux-2.6.37.6)
Cancel-Lock: sha1:EDAysyuhYRI/y5PCskNNaU95aCI=
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.com/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
 by: Jan Panteltje - Wed, 26 Oct 2022 08:21 UTC

On a sunny day (Wed, 26 Oct 2022 09:09:53 +0200) it happened "R.Wieser"
<address@not.available> wrote in <tjambn$sjc$2@gioia.aioe.org>:

>Jan,
>
>> What I always do is:
>> if dmesg shows say sdb2
>> mkdir /mnt/sdb2
>> mount /dev/sdb2 /mnt/sdb2
>> cd /mnt/sdb2 to view whts there
>>
>> This seems to be common practice and never caues problems
>> when finsished with that partition do
>> umount /dev/sdb2
>
>:-)
>
>I was just asking NTP the question how I can extract the name of the
>to-be-mounted partition from the partition itself (mimicking what automount
>does). But if that can't be done that one is a good second-placer.
>
>... wait, now I think of it, the to-be-mounted partitions ID is unique,
>while a partitions name doesn't need to be. Hmmm... There is perhaps
>something to be said for that "common practice". :-)
>
>I just decided that I dislike the way I have to first create a directory to
>be able to mount a partition on it, and after unmounting having to remove
>that directory again.

If you created /mnt/sdb2 or something like that,
no need to remove it after unmounting (I have a whole range on this laptop for example...

ls -rtl /mnt
drwxr-xr-x 2 root root 48 Jan 17 2012 sda6/
drwxr-xr-x 2 root root 48 Jan 17 2012 sda4/
drwxr-xr-x 2 root root 48 Jan 17 2012 iso/
drwxr-xr-x 2 root root 48 Jan 20 2012 sdc8/
drwxr-xr-x 2 root root 48 Jan 29 2012 sdd1/
drwxr-xr-x 5 root root 104 Feb 15 2012 sda7/
drwxr-xr-x 2 root root 48 Jun 12 2012 sdc/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc7/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc6/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc5/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc4/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc3/
drwxr-xr-x 2 root root 48 Jun 16 2012 sdc2/
drwxr-xr-x 2 root root 48 Jul 27 2012 pantel9/
drwxr-xr-x 2 root root 48 Jul 27 2012 pantel10/
drwxr-xr-x 2 root root 48 Jul 27 2012 pantel11/
drwxr-xr-x 2 root root 48 Jul 27 2012 pantel12/
drwxr-xr-x 5 root root 168 Mar 18 2013 sda8/
drwxr-xr-x 2 root root 48 Apr 12 2013 sda11/
drwxr-xr-x 2 root root 48 Feb 26 2014 loop/
drwxr-xr-x 2 root root 48 May 17 2016 sdd2/
drwxr-xr-x 26 root root 776 Jun 7 2016 sda3/
drwxr-xr-x 2 root root 48 Oct 9 2016 sdd8/
drwxr-xr-x 5 root root 1072 Dec 8 2018 sda9/
drwxr-xr-x 2 root root 48 Oct 16 2019 sdb1/
drwxr-xr-x 5 root root 216 Oct 18 2019 sda5/
drwxr-xr-x 2 root root 48 Nov 23 2019 sda10/
drwxr-xr-x 2 root root 48 Jun 19 2020 sdd4/
drwxr-xr-x 2 root root 48 Jun 19 2020 sdd5/
drwxr-xr-x 2 root root 48 Jun 19 2020 sdd6/
drwxr-xr-x 2 root root 48 Jun 19 2020 sdd7/
drwxr-xr-x 2 root root 48 Jun 19 2020 sdd3/
drwxr-xr-x 3 root root 72 Feb 7 2022 sda2/
drwxr-xr-x 2 root root 48 Mar 10 2022 sdc1/

ls -rtl shows last one used last, often saves looking through a list.
I have specified that in bash and zsh (a better shell) as just 'l'
in .bashrc
alias l='ls -rtl'
alias d='ls'
alias lb='ls -rtl --color=none'

Just saves typing...
Using zsh as shell even saves more typing.

The '/mnt/loop' is an other story, used to mount OS images.
mount -o loop=/dev/loop0 bluray.iso /mnt/loop
looks at a DVD

Or to get more into that
mount -o offset=62914560 /dev/dvd /mnt/dvd
####mount -o loop,ro,offset=62914560 /dev/dvd /mnt/dvd
Offset in bytes, for example 512 * sector size indicated as start for that partition in fdisk,
or found with
partx -a /mnt/dvd/raspberry_pi_plus_wolfram_language_plus_mathematica.img

There are so many tricks...

At least the command line speaks (sort of) English,
much better than pushing around on a rat or mouse or whatever.

>I've just taken a peek at the man pages for both
>mount and unmount, but have not been able to spot anything which automates
>it. Have I overlooked something ?
>
>Or perhaps a better question : can I invoke automount in some way for it ?

Using automount was dis-encouraged for security reasons last time I heard about it.
People would find an USB stick in the parking lot of the company,
plug it in, it auto-mounted and installed some virus that send all company data
to some adversary.

I never use automount.

Re: Labeling micro-SD cards ?

<slrntlhv3c.3bf.jj@iridium.wf32df>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6088&group=comp.sys.raspberry-pi#6088

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jj...@franjam.org.uk (Jim Jackson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 09:22:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <slrntlhv3c.3bf.jj@iridium.wf32df>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <YBw*AIF1y@news.chiark.greenend.org.uk>
<tj8ud0$1qqr$1@gioia.aioe.org>
Injection-Date: Wed, 26 Oct 2022 09:22:53 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="995b343f2653438c41d22bd19f9086d5";
logging-data="2571533"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YZigfeqklZdGOf3na6g4jvAZwiUC07kQ="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:xkDlxv3CLYqhQs/6hjMUIxKrdj4=
 by: Jim Jackson - Wed, 26 Oct 2022 09:22 UTC

On 2022-10-25, R.Wieser <address@not.available> wrote:
> Theo,
>
>>> And I read somewhere I had to create that "mnt" directory first ?
>>> You do not seem to do so.
>>
>> Most distros already have an empty /mnt directory there, ready for
>> something to be mounted.
>
> Ah. Understood.
>
>>> And a question : do you know wat happens when you (try to) eject the
>>> USB dongle containing the uSD card you just mounted a partition of ?
> ...
>> If you use the desktop environment 'eject' button, it may or may not
>> remove the mountpoints.
>
> Thats currently what I know too. "it may or may not". :-)
>
>> If in doubt, 'sync' to ensure anything unwritten is flushed to the disc
>> before removing it.
>
> So, either unmount or flush.

No ALWAYS unmount the file system. The "sync" flush is an extra step. As
far as I know "umount" does what sync does before it unmounts the
filesystem anyway.

> I had hoped to hear (for sure) that under
> raspberian the "eject" would automatically unmount first. The less stuff
> you have to remember the better.
>
>> In the above it's done as root, and a regular user won't be able
>> to unmount something mounted by root, so the eject complains
>> something is still using the device.
>
> I had not considered that. Hmm... Not being able to eject some removable
> USB stick "root" forgot to take with him. Oh well. I guess nothing a
> shutdown won't solve. :-)
>
> Regards,
> Rudy Wieser
>
>

Re: Labeling micro-SD cards ?

<tjav5n$110f$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6089&group=comp.sys.raspberry-pi#6089

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:40:25 +0200
Organization: Aioe.org NNTP Server
Lines: 40
Message-ID: <tjav5n$110f$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me> <tjambn$sjc$2@gioia.aioe.org> <tjaqq6$2e8ih$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="33807"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-MSMail-Priority: Normal
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 26 Oct 2022 09:40 UTC

Jan,

> If you created /mnt/sdb2 or something like that,
> no need to remove it after unmounting

I also considered that, but would not like to have all those empty folders
there.

> ls -rtl shows last one used last, often saves looking through a list.

.... Though that would certainly help finding the mounted partition back (I
was also thinking about that).

> There are so many tricks...
>
> At least the command line speaks (sort of) English,
> much better than pushing around on a rat or mouse or whatever.

Have you ever tried to play an FPS game *without* pushing a dead opossum
around ? :-p

(Not that I'm a gamer myself mind you).

> Using automount was dis-encouraged for security reasons last
> time I heard about it.

It came as part of my RPi OS installation, and I don't mind at all.

> People would find an USB stick in the parking lot of the company,
> plug it in, it auto-mounted and installed some virus that send all
> company data to some adversary.

There is a reason why my RPi is, apart from when needed for a particular
experiment, allways offline. Though in my case I considered the threat to
possibly come from the other direction.

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjb0oa$2em3v$3@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6090&group=comp.sys.raspberry-pi#6090

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:04:58 +0100
Organization: A little, after lunch
Lines: 69
Message-ID: <tjb0oa$2em3v$3@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me>
<tjambn$sjc$2@gioia.aioe.org> <tjaqq6$2e8ih$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 10:04:58 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dd81c0ee958bd76fa32ea6b2691b9e8e";
logging-data="2578559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TplCFRvvORhGebZ6OxvMVjyX1LsWdEKw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:Y46Bb+39mAEYy+FZMiYk2yBPULU=
In-Reply-To: <tjaqq6$2e8ih$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Oct 2022 10:04 UTC

On 26/10/2022 09:21, Jan Panteltje wrote:
> People would find an USB stick in the parking lot of the company,
> plug it in, it auto-mounted and installed some virus that send all company data
> to some adversary.
>
> I never use automount.

That is autorun.

Automount just makes the file system available.

As I said. to fix the root partition on an SD card you cant obviously
boot from it,
so you need to boot from something else, and then attach the offending
card via a card reader.

Its less easy to do this in windows so its best dine on a pi if you dont
have a linux desktop

All you need is a working SD card and an sd cared reader to plug into
the USB port on the Pi.
That will automagically register itself as probably three devices in the
/dev pseudo 'filesystem'
One will be the whole card itself, which is useful when formatting it,
and the other two will be the partitions normally created on a Pi card.
I dont know what they will be called tho.

Under a *86 linux they would be /dev/sd[a,b,c][blank, 0,1.2]

On the actual pi slot reader itself they are /dev/mmcblk01[p1,p2]

So the USB card reader might be either of those. /dev/sd* or /dev/mmcblk02*
So the step is to boot from a clean card and plug te dodgy card in a
reader into the PI USB port and then see what's in /dev

Dmsg might help

For instance, my Pi went down in a power cut and rebooted when tthe
power came on. This is what dmesg said :

[ 2.255688] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 2.270238] mmcblk0: p1 p2
[ 2.298428] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly
filesystem
[ 2.308659] EXT4-fs (mmcblk0p2): write access will be enabled during
recovery
[ 2.326898] mmc1: new high speed SDIO card at address 0001
[ 2.866154] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 2.875202] EXT4-fs (mmcblk0p2): 1 orphan inode deleted
[ 2.883136] EXT4-fs (mmcblk0p2): recovery complete
[ 2.935135] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data
mode. Opts: (null)
[ 2.948608] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.970171] devtmpfs: mounted

Card was slightly inconsistent, so it fixed it with e2fsck and then
mounted it

--
“It is not the truth of Marxism that explains the willingness of
intellectuals to believe it, but the power that it confers on
intellectuals, in their attempts to control the world. And since...it is
futile to reason someone out of a thing that he was not reasoned into,
we can conclude that Marxism owes its remarkable power to survive every
criticism to the fact that it is not a truth-directed but a
power-directed system of thought.”
Sir Roger Scruton

Re: Labeling micro-SD cards ?

<tjb0v0$2em3v$5@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6091&group=comp.sys.raspberry-pi#6091

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:08:32 +0100
Organization: A little, after lunch
Lines: 131
Message-ID: <tjb0v0$2em3v$5@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me>
<tjambm$sjc$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 10:08:32 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dd81c0ee958bd76fa32ea6b2691b9e8e";
logging-data="2578559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AE56x2LJtTq3HSCYUiVe/1CXuJvP6zpQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:2bilHJp9f1lDDPqKniYoL+gb11o=
Content-Language: en-GB
In-Reply-To: <tjambm$sjc$1@gioia.aioe.org>
 by: The Natural Philosop - Wed, 26 Oct 2022 10:08 UTC

On 26/10/2022 07:41, R.Wieser wrote:
>> e2fsck?
> Yep, thats the one.
>
>> Means the partition is not internally consistent
> That is what I guessed from that message (and the errors shown below it in
> dmesg) too. What I didn't expect that it would be running for half an hour
> and, in the end, throwing the towel in the ring leaving me with an trashed
> partition / unusable installation.
>
> Currently I can't even manually mount the partition anymore. 🙁
>
No, that's part of the spec, mount will not mount a partition it
considers corrupt. Most *nixes will perform an fsck during boot and
before mounting to check and repair this.

Ive only ever had it render a disk completely unbootable, and that was
when it was running these checks when the power went out, again....

> One other question : Automount creates, before mounting the partition, a
> folder with with a name ("boot", "root") it probably gets from the
> to-be-mounted partition itself.

No, it doesn't

These folders are created on the root partition itself as part of the
installation.
Basically the boot process from memory will run some code that it finds
on a specific part of the boot device, install a kernel in memory, and
that kernel will first and foremostly mount not the partition called
'root' but a compete root filesystem, on /
That filesystem on a PI has the two 'folders' - root and boot. IIRC the
boot sectors on the disk are then remounted on /boot. /root is I think
(not sure here) merely root's 'home directory'

On my Pi its empty.

My pi reports that '/dev/root' is the name of the partition it mounts as
'/' but
it doesnt create that - its merely convention

This is the command file for what partitions are automatically mounted

$ more /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=e12508fd-01 /boot vfat defaults 0 2
PARTUUID=e12508fd-02 / ext4 defaults,noatime 0 1

The root partitions will be mapped to a *device* /dev/root but that
does not actually exist.

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 2.0G 12G 14% /
devtmpfs 213M 0 213M 0% /dev
tmpfs 217M 0 217M 0% /dev/shm
tmpfs 217M 20M 198M 9% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 217M 0 217M 0% /sys/fs/cgroup
/dev/mmcblk0p1 44M 23M 21M 52% /boot

however the device mounted on boot DOES exists

A better way to understand what's mounted using fstab is to use the
'mount' command e,g,
$ mount | grep /dev/mm
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
/dev/mmcblk0p1 on /boot type vfat
(rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)

Here you can see the raw partitons that are turned into block devices in
/dev as mmcblk0p1 and mmcblk0p2 are mounted on / and /boot

$ ls -l /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 1 Oct 5 11:17 /dev/mmcblk0p1

As do all the other partitions on the SD card.

ls -l /dev/mmcblk*
brw-rw---- 1 root disk 179, 0 Oct 5 11:17 /dev/mmcblk0
brw-rw---- 1 root disk 179, 1 Oct 5 11:17 /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 2 Oct 5 11:17 /dev/mmcblk0p2

So, these are the actual partitions I would need to rub e2fsck on but of
course if its the root partition you need it to be able to run anything
at all.
Hence why you need to have an SD card reader attached to another working
setup.

And that card reader will NOT appear as /dev/mmcblk0 but might appear as
/dev/mmcblk1

I don't know. I've run off my sphere of competence
As I say I am not sure exactly whats going on, but if yu have a
corrupted card, stick it in a usb card reader in a working pi and do an
ls -l /dev/mm* and see if you can spot any partitions that you can run
e2fsck on

Do you have any idea how I can retrieve the
> same (so I can take a swing at creating a simple bash script for it) ?
>
> Regards,
> Rudy Wieser
>
>
I am not 100% clear on what exactly is your situation, but at some level
you need enough of a working system to run e2fsck on whatever partition
you have that is wonky.

And yes, it may take hours on a Pi. On a big partition.

If you have (another?) working Pi you could equip it with a USB SDcard
reader, and boot from a clean install, then run e2fsck from that on the
dodgy card in the reader

I do not know what in fact that partition would be called.

--
Any fool can believe in principles - and most of them do!

Re: Labeling micro-SD cards ?

<20221026113006.56c39cd3260a65ce5a3ae159@eircom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6092&group=comp.sys.raspberry-pi#6092

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:30:06 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20221026113006.56c39cd3260a65ce5a3ae159@eircom.net>
References: <tiis1u$15dm$1@gioia.aioe.org>
<tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com>
<tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me>
<tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org>
<XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org>
<YBw*AIF1y@news.chiark.greenend.org.uk>
<tj8ud0$1qqr$1@gioia.aioe.org>
<slrntlhv3c.3bf.jj@iridium.wf32df>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="3ad1384fc1bd58b7761d3aa2a9e2f276";
logging-data="2589079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dVih06VKN1kvoKTupT1I5eZZoHMpe1pU="
Cancel-Lock: sha1:tCv5AvtodsKd5Ly1xUTEYrxedEg=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
 by: Ahem A Rivet's - Wed, 26 Oct 2022 10:30 UTC

On Wed, 26 Oct 2022 09:22:53 -0000 (UTC)
Jim Jackson <jj@franjam.org.uk> wrote:

> No ALWAYS unmount the file system. The "sync" flush is an extra step. As
> far as I know "umount" does what sync does before it unmounts the
> filesystem anyway.

Correct - and a flush does not guarantee that there will be no
fresh dirty pages pile up while it's going on or between the flush and the
pull while an unmount *first* makes the filesystem unavailable to the OS,
then flushes the buffers and finally returns to the user.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: Labeling micro-SD cards ?

<20221026113222.b0d66719a7a053d750cf786f@eircom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6093&group=comp.sys.raspberry-pi#6093

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:32:22 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <20221026113222.b0d66719a7a053d750cf786f@eircom.net>
References: <tiis1u$15dm$1@gioia.aioe.org>
<tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com>
<tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me>
<tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org>
<XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org>
<tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org>
<tjah5k$2d9eg$1@dont-email.me>
<tjambn$sjc$2@gioia.aioe.org>
<tjaqq6$2e8ih$1@dont-email.me>
<tjav5n$110f$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="3ad1384fc1bd58b7761d3aa2a9e2f276";
logging-data="2589079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VPUzTBHDyH99Wf7RMAEVUDBMdsd97m3o="
Cancel-Lock: sha1:e0dvv0xH9gsuwU9uV9uBFSYpY8U=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Wed, 26 Oct 2022 10:32 UTC

On Wed, 26 Oct 2022 11:40:25 +0200
"R.Wieser" <address@not.available> wrote:

> Have you ever tried to play an FPS game *without* pushing a dead opossum
> around ? :-p

"The Golden Shot" springs to mind - "right, right, left a bit, up a
bit, FIRE!".

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: Labeling micro-SD cards ?

<tjb4rc$2f0v7$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6094&group=comp.sys.raspberry-pi#6094

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mar...@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:14:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <tjb4rc$2f0v7$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 11:14:52 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="04f194166a2fe5ed0a393308d2e686ec";
logging-data="2589671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aRdNhjc3CdwpZF72axWqwKcCToVjnaeo="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:rG+GdNsvgIux5kzQsGAtGMj0ioI=
 by: Martin Gregorie - Wed, 26 Oct 2022 11:14 UTC

On Wed, 26 Oct 2022 05:37:22 GMT, Jan Panteltje wrote:

> On a sunny day (Tue, 25 Oct 2022 21:45:38 +0200) it happened "R.Wieser"
> <address@not.available> wrote in <tj9e8k$1m6g$1@gioia.aioe.org>:
>
>>TNP,
>>
>>>> And a question : do you know wat happens [snip]
>>>
>>> umount /mnt
>>
>>Yes, thats what theo already said. I was asking about what happens when
>>you forget to do so.
>>
>>> /mnt may or may not be created by default - I think /media/<username>
>>> is often used to mount removable drives at least on my desktop linux
>>
>>Both can ofcourse be checked.
>>
>>On my RPi :
>>/mnt is present and seems to be empty.
>>When I inserted an USB adapter for a second uSD card it was mounted on
>>/media/pi
>>
>>Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
>>/media/pi
>>
>>dmseg was suggesting to do e2... something (I assume an chkdisk
>>equivalent) on sda7, and now that partition isn't auto-mounted anymore.
>>Oh well, I didn't pick that card for nothing. :-)
>
> What I always do is:
> if dmesg shows say sdb2 mkdir /mnt/sdb2 mount /dev/sdb2 /mnt/sdb2 cd
> /mnt/sdb2 to view whts there
>
$ df -h

works well if you just want to see what storage devices are mounted, their
sizes and free space.

--

Martin | martin at
Gregorie | gregorie dot org

Re: Labeling micro-SD cards ?

<tjb5tk$2f5hf$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6095&group=comp.sys.raspberry-pi#6095

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pNaonStp...@yahoo.com (Jan Panteltje)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 11:31:26 GMT
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <tjb5tk$2f5hf$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me> <tjambn$sjc$2@gioia.aioe.org> <tjaqq6$2e8ih$1@dont-email.me>
<tjav5n$110f$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 11:33:08 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="be1164d5264d38b8aa2a9f60184f0c31";
logging-data="2594351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zg5/ueSRExP5y3RfM3anxt+S5+EMfE/I="
User-Agent: NewsFleX-1.5.7.5 (Linux-2.6.37.6)
Cancel-Lock: sha1:TaRNPS+zCHWzDvGztloqMr5X33M=
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.com/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
 by: Jan Panteltje - Wed, 26 Oct 2022 11:31 UTC

On a sunny day (Wed, 26 Oct 2022 11:40:25 +0200) it happened "R.Wieser"
<address@not.available> wrote in <tjav5n$110f$1@gioia.aioe.org>:

>Jan,
>
>> If you created /mnt/sdb2 or something like that,
>> no need to remove it after unmounting
>
>I also considered that, but would not like to have all those empty folders
>there.
>
>> ls -rtl shows last one used last, often saves looking through a list.
>
>... Though that would certainly help finding the mounted partition back (I
>was also thinking about that).
>
>> There are so many tricks...
>>
>> At least the command line speaks (sort of) English,
>> much better than pushing around on a rat or mouse or whatever.
>
>Have you ever tried to play an FPS game *without* pushing a dead opossum
>around ? :-p

Opossum :-) no I am no gamer, do not even know what FPS game is..
Writing code and designing electronics is more fun of a game for me
I do have xmajong or something, and had a chess game on the laptop
but after I did beat the local champion in chess last century and he got really upset
I have not played chess anymore, he accused me of strange moves well
what do you expect from a beginner..

>(Not that I'm a gamer myself mind you).
>
>> Using automount was dis-encouraged for security reasons last
>> time I heard about it.
>
>It came as part of my RPi OS installation, and I don't mind at all.
>
>> People would find an USB stick in the parking lot of the company,
>> plug it in, it auto-mounted and installed some virus that send all
>> company data to some adversary.
>
>There is a reason why my RPi is, apart from when needed for a particular
>experiment, allways offline. Though in my case I considered the threat to
>possibly come from the other direction.

One RP4 4G is offline and recording security cameras and playing background music,
logging radiation and temperature and air presure from my weather station,
does GPS for time and more.

The other PI4 8 GB runs Chromium and Firefox browsers and uses a Huawei 4G stick for net connection
and is configured as a router.
So this laptop running NewsFleX Usenet reader connects to the net via that one.
Both Pi 4 have a 4 TB or there about Toshiba USB harddisks, RTL_SDR 1ppm sticks
for radio spectrum analyzer, etc.
IR camera
Anyways,
http://panteltje.com/panteltje/newsflex/download.htm
http://panteltje.com/panteltje/pic/index.html

I can do more with a 18F14K22 Microchip PIC that it seems others need raspies for.
http://panteltje.com/panteltje/pic/gm_pic2/
http://panteltje.com/panteltje/pic/gm_pic/
compare to this:
https://www.tomshardware.com/news/raspberry-pi-pico-w-geiger-counter
http://panteltje.com/panteltje/pic/scope_pic/
all just some lines of ASM.

I have some more older raspis that do all sort of things, for example
http://panteltje.com/panteltje/raspberry_pi_FDS132_matrix_display_driver/index.html

Plus some PCs
Not one distro I ever loaded is original, all has been modified.
same GUI on all : 9 virtual desktops, 8 of those with xterm or rxvt.
fwm and xfm.
I do not see added value in the complexity modern desktop add.
At least not for me, I can write what I need.
Bloat seems to be the future, maybe it sells better...
When the nukes fall we will all have to go back to smoke signs anyways ;-)

Sorry got carried away...

Re: Labeling micro-SD cards ?

<tjb7b7$2f475$4@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6096&group=comp.sys.raspberry-pi#6096

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 12:57:27 +0100
Organization: A little, after lunch
Lines: 28
Message-ID: <tjb7b7$2f475$4@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <YBw*AIF1y@news.chiark.greenend.org.uk>
<tj8ud0$1qqr$1@gioia.aioe.org> <slrntlhv3c.3bf.jj@iridium.wf32df>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Oct 2022 11:57:27 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dd81c0ee958bd76fa32ea6b2691b9e8e";
logging-data="2592997"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19l0ym5eFlgWQQK6T0oohkWjn5qznjzDlo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:LAT5sX1TVn8VzMSuhxTWUVEnfXQ=
Content-Language: en-GB
In-Reply-To: <slrntlhv3c.3bf.jj@iridium.wf32df>
 by: The Natural Philosop - Wed, 26 Oct 2022 11:57 UTC

On 26/10/2022 10:22, Jim Jackson wrote:
> As
> far as I know "umount" does what sync does before it unmounts the
> filesystem anyway.

Absolutely it does.

I only use sync to stop a machine in a hurry with internal disks.

I.e.

#sync;sync; halt;

will generally pull a machine down hard and fast without compromising
its root file system.

Its wise to try and use a more sophisticated shutdown first, but if that
hangs, halt is your last resort before pushing the powers switch or
worse, yanking out the power cord

--
"Anyone who believes that the laws of physics are mere social
conventions is invited to try transgressing those conventions from the
windows of my apartment. (I live on the twenty-first floor.) "

Alan Sokal

Re: Labeling micro-SD cards ?

<tjb7fg$2f475$5@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6097&group=comp.sys.raspberry-pi#6097

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 12:59:44 +0100
Organization: A little, after lunch
Lines: 64
Message-ID: <tjb7fg$2f475$5@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me>
<tjb4rc$2f0v7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Oct 2022 11:59:45 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dd81c0ee958bd76fa32ea6b2691b9e8e";
logging-data="2592997"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DPHQ011imMzCEUlmYaG8ubyKfP2yJvMo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:2yUC32IJyKojZE1N7Gbut685kEk=
In-Reply-To: <tjb4rc$2f0v7$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Oct 2022 11:59 UTC

On 26/10/2022 12:14, Martin Gregorie wrote:
> On Wed, 26 Oct 2022 05:37:22 GMT, Jan Panteltje wrote:
>
>> On a sunny day (Tue, 25 Oct 2022 21:45:38 +0200) it happened "R.Wieser"
>> <address@not.available> wrote in <tj9e8k$1m6g$1@gioia.aioe.org>:
>>
>>> TNP,
>>>
>>>>> And a question : do you know wat happens [snip]
>>>>
>>>> umount /mnt
>>>
>>> Yes, thats what theo already said. I was asking about what happens when
>>> you forget to do so.
>>>
>>>> /mnt may or may not be created by default - I think /media/<username>
>>>> is often used to mount removable drives at least on my desktop linux
>>>
>>> Both can ofcourse be checked.
>>>
>>> On my RPi :
>>> /mnt is present and seems to be empty.
>>> When I inserted an USB adapter for a second uSD card it was mounted on
>>> /media/pi
>>>
>>> Hmm... Can't sudo mount anything on /mnt (owned by root), but can on
>>> /media/pi
>>>
>>> dmseg was suggesting to do e2... something (I assume an chkdisk
>>> equivalent) on sda7, and now that partition isn't auto-mounted anymore.
>>> Oh well, I didn't pick that card for nothing. :-)
>>
>> What I always do is:
>> if dmesg shows say sdb2 mkdir /mnt/sdb2 mount /dev/sdb2 /mnt/sdb2 cd
>> /mnt/sdb2 to view whts there
>>
> $ df -h
>
> works well if you just want to see what storage devices are mounted, their
> sizes and free space.
>

Not on a pi. df -h reports "/dev/root mounted on /"

There is no /dev/root.

$mount
...
...is a far better option

>

--
"The most difficult subjects can be explained to the most slow witted
man if he has not formed any idea of them already; but the simplest
thing cannot be made clear to the most intelligent man if he is firmly
persuaded that he knows already, without a shadow of doubt, what is laid
before him."

- Leo Tolstoy

Re: Labeling micro-SD cards ?

<tjbb6e$r2f$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6098&group=comp.sys.raspberry-pi#6098

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 14:28:51 +0200
Organization: Aioe.org NNTP Server
Lines: 34
Message-ID: <tjbb6e$r2f$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me> <tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="27727"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-MSMail-Priority: Normal
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 26 Oct 2022 12:28 UTC

TNP,

>> Currently I can't even manually mount the partition anymore.
>>
> No, that's part of the spec

Duh. What I ment to say is that e2fsck action, suggested by dmesg and
/supposedly/ fixing whatever was wrong with that partition (if anything,
'cause it worked before), rendered it untouchable (read: trashed it). I
will likely have to reformat and reimage the card.

> No, it doesn't
>
> These folders are created on the root partition itself as part of the
> installation.

A bit of misunderstanding : I was talking about the uSD card in an USB
adapter. When its inserted into the RPi it gets auto-mounted as "boot" and
"root" subdirectories in the /media/pi directory. When ejecting the
adapter those "boot" and "root" folders disappear again. So, where does
the RPi get /those/ "boot" and "root" names from ?

> I am not 100% clear on what exactly is your situation, but at some level
> you need enough of a working system to run e2fsck on whatever partition
> you have that is wonky.

All my actions where done on the uSD card in the USB adapter. And it was
e2fsck which trashed that partition to begin with and than threw the towel.
I don't think that running it a second time time will help.

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjbb6i$r2f$2@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6099&group=comp.sys.raspberry-pi#6099

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.nntp4.net!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 15:05:37 +0200
Organization: Aioe.org NNTP Server
Lines: 44
Message-ID: <tjbb6i$r2f$2@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tjah5k$2d9eg$1@dont-email.me> <tjambn$sjc$2@gioia.aioe.org> <tjaqq6$2e8ih$1@dont-email.me> <tjav5n$110f$1@gioia.aioe.org> <tjb5tk$2f5hf$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="27727"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 26 Oct 2022 13:05 UTC

Jan,

> Opossum :-) no I am no gamer, do not even know what FPS game is..

FPS, short for "First Person Shooter" ? As opposed to the point-and-click
"go there, do that" strategy games. Hm. Would also need a "pointer
device" ...

> but after I did beat the local champion in chess last century
> and he got really upset I have not played chess anymore, he
> accused me of strange moves

Whut ? That sounds as if he was not a chess player at all, just someone
who learned to recognise a set of moves and memorized how to respond to
them.

> I can do more with a 18F14K22 Microchip PIC that it seems others
> need raspies for.

I used Microchip, and later on some Atmel ones.

To be honest, I bought my first RPi with microcontroller stuff in mind. I
was not amused to discover that the RPi runs a multi-tasking system, not
allowing for precise timing on its I/O pins.

So, I kept most of my hobby on the Windows 'puter (Assembly programming),
using one RPi to view YouTube stuff with while I'm eating (love it that all
the ads get stripped), and the other one to do ... well, whatever run into
which needs simple I/O controlling. I did buy a few I/O modules though,
just to see what I could do with them.

> I do not see added value in the complexity modern desktop add.

Neither do I, nor do I appreciate that MS thinks they are allowed to access
someones 'puter whenever they like it. So, I kept myself on XP. I /might/
even go use Win7, but currently I have no need to switch.

IOW, technology wise I'm quite the conservative : as long as it works, why
replace it ?

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjbbl3$2fi6c$4@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6100&group=comp.sys.raspberry-pi#6100

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 14:10:59 +0100
Organization: A little, after lunch
Lines: 62
Message-ID: <tjbbl3$2fi6c$4@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me>
<tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me>
<tjbb6e$r2f$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Oct 2022 13:10:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dd81c0ee958bd76fa32ea6b2691b9e8e";
logging-data="2607308"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18U1HskpNa4yeMaKMh72J13U6f+gnBc/KI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Cancel-Lock: sha1:G7wP2pbvchHqZ8+aEI9cE8FqD+0=
In-Reply-To: <tjbb6e$r2f$1@gioia.aioe.org>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Oct 2022 13:10 UTC

On 26/10/2022 13:28, R.Wieser wrote:
> TNP,
>
>>> Currently I can't even manually mount the partition anymore.
>>>
>> No, that's part of the spec
>
> Duh. What I ment to say is that e2fsck action, suggested by dmesg and
> /supposedly/ fixing whatever was wrong with that partition (if anything,
> 'cause it worked before), rendered it untouchable (read: trashed it). I
> will likely have to reformat and reimage the card.
>
>> No, it doesn't
>>
>> These folders are created on the root partition itself as part of the
>> installation.
>
> A bit of misunderstanding : I was talking about the uSD card in an USB
> adapter. When its inserted into the RPi it gets auto-mounted as "boot" and
> "root" subdirectories in the /media/pi directory. When ejecting the
> adapter those "boot" and "root" folders disappear again. So, where does
> the RPi get /those/ "boot" and "root" names from ?
>
Ah, ok. That is probably part of the Pis own software doing that.

>> I am not 100% clear on what exactly is your situation, but at some level
>> you need enough of a working system to run e2fsck on whatever partition
>> you have that is wonky.
>
> All my actions where done on the uSD card in the USB adapter. And it was
> e2fsck which trashed that partition to begin with and than threw the towel.
> I don't think that running it a second time time will help.
>
It may well do actually.

Back in the day with Linux, I sometimes ran fsck several times to
gradually fix a crashed disk *enough* to get data off it.

But I am slightly concerned that it got into that state to start with.
Its not 100%, but my experience of crashed disks is that if fsck and
friends dont fix them, then an fdisk wont either, and you need to run a
sector by sector check. And make sure that every sector is readable and
writeable.

I suppose you could reinstall using the DD method and see if it works,
my gut tells me it probably wont..

In the case of a reasonably cheap SD card, I might think solution by
credit card is the better option and replace the card.

> Regards,
> Rudy Wieser
>
>

--
A lie can travel halfway around the world while the truth is putting on
its shoes.

Re: Labeling micro-SD cards ?

<tjbj4c$p2m$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6101&group=comp.sys.raspberry-pi#6101

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 17:20:52 +0200
Organization: Aioe.org NNTP Server
Lines: 30
Message-ID: <tjbj4c$p2m$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me> <tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me> <tjbb6e$r2f$1@gioia.aioe.org> <tjbbl3$2fi6c$4@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="25686"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 26 Oct 2022 15:20 UTC

TNP,

>> So, where does the RPi get /those/ "boot" and "root" names from ?
>>
> Ah, ok. That is probably part of the Pis own software doing that.

"Probably" ? :-)

The question is if I can retrieve such a name myself - from an unmounted
partition ofcourse.

> I suppose you could reinstall using the DD method and see if it works, my
> gut tells me it probably wont..

My bad, I used "reimage" where I should have just used "reinstall". And as
I'm quite lazy (I'm a (hobby) programmer) I wil probably put a NOOBS file on
it and let it run its course.

But that means I have to reformat to FAT32 first, and I will than do a full
format to at least /try/ to catch any bad blocks.

I really should take the time to figure out how a standard install works
though. I've already got the 2020-02-13-raspbian-buster.img file
downloaded, but do not have any idea what to expect after I DD that to an
uSD card. And that makes me hesitant. :-\

Regards,
Rudy Wieser

Re: Labeling micro-SD cards ?

<tjbmvs$2gi1l$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6102&group=comp.sys.raspberry-pi#6102

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 17:24:24 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <tjbmvs$2gi1l$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me>
<tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me>
<tjbb6e$r2f$1@gioia.aioe.org> <tjbbl3$2fi6c$4@dont-email.me>
<tjbj4c$p2m$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Oct 2022 16:24:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ea08a0ffed3a31967bbed7118bb03507";
logging-data="2639925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wBaaFAKa2fE7kabSB8fjJxUGzrn1MX3U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:S7KDd8wS4bWuUHteJPZexaK1/Os=
Content-Language: en-GB
In-Reply-To: <tjbj4c$p2m$1@gioia.aioe.org>
 by: Chris Elvidge - Wed, 26 Oct 2022 16:24 UTC

On 26/10/2022 16:20, R.Wieser wrote:
> TNP,
>
>>> So, where does the RPi get /those/ "boot" and "root" names from ?
>>>
>> Ah, ok. That is probably part of the Pis own software doing that.
>
> "Probably" ? :-)
>
> The question is if I can retrieve such a name myself - from an unmounted
> partition ofcourse.

blkid and lsblk will give info about unmounted but connected partitions
as well as mounted partitions.

On a raspberry pi (u)SD card after writing the RPi image there are 2
partitions, one FAT32 labelled 'boot' and one ext4 labelled 'root'. The
boot prtition can be read on any Windows machine. Both partitons can be
read on any Linux/Unix machine.

> I really should take the time to figure out how a standard install works
> though. I've already got the 2020-02-13-raspbian-buster.img file
> downloaded, but do not have any idea what to expect after I DD that to an
> uSD card. And that makes me hesitant. :-\
>

You can use balenaEtcher or Unetbootin (or similar) to write the image
to an SD card. There is no need for hesitance.
(However dd will (should) work too.)
Get a newer image!
https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2022-09-26/2022-09-22-raspios-bullseye-armhf.img.xz

> Regards,
> Rudy Wieser
>
>

--
Chris Elvidge
England

Re: Labeling micro-SD cards ?

<tjbo6b$2glah$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6103&group=comp.sys.raspberry-pi#6103

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 17:44:59 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <tjbo6b$2glah$1@dont-email.me>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org>
<tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org>
<tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org>
<12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com>
<tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk>
<tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me>
<tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me>
<tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me>
<tjbb6e$r2f$1@gioia.aioe.org> <tjbbl3$2fi6c$4@dont-email.me>
<tjbj4c$p2m$1@gioia.aioe.org> <tjbmvs$2gi1l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Oct 2022 16:45:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ea08a0ffed3a31967bbed7118bb03507";
logging-data="2643281"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7Y+mOpGmQluccb+Ytq54dug2jE8oVhFI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:bLs6DOYc9kkNZpGZZ5HvuUvcJBM=
In-Reply-To: <tjbmvs$2gi1l$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Wed, 26 Oct 2022 16:44 UTC

On 26/10/2022 17:24, Chris Elvidge wrote:
> On 26/10/2022 16:20, R.Wieser wrote:
>> TNP,
>>
>>>> So, where does the RPi get /those/ "boot" and "root" names from ?
>>>>
>>> Ah, ok. That is probably part of the Pis own software doing that.
>>
>> "Probably" ? :-)
>>
>> The question is if I can retrieve such a name myself - from an unmounted
>> partition ofcourse.
>
> blkid and lsblk will give info about unmounted but connected partitions
> as well as mounted partitions.
>
> On a raspberry pi (u)SD card after writing the RPi image there are 2
> partitions, one FAT32 labelled 'boot' and one ext4 labelled 'root'. The
> boot prtition can be read on any Windows machine. Both partitons can be
> read on any Linux/Unix machine.

Sorry, ext4 partition is labelled 'rootfs'

>
>
>> I really should take the time to figure out how a standard install works
>> though. I've already got the 2020-02-13-raspbian-buster.img file
>> downloaded, but do not have any idea what to expect after I DD that to an
>> uSD card. And that makes me hesitant. :-\
>>
>
> You can use balenaEtcher or Unetbootin (or similar) to write the image
> to an SD card. There is no need for hesitance.
> (However dd will (should) work too.)
> Get a newer image!
> https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2022-09-26/2022-09-22-raspios-bullseye-armhf.img.xz
>
>
>
>> Regards,
>> Rudy Wieser
>>
>>
>
>

--
Chris Elvidge
England

Re: Labeling micro-SD cards ?

<tjc1ua$1qo9$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6104&group=comp.sys.raspberry-pi#6104

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: addr...@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Labeling micro-SD cards ?
Date: Wed, 26 Oct 2022 21:33:47 +0200
Organization: Aioe.org NNTP Server
Lines: 41
Message-ID: <tjc1ua$1qo9$1@gioia.aioe.org>
References: <tiis1u$15dm$1@gioia.aioe.org> <tijbn5$2mn$1@gioia.aioe.org> <tj4sbn$nf4$1@reader2.panix.com> <tj5b7p$1c4j$1@gioia.aioe.org> <tj5cts$1k7oo$1@dont-email.me> <tj5rmc$uvl$1@gioia.aioe.org> <12ff5c25-b6c1-4d81-a900-2a957c02004dn@googlegroups.com> <tj7v4g$13gi$2@gioia.aioe.org> <XBw*2AF1y@news.chiark.greenend.org.uk> <tj8n87$2hk$2@gioia.aioe.org> <tj8q9q$20m9q$9@dont-email.me> <tj9e8k$1m6g$1@gioia.aioe.org> <tj9far$2614g$2@dont-email.me> <tjambm$sjc$1@gioia.aioe.org> <tjb0v0$2em3v$5@dont-email.me> <tjbb6e$r2f$1@gioia.aioe.org> <tjbbl3$2fi6c$4@dont-email.me> <tjbj4c$p2m$1@gioia.aioe.org> <tjbmvs$2gi1l$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="60169"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.9.2
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 26 Oct 2022 19:33 UTC

Chris,

> blkid and lsblk will give info about unmounted but connected partitions as
> well as mounted partitions.

Thanks. lsblk seems to be the one which can, when asked nicely, output the
partition label.

> The boot prtition can be read on any Windows machine. Both partitons can
> be read on any Linux/Unix machine.

In my case using a NOOBS install there are four partitions (ignoring the
Extended partition which can't be mounted). Two FAT (off of which Windows
ofcourse only wants to show one, 'cause removable media) and two Linux
partitions (which are the ones that get auto-mounted). Accessing one of the
FAT partitions from within the RPi takes more work.

Hmmm... Am I missing a swap partition ?

>> but do not have any idea what to expect after I DD that to an
>> uSD card. And that makes me hesitant. :-\
>
> There is no need for hesitance.

Ackk.... Such an assurance without anything to back it up causes the
opposite to happen in me. :-|

> Get a newer image!

Thanks for the link. I guess I was unlucky in, last week, finding that
2020 download.

Some trimming of it (hacking ! :-) ) showed me a list of earlier versions.
Alas, even though each of those downloads is accompnied by an "info" file
there is nothing in there explaining why it exists (how its different from
the previous version).

Regards,
Rudy Wieser

Pages:12345
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor