[raspberry-vi] Re: How to make a second micro SD card of my working install.

  • From: "Michael A Ray" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mike.ray" for DMARC)
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Sun, 2 Aug 2020 21:11:41 +0100

Jessica

You have to be careful backing up the contents of your SD card either to
another .img file or to another drive or SD card.

I would do it using rsync, but be careful to add to your script suitable
excludes to:

1. Exclude anything which crosses partition boundaries. This is because
if you, for example, have something mounted on /mnt to back up to, you
must exclude this from the sync otherwise you get into a recursive nonsense.

2. Exclude everything in /dev, /proc and /sys sub-trees. These are nodes
which are created at boot and they should not be backed up to your new
image.

Take a look at my tool for creating RPI images:

https://github.com/cromarty/rpi-image-tool

Using that you can create a .img file of a controlled size, mount it,
back up to it, un-mount it and tidy up.

There might be an rsync script in there, I can't remember.

There is something else to bear in mind, and that is the auto expansion
of the SD card file system on first boot.

When you get a new image from the Raspberry Pi Foundation and write it
to an SD card, the cmdline.txt file points to a script which expands the
file system, replaces the cmdline.txt command value and reboots into Linux.

If you back up an existing system into an SD card image, the cmdline.txt
file will not contain this initial file system expansion command.

Mike




On 02/08/2020 17:31, Jessica wrote:

Pranav,
Thank you a ton. That is what I was thinking but wasn't sure.

Well. I got energy enough up to fix this pi how I want it. So maybe now I can 
get more energy on dragging that mini pc out.

In regards to long emails. I have finally figured out how to delete lines in 
edbrowse.

Its quite easy actually. And I am going to do so on this post.

The more I use edbrowse for email and web browsing the more I like it.

That having been said. Edbrowse does run into some problems with certain 
websites.

Some won't load at all. And some load but certain buttons and links don't 
behave as expected.

But I can play two of my favorite web based games using edbrowse alone. And 
wow does it speed up my game play.

And also it speeds up my navigating other websites that do work too.

Yeah I am on my edbrowse soapbox again.

Will get off now.

You all have a good week.

Thanks again Pranav and others.
Jessica


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013



-- 
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

"Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away." -- A. de Saint-Exupery

https://cromarty.github.io/
http://eyesfreelinux.ninja/
http://www.raspberryvi.org/


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: