Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / Re: A degrading micro-SD card ?

SubjectAuthor
* Re: A degrading micro-SD card ?Computer Nerd Kev
+* Re: A degrading micro-SD card ?R.Wieser
|`* Re: A degrading micro-SD card ?Nikolaj Lazic
| `- Re: A degrading micro-SD card ?druck
`* Re: A degrading micro-SD card ?druck
 `* Re: A degrading micro-SD card ?R.Wieser
  +* Re: A degrading micro-SD card ?Dennis Lee Bieber
  |+* Re: A degrading micro-SD card ?Martin Gregorie
  ||+* Re: A degrading micro-SD card ?druck
  |||`- Re: A degrading micro-SD card ?druck
  ||`* Re: A degrading micro-SD card ?R.Wieser
  || `* Re: A degrading micro-SD card ?The Natural Philosopher
  ||  `- Re: A degrading micro-SD card ?Ahem A Rivet's Shot
  |`- Re: A degrading micro-SD card ?R.Wieser
  `* Re: A degrading micro-SD card ?druck
   `- Re: A degrading micro-SD card ?R.Wieser

1
Re: A degrading micro-SD card ?

<sj3rcb$ufr$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!ENt7VxBBUNdMAwIrdQO+Eg.user.46.165.242.75.POSTED!not-for-mail
From: not@telling.you.invalid (Computer Nerd Kev)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 08:09:48 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <sj3rcb$ufr$1@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="31227"; posting-host="ENt7VxBBUNdMAwIrdQO+Eg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i686))
X-Notice: Filtered by postfilter v. 0.9.2
 by: Computer Nerd Kev - Thu, 30 Sep 2021 08:09 UTC

R.Wieser <address@not.available> wrote:
> Hello all,
>
> Question #1 :
>
> At some point I noticed that my RPi 3, used as a YouTube viewer, sometimes
> seemed to freeze and also responding very slowly (20-30 sec) when I, using
> the "Windows" key, call the system menu to shut down. After than it
> sometimes responded almost as slowly to present me with the shutdown
> confirmation dialog.
>
> I'm /assuming/ that it has something to do with the micro-SD cards
> performance degrading, perhaps because of having to swap blocks around to
> egalize wear-and-tear. Could someone confirm this or, if this is not the
> case, tell me what is going on ?

This describes how to check the condition using mmc-utils, if the
Micro SD card supports it (and you can understand what it says):
https://developer.toradex.com/knowledge-base/emmc-linux#Configuration_and_Monitoring

I ought to try it myself some time...

> Question #2:
> I attempted to make a DD copy of the micro-SD card to another (to check if
> it was the card or perhaps the installed software), but that failed because
> the newer, also 16 GB card, was 20 MB smaller than the other origional card
> (rather unexpected I might say). :-\
>
> Is there a way to tell a micro-SD card that its a bit smaller than it
> actually is, so that the installed image (NOOBS 3.2.1) will be smaller and a
> DD of it will always fit on a new card ?

I don't think that's the right approach. You'd probably be better
off by making the partitions stop some safe distance from the end,
then using the "count" option to dd (which is multiplied by the
"bs" setting) to limit the length of data read or written.

Or if you want to be able to downgrade SD card size more freely,
you could try using fsarchiver instead of dd. It can restore to
differently sized partitions, but you have to archive individual
partitions instead of the whole disk. That means you have to create
the partitions again before restoring the archive to a new SD card.

--
__ __
#_ < |\| |< _#

Re: A degrading micro-SD card ?

<sj43vk$18kb$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 12:36:24 +0200
Organization: Aioe.org NNTP Server
Lines: 47
Message-ID: <sj43vk$18kb$1@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="41611"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Thu, 30 Sep 2021 10:36 UTC

Kev,

> This describes how to check the condition using mmc-utils, if
> the Micro SD card supports it (and you can understand what
> it says):
> https://developer.toradex.com/knowledge-base/emmc-linux#Configuration_and_Monitoring

Thank you. I was hoping for something like that.

> I don't think that's the right approach. You'd probably be
> better off by making the partitions stop some safe distance
> from the end,

As mentioned, I'm using a NOOBS image. AFAIK I've got zero control over
which, and with which sizes it creates the partitions (it will just fill out
all available space).

Besides, DD doesn't care about partitions, so I don't think that that
solution will solve much of anything - unless I could somehow tell DD to
stop where the last partition ends ...

> Or if you want to be able to downgrade SD card size more
> freely, you could try using fsarchiver instead of dd.
.....
> That means you have to create the partitions again before
> restoring the archive to a new SD card.

Not what I expect to be doing on a simple restoring/duplication ...

> It can restore to differently sized partitions, but you have
> to archive individual partitions instead of the whole disk.

I take it that it only backups the actual used space in the partition. If
so, the actual backup would become smaller, which is a pre. On the other
hand the ammount and complexity of work to restore it would increase, which
is a con - especially having to recreate those partitions by hand (from
what information?).

Facing that I would probably go for the simpler method, and just grab myself
a handfull of identical SD cards. :-)

Thanks for the info.

Regards,
Rudy Wieser

Re: A degrading micro-SD card ?

<sj44rq$qmh$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 11:51:38 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <sj44rq$qmh$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 30 Sep 2021 10:51:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="29dc5be915b11a6cc422e1552c900f9b";
logging-data="27345"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fyueRaHmimY7h2pBRmfZk"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:PY2rhrrUa41a6Jg4Kl8nbsgbN04=
In-Reply-To: <sj3rcb$ufr$1@gioia.aioe.org>
Content-Language: en-GB
 by: druck - Thu, 30 Sep 2021 10:51 UTC

On 30/09/2021 09:09, Computer Nerd Kev wrote:
> R.Wieser <address@not.available> wrote:
>> Is there a way to tell a micro-SD card that its a bit smaller than it
>> actually is, so that the installed image (NOOBS 3.2.1) will be smaller and a
>> DD of it will always fit on a new card ?
>
> I don't think that's the right approach. You'd probably be better
> off by making the partitions stop some safe distance from the end,
> then using the "count" option to dd (which is multiplied by the
> "bs" setting) to limit the length of data read or written.

dd is pretty safe as it will stop when it gets to the end of the source
or destination.

The key bit is to make the last partition a bit smaller so your image
will fit on any SD card claiming to be the same size, as they can vary
by up to 100s of MB.

That's easy with a normal single OS installation as it will have just
the boot (FAT) and root (ext4) partitions. Put the SD card in another
Linux machine and use gparted resize the last partition so there is
enough space after it to allow it fir on another card.

NOOBs is a bit more complicated as it has multiple OS's and puts their
boot and root partitions inside extended partitions. It is possible to
resize the last root partition and then shrink the extended partition,
but it's more involved.

As ever the recommendation is try out different OS's on a NOOBs card,
but once you've decided which one(s) you want to use, put them on a
dedicated SD card with a simple partition layout, and avoid a lot of grief.

---druck

Re: A degrading micro-SD card ?

<sj48ij$1fm1$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 13:54:46 +0200
Organization: Aioe.org NNTP Server
Lines: 44
Message-ID: <sj48ij$1fm1$1@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org> <sj44rq$qmh$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="48833"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Thu, 30 Sep 2021 11:54 UTC

Druck,

> dd is pretty safe as it will stop when it gets to the end of the source or
> destination.

:-) It would be rather safe if it would continue too. Its just that on
reading you get large image files, and on writing you waste a lot of time
with out anything to show for.

Also, it depends on your definition of "safe" : if it stops with writing
because the target (micro-SD card) is smaller than the source (image file)
than you stand a good chance of an unusable, or perhaps even crashing copy.
:-|

Though in my case my DD program just told me that the target micro-SD card
was to small to contain the source image file, and stopped. Rightly so.

> Put the SD card in another Linux machine and use gparted resize the last
> partition so there is enough space after it to allow it fir on another
> card.

Yikes! And than just run a DD in a "just do it, ignore that its too big"
mode ? That feels to me as if I'm just asking for trouble (see above) ...

On the other hand, I would not mind telling DD to include all partitions,
ignoring any (slack) space after the last one though.

> It is possible to resize the last root partition and then shrink the
> extended partition, but it's more involved.

Hence my idea to make the NOOBS installation think the micro-SD card is
actually smaller than it is ...

> As ever the recommendation is try out different OS's on a NOOBs card, but
> once you've decided which one(s) you want to use, put them on a dedicated
> SD card with a simple partition layout, and avoid a lot of grief.

Do you have a bit more info about that ? I would not mind having the NOOBS
pre-boot "press shift to reinstall" stuff removed.

Regards,
Rudy Wieser

Re: A degrading micro-SD card ?

<slrnslbda8.1mv.nlazicBEZ_OVOGA@mudrac.ffzg.hr>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!newsfeed.CARNet.hr!.POSTED.193.198.212.8!not-for-mail
From: nlazicBEZ_OVOGA@mudrac.ffzg.hr (Nikolaj Lazic)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 13:02:00 -0000 (UTC)
Organization: CARNet, Croatia
Message-ID: <slrnslbda8.1mv.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj43vk$18kb$1@gioia.aioe.org>
Reply-To: nlazicBEZ_OVOGA@mudrac.ffzg.hr
Injection-Date: Thu, 30 Sep 2021 13:02:00 -0000 (UTC)
Injection-Info: news1.carnet.hr; posting-host="193.198.212.8";
logging-data="23799"; mail-complaints-to="abuse@CARNet.hr"
User-Agent: slrn/1.0.2 (Linux)
 by: Nikolaj Lazic - Thu, 30 Sep 2021 13:02 UTC

Dana Thu, 30 Sep 2021 12:36:24 +0200, R.Wieser <address@not.available> napis'o:
> Kev,
>
>> This describes how to check the condition using mmc-utils, if
>> the Micro SD card supports it (and you can understand what
>> it says):
>> https://developer.toradex.com/knowledge-base/emmc-linux#Configuration_and_Monitoring
>
> Thank you. I was hoping for something like that.
>
>> I don't think that's the right approach. You'd probably be
>> better off by making the partitions stop some safe distance
>> from the end,
>
> As mentioned, I'm using a NOOBS image. AFAIK I've got zero control over
> which, and with which sizes it creates the partitions (it will just fill out
> all available space).
>
> Besides, DD doesn't care about partitions, so I don't think that that
> solution will solve much of anything - unless I could somehow tell DD to
> stop where the last partition ends ...

It knows what the size of partition is. It is written in the
partition table.

You could make partition smaller.
Look at resize2fs

After that you could also make partition smaller in the partition table.
That way you will be able to copy from one card to another.
In case you want to "reserve" the end of the card... you can make dummy
partition at the end. With some kind of "weird" type your pi would not
try to mount.

Re: A degrading micro-SD card ?

<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 30 Sep 2021 09:26:22 -0500
From: wlfraed@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 10:26:23 -0400
Organization: IISS Elusive Unicorn
Message-ID: <otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org> <sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 52
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-lVcWLQh33/inrQdyGJFJjsg7AE2JwatdHJ7c0sBiy1CRe/7J/f0GtC0A/Vhps6xMnS16YaKU1uR/7vX!El/7VyCveR35A8GM1Yfk5pfXezz7l+c5NINs3GKdTZtUi+LWWqA9fbam5jqlyvULFK0sFSC0
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3100
 by: Dennis Lee Bieber - Thu, 30 Sep 2021 14:26 UTC

On Thu, 30 Sep 2021 13:54:46 +0200, "R.Wieser" <address@not.available>
declaimed the following:

>Hence my idea to make the NOOBS installation think the micro-SD card is
>actually smaller than it is ...
>

I don't think the Raspberry-Pi foundation even distributes NOOBS format
any more. The closest is the "Raspberry-Pi Imager" -- which runs on
Windows/Macs (and strangely, listed for Ubuntu even though R-Pi OS is based
on Debian).

As I understand it, this program does a network download of the
selected OS and writes just it to an SD card. One does not have the NOOBS
overhead of having a couple of different OS on the card (along with the
network install OS). {the imager installer is just 20MB for Windows
machines -- so it obviously can not contain a 3GB OS image itself}

[Trimmed]
C:\Users\Wulfraed>dir e:\MicroSupport\RPI3_4
Directory of e:\MicroSupport\RPI3_4

03/28/2021 06:28 PM 3,007,638,235
2021-03-04-raspios-buster-armhf-full.zip

06/23/2021 06:27 PM 3,005,999,855
2021-05-07-raspios-buster-armhf-full.zip

09/18/2021 12:29 PM 19,772,672 imager_1.6.2.exe

10/13/2020 03:09 PM 2,441,652,758 NOOBS_v3_5_0.zip

>Do you have a bit more info about that ? I would not mind having the NOOBS
>pre-boot "press shift to reinstall" stuff removed.

Not using an out-of-date NOOBS image might be an option...
https://www.raspberrypi.org/software/operating-systems/
The last NOOBS image was 3.5.0, and I show a download date a year ago. In
the meantime, there have been at least TWO RaspiOS images made available.
(See above listing)

Still won't do anything for the partition size filling the SD card --
when different brands of cards may reserve different amounts of blocks for
bad-block remapping.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: A degrading micro-SD card ?

<sj4ne9$up2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Thu, 30 Sep 2021 16:08:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <sj4ne9$up2$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 30 Sep 2021 16:08:41 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c79b0368d73ed4561593612968cee645";
logging-data="31522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mQHT1YSMeLnomGa6IUaGi6dA25opeT1s="
User-Agent: Pan/0.147 (Sweet Solitude; afc1447
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:VwSvsMVw67ttiKKaR6kSaqb305U=
 by: Martin Gregorie - Thu, 30 Sep 2021 16:08 UTC

On Thu, 30 Sep 2021 10:26:23 -0400, Dennis Lee Bieber wrote:

> On Thu, 30 Sep 2021 13:54:46 +0200, "R.Wieser" <address@not.available>
> declaimed the following:
>
>
>>Hence my idea to make the NOOBS installation think the micro-SD card is
>>actually smaller than it is ...
>>
>>
> I don't think the Raspberry-Pi foundation even distributes NOOBS
format
> any more. The closest is the "Raspberry-Pi Imager" -- which runs on
> Windows/Macs (and strangely, listed for Ubuntu even though R-Pi OS is
> based on Debian).
>
> As I understand it, this program does a network download of the
> selected OS and writes just it to an SD card. One does not have the
> NOOBS overhead of having a couple of different OS on the card (along
> with the network install OS). {the imager installer is just 20MB for
> Windows machines -- so it obviously can not contain a 3GB OS image
> itself}
>
> [Trimmed]
> C:\Users\Wulfraed>dir e:\MicroSupport\RPI3_4
> Directory of e:\MicroSupport\RPI3_4
>
> 03/28/2021 06:28 PM 3,007,638,235
> 2021-03-04-raspios-buster-armhf-full.zip
>
> 06/23/2021 06:27 PM 3,005,999,855
> 2021-05-07-raspios-buster-armhf-full.zip
>
> 09/18/2021 12:29 PM 19,772,672 imager_1.6.2.exe
>
> 10/13/2020 03:09 PM 2,441,652,758 NOOBS_v3_5_0.zip
>
>>Do you have a bit more info about that ? I would not mind having the
>>NOOBS pre-boot "press shift to reinstall" stuff removed.
>
> Not using an out-of-date NOOBS image might be an option...
> https://www.raspberrypi.org/software/operating-systems/
> The last NOOBS image was 3.5.0, and I show a download date a year ago.
> In the meantime, there have been at least TWO RaspiOS images made
> available. (See above listing)
>
> Still won't do anything for the partition size filling the SD
card --
> when different brands of cards may reserve different amounts of blocks
> for bad-block remapping.

You'll need a USB connected SD card reader. Put a new SD card in it and
connect it to the RPi.

Use the 'parted' command-line to format the new SD card with two
partitions:
- partition no 1: a 1 GB fat32 partition with its boot flag set
- partition no 2: an ext4 partition occupying the rest of the card

Use the 'dd' utility to copy /dev/mmcblk0p1 into the first partition and
/dev/root into the second partition.

Now the RPi should boot from the new card.

Yes, I know that the RPi OS installation is currently only 50 MB, but
disk space is cheap these days and the process of upgrading the OS will
require the boot partition to be at least twice the size of the installed
operation system, because at one point in the upgrade process both the
old and new versions are on the partition at the same time.

If you're using a tiny SD card, you can make the boot partition somewhat
smaller, but don't make it less than 200GB or an upgrade may fail. Don't
ask how I know this...

Lastly, if you're not already using 'apt' to do regular system upgrades
over the 'net, start using it: its faster than messing round with Noobs
and easy once you've done it the first time. Just run:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
sudo reboot

And, of course you can always save time and typing by putting that
command sequence in a shell script and running that.

I always make a system backup before doing an upgrade but ymmv.

--
--
Martin | martin at
Gregorie | gregorie dot org

Re: A degrading micro-SD card ?

<sj6anj$tpo$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 07:44:02 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <sj6anj$tpo$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj43vk$18kb$1@gioia.aioe.org>
<slrnslbda8.1mv.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Oct 2021 06:44:03 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8c222270d9dad4ddcf71b5e3085df6b5";
logging-data="30520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Eeoo8f5SMfHNPuGzsbWPc"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:2THzyOaTI8xmzWJvQNNLnUmSjeg=
In-Reply-To: <slrnslbda8.1mv.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
Content-Language: en-GB
 by: druck - Fri, 1 Oct 2021 06:44 UTC

On 30/09/2021 14:02, Nikolaj Lazic wrote:
> You could make partition smaller.
> Look at resize2fs
>
> After that you could also make partition smaller in the partition table.

This is what gparted does graphically, in a much more friendly way and
less disaster prone way than using resize2fs and parted manually.

> That way you will be able to copy from one card to another.

Once the partitions are correct, you can just copy with dd, and it will
stop automatically when it has filled the new card.

> In case you want to "reserve" the end of the card... you can make dummy
> partition at the end. With some kind of "weird" type your pi would not
> try to mount.

No don't do this, the system will object is there isn't room for this
dummy partition on the new card. Just leave the space empty, then the
system doesn't care if it is there or isn't there.

---druck

Re: A degrading micro-SD card ?

<sj6av9$v47$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 07:48:08 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <sj6av9$v47$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Oct 2021 06:48:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8c222270d9dad4ddcf71b5e3085df6b5";
logging-data="31879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Yp7pCUQaw7WTz9yZmmBqQ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:YBGBYA+vWdXB3uTUJd0/karksbU=
In-Reply-To: <sj48ij$1fm1$1@gioia.aioe.org>
Content-Language: en-GB
 by: druck - Fri, 1 Oct 2021 06:48 UTC

On 30/09/2021 12:54, R.Wieser wrote:
> Druck,
>
>> dd is pretty safe as it will stop when it gets to the end of the source or
>> destination.
>
> :-) It would be rather safe if it would continue too. Its just that on
> reading you get large image files, and on writing you waste a lot of time
> with out anything to show for.
>
> Also, it depends on your definition of "safe" : if it stops with writing
> because the target (micro-SD card) is smaller than the source (image file)
> than you stand a good chance of an unusable, or perhaps even crashing copy.
> :-|

Not if you have resized the partitions first with gparted as I advised.

> Though in my case my DD program just told me that the target micro-SD card
> was to small to contain the source image file, and stopped. Rightly so.
>
>> Put the SD card in another Linux machine and use gparted resize the last
>> partition so there is enough space after it to allow it fir on another
>> card.
>
> Yikes! And than just run a DD in a "just do it, ignore that its too big"
> mode ? That feels to me as if I'm just asking for trouble (see above) ...

Right this is turning in to another one of these troll threads where
you ask for advice, and then deliberately ignore / misinterpret it to
cause a pointless argument. Pack it in.

---druck

Re: A degrading micro-SD card ?

<sj6bae$28q$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 07:54:06 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <sj6bae$28q$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com> <sj4ne9$up2$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Oct 2021 06:54:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8c222270d9dad4ddcf71b5e3085df6b5";
logging-data="2330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c98VjxQsscc5OVGdDqazQ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:q83UpDGGiDOrNgQgLc1s21c47Uc=
In-Reply-To: <sj4ne9$up2$1@dont-email.me>
Content-Language: en-GB
 by: druck - Fri, 1 Oct 2021 06:54 UTC

On 30/09/2021 17:08, Martin Gregorie wrote:
> Use the 'parted' command-line to format the new SD card with two
> partitions:
> - partition no 1: a 1 GB fat32 partition with its boot flag set
> - partition no 2: an ext4 partition occupying the rest of the card
>
> Use the 'dd' utility to copy /dev/mmcblk0p1 into the first partition and
> /dev/root into the second partition.
>
> Now the RPi should boot from the new card.

This wont work unless the two partitions are exactly the same size on
both cards, which they can't be if the new card is smaller.

If you are manually creating new partitions as above, don't use dd, but
copy all the files with:-

rsync -axP /mnt/source/boot/ /mnt/dest/boot
rsync -axVAXP /mnt/source/root /mnt/dest/root

---druck

Re: A degrading micro-SD card ?

<sj6f49$tfp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 08:59:05 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sj6f49$tfp$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com> <sj4ne9$up2$1@dont-email.me>
<sj6bae$28q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Oct 2021 07:59:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8c222270d9dad4ddcf71b5e3085df6b5";
logging-data="30201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189P0EkK9AJyE9a2DE1HHJe"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:xJquDKgulpwd++HLZ5IOWLgCUFg=
In-Reply-To: <sj6bae$28q$1@dont-email.me>
Content-Language: en-GB
 by: druck - Fri, 1 Oct 2021 07:59 UTC

On 01/10/2021 07:54, druck wrote:
> If you are manually creating new partitions as above, don't use dd, but
> copy all the files with:-
>
> rsync -axP /mnt/source/boot/ /mnt/dest/boot
> rsync -axVAXP /mnt/source/root /mnt/dest/root

This should be /mnt/source/root/ note the trailing slash or it will copy
to /mnt/dest/root/root

---druck

Re: A degrading micro-SD card ?

<sj7220$2g0$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 14:10:39 +0200
Organization: Aioe.org NNTP Server
Lines: 33
Message-ID: <sj7220$2g0$1@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org> <sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org> <otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com>
Injection-Info: gioia.aioe.org; logging-data="2560"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Original
X-Notice: Filtered by postfilter v. 0.9.2
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Fri, 1 Oct 2021 12:10 UTC

Dennis,

> I don't think the Raspberry-Pi foundation even distributes NOOBS
> format any more.

That I'm using a NOOBS installation is irrelevant. My question was aimed
at making *an* installation think the micro-SD card would be smaller than it
actually is. IOW, changing something about the micro-SD card /before/
throwing an OS at it.

> As I understand it, this program does a network download of
> the selected OS and writes just it to an SD card.

I only install from stuff I have already downloaded. That way I can
re-install and have exactly the same as I did before. IOW, I rather
dislike (understatement) the "just download it again and deal with whatever
changes they made" approach.

> Not using an out-of-date NOOBS image might be an option...

:-) Don't try to tell me that removing the "repair" part is something they
only thought of after NOOBS 3.5.0.

> Still won't do anything for the partition size filling the SD card --

Indeed. And as I've not seen you mention anything about that in regard to
whatever the latest available RPi OS version is (if-and-when it still
supports my aging RPi ofcourse) ...

Regards,
Rudy Wieser

Re: A degrading micro-SD card ?

<sj7224$2g0$2@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 14:51:59 +0200
Organization: Aioe.org NNTP Server
Lines: 18
Message-ID: <sj7224$2g0$2@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org><sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org><otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com> <sj4ne9$up2$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="2560"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Fri, 1 Oct 2021 12:51 UTC

Martin,

> Use the 'parted' command-line to format the new SD card with two
> partitions:
> - partition no 1: a 1 GB fat32 partition with its boot flag set
> - partition no 2: an ext4 partition occupying the rest of the card
>
> Use the 'dd' utility to copy /dev/mmcblk0p1 into the first partition and
> /dev/root into the second partition.

Thanks, but I'm not sure I follow. Should I understand from this that
RPis 'dd' utility will automatically resize the source partition onto the
target one ? Or is something else going on ?

Regards,
Rudy Wieser

Re: A degrading micro-SD card ?

<sj7224$2g0$3@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 15:21:51 +0200
Organization: Aioe.org NNTP Server
Lines: 25
Message-ID: <sj7224$2g0$3@gioia.aioe.org>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org> <sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org> <sj6av9$v47$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="2560"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Fri, 1 Oct 2021 13:21 UTC

druck

> Not if you have resized the partitions first with gparted as I advised.

You misunderstood what I was trying to say : You're suggesting to use a
hack, ignoring the "target is too small" warning I take your 'dd' gives
(mine on Windows won't even start the copy) and have not mentioning anything
in regard to checking if it actually went alright. Not cool dude, not cool.

> Right this is turning in to another one of these troll threads where you
> ask for advice, and then deliberately ignore / misinterpret it to cause a
> pointless argument.

I understood your advice well enough. In fact well enough to point out to
you that the result of your hack could not be trusted. And now *I'm* the
bad guy ?

> Pack it in.

To use another, similar phrase : "go take a hike".

Regards,
Rudy Wieser

Re: A degrading micro-SD card ?

<sj7359$76c$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 14:40:56 +0100
Organization: A little, after lunch
Lines: 30
Message-ID: <sj7359$76c$1@dont-email.me>
References: <sj14ve$19v9$1@gioia.aioe.org> <sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me> <sj48ij$1fm1$1@gioia.aioe.org>
<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com> <sj4ne9$up2$1@dont-email.me>
<sj7224$2g0$2@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Oct 2021 13:40:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4a14f09a06785974d14157b232bcea65";
logging-data="7372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hbmia/HtoKb8tt5zw3dAupXHQAyCLu38="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:IWpg0vNGs2MBw1cyH0fj2tGHYxE=
In-Reply-To: <sj7224$2g0$2@gioia.aioe.org>
Content-Language: en-GB
 by: The Natural Philosop - Fri, 1 Oct 2021 13:40 UTC

On 01/10/2021 13:51, R.Wieser wrote:
> Martin,
>
>> Use the 'parted' command-line to format the new SD card with two
>> partitions:
>> - partition no 1: a 1 GB fat32 partition with its boot flag set
>> - partition no 2: an ext4 partition occupying the rest of the card
>>
>> Use the 'dd' utility to copy /dev/mmcblk0p1 into the first partition and
>> /dev/root into the second partition.
>
> Thanks, but I'm not sure I follow. Should I understand from this that
> RPis 'dd' utility will automatically resize the source partition onto the
> target one ? Or is something else going on ?

See drucks post. The problem is that it *wont*.

create partitions manually and then transfer files as per drucks rsync cribs

I see no merit whatsoever in using DD on partitions - once you are at
the file/directory level, use rsync to copy files

The merit of DD is that it copies the whole disk image. So can recreate
partitions.

--
“The urge to save humanity is almost always only a false face for the
urge to rule it.”
– H. L. Mencken

Re: A degrading micro-SD card ?

<20211001172927.fb1111eda0d7598b657baf8e@eircom.net>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: steveo@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: A degrading micro-SD card ?
Date: Fri, 1 Oct 2021 17:29:27 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20211001172927.fb1111eda0d7598b657baf8e@eircom.net>
References: <sj14ve$19v9$1@gioia.aioe.org>
<sj3rcb$ufr$1@gioia.aioe.org>
<sj44rq$qmh$1@dont-email.me>
<sj48ij$1fm1$1@gioia.aioe.org>
<otgblg5t0807l3o1raotlb093lhvlgou6a@4ax.com>
<sj4ne9$up2$1@dont-email.me>
<sj7224$2g0$2@gioia.aioe.org>
<sj7359$76c$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e551c861b84503563eae122711a7e52b";
logging-data="22115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0J+e3BrRiKHUfki5q5OgF7MX2ZUjNTnQ="
Cancel-Lock: sha1:CZHT7VjDXxvzR19IFeh2zFQRJkQ=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.1)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Fri, 1 Oct 2021 16:29 UTC

On Fri, 1 Oct 2021 14:40:56 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> I see no merit whatsoever in using DD on partitions - once you are at
> the file/directory level, use rsync to copy files

There's are reasons to use it, dd will copy any kind of partition
correctly even ones you can't mount while rsync can be troublesome in the
face of devices, sparse files, named pipes, mounts and the like. It may
also be faster if the filesystem is fairly full with a great many small
files.

There are reasons not to use it too, primarily that it will copy all
the unused space and can only copy to a target at least as large as the
partition.

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


computers / comp.sys.raspberry-pi / Re: A degrading micro-SD card ?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor