TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROB MORLEY
from: THE NATURAL PHILOSOPHER
date: 2019-03-01 04:26:00
subject: Re: Copying a working SD

On 28/02/2019 18:06, Rob Morley wrote:
> On Thu, 28 Feb 2019 15:55:26 +0000
> The Natural Philosopher  wrote:
>>
>> Looking at my Pi the card has two partitions. One is ext4 and is
>> mounted on /
>>
>> The other is on /boot, type vfat
>>
>> Now, as I understand it, the PI has no boot sector, so all you need
>> to do is partition a raw card with anbout 44M as VFAT, and the rest
>> as ext 4.
>>
>> Then copy your existing files from one to the other.
>>
>> You will need to patch the /etc/fstab on the new card to reflect the
>> blockids of the new partitions
>>
>> Or make the new  partition UUIDS the same as the old SD card
>>
>> Linux command blkid is your friend here.
>>
>>
> stick the card in a USB card reader then
> dd if=/dev/yourusb of=/home/yourname/somefile.img bs=4096
> swap cards and
> dd if=/home/yourname/somefile.img of=/dev/yourusb bs=4096
> no messing around with partitions required
>
except you will end up with a partition the same size you started with.


--
"In our post-modern world, climate science is not powerful because it is
true: it is true because it is powerful."

Lucas Bergkamp

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.