TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: THOMAS HEIER
from: JAN PANTELTJE
date: 2019-01-08 19:47:00
subject: Re: [Deutsch] Wie 16GB SD

Thomas Heier) wrote
>Moin!
>
>Geht das? Eine vorhandene SD-Karte 16 GB im laufendem Betrieb auf eine
>64GB-Karte klonen. Ein Kartenleser ist vorhanden. Pi 3b, Raspian
>(aktuell)
>
>Falls das im launfendem Betrieb nicht möglich ist: Wie eine 64er Karte
>am Mac vorbereiten (1 oder 2 Partionen?) und dann klonen? Einfach im
>Finder Daten kopiren wird woh nicht gehen - oder?

Kannst Du das übersetzen:
You need a Linux PC, Apple is dead anyways :-)

1) make a backup of your 16 GB SDcard, NOT on the raspi, but on a Linux PC:
 dd if=/dev/X of=cardimage.iso
where X is what
dmesg
shows what device your card is when you insert it, for example /dev/sdb
Remove SDcard

2) copy the backup image to your 64 GB card, NOT on the raspi, but on a Linux
PC:
 dd if=cardimage.iso of=/dev/XX

3) follow these instructions from

https://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-pa
rtition

Step by Step Instructions
Now stick the 64 GB SDcard into raspi, and boot.
From the command line or a terminal window enter the following
sudo fdisk /dev/mmcblk0
then type p to list the partition table
you should see three partitions.
if you look in the last column labeled System you should have
    W95 FAT32
    Linux
    Linux Swap
make a note of the start number for partiton 2, you will need this later.
though it will likely still be on the screen (just in case).
next type d to delete a partition.
You will then be prompted for the number of the partition you want to delete.
In the case above you want to delete both the Linux and Linux swap partitions.
So type 2
then type d again and then type 3 to delete the swap partition.
Now you can resize the main partition.
type n to create a new partition.
This new partition needs to be a primary partition so type p.
Next enter 2 when prompted for a partition number.
You will now be prompted for the first sector for the new partition.
Enter the start number from the earlier step (the Linux partition)
Next you will be prompted for the last sector you can just hit enter to accept
the default which will utilize the remaining disk space.
Type w to save the changes you have made.
Next reboot the system with the following command:
sudo reboot
once the system has reboot and you are back at the commandline enter the
following command:
sudo resize2fs /dev/mmcblk0p2
Note: this can take a long time (depending on the card size and speed) be
patient and let it finish so you do not mess up the file system and have to
start from scratch.
Once it is done reboot the system with the following command:
sudo reboot
You can now verify that the system is using the full capacity of the SD Card by
entering the following command:
df -h


I just did that to make 16 GB cards from 8GB cards (for several raspies).

--- 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™.