Re: Move bookworm system from SSD to NVME

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Move bookworm system from SSD to NVME
De : Vitsky.kasperski (at) *nospam* gmail.com (Jesper)
Groupes : comp.sys.raspberry-pi
Date : 01. Aug 2024, 12:31:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8frll$24ic1$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 31.07.2024 22:33, druck wrote:
On 31/07/2024 08:51, Jesper wrote:
    3: Connect NVME to raspi, boot from SD-card and copy the system from SSD to NVME. But how?
 It's not Windows, you don't need 3rd party tools to do simple things such as copying files to new discs, everything you need is provided, although it may not be obvious what to do.
 Option 3 is the best, as both the drives can be connected to the Pi, booting from an OS image the SD card allows you to perform the copy.
 As long as your new NVME is larger than the SSD, you can just do low level copy with the dd command, then resize the rootfs partition on the new drive to use any extra space with the gparted program (if not installed use: apt install gparted).
 e.g. dd if=/dev/sda of=/dev/nvme0n1 bs=1M status=progress
 Use fdisk -l to find the nvme disk name as it may not be as above.
 

---druck
Thank you very much to all for taking your time to reply.
By now I think the first solution from druck will be my first try (when I get the NVME). I have before been looking at creating an image (as suggested by Chris Townley today) , but ran in to things I did not understand, or was ment for an earlier version of raspberry pi os. Then i posted the question here.
So if we look at the df -h listing from my first post:
raspberrypi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           805M  6.2M  799M   1% /run
/dev/mmcblk0p2   57G  5.0G   49G  10% /
tmpfs           4.0G  368K  4.0G   1% /dev/shm
tmpfs           5.0M   48K  5.0M   1% /run/lock
/dev/mmcblk0p1  510M   75M  436M  15% /boot/firmware
tmpfs           805M  160K  805M   1% /run/user/1000
/dev/sda2       234G   19G  203G   9% /media/raspberrypi/rootfs
/dev/sda1       511M   76M  436M  15% /media/raspberrypi/bootfs
Then the system to copy is on the 2 last lines. Correct?
And following drucks first suggestion I should run these 2 commands:
1: dd if=/dev/sda2 of=/dev/nvme0n1 bs=1M status=progress
and
2: dd if=/dev/sda1 of=/dev/nvme0n1 bs=1M status=progress
replacing the name of the NVME to what I see when it is installed on the raspi.
Best regards, and thank you for the help.
--
Jesper
--
Jesper

Date Sujet#  Auteur
31 Jul 24 * Move bookworm system from SSD to NVME56Jesper
31 Jul 24 +* Re: Move bookworm system from SSD to NVME52druck
1 Aug 24 i+* Re: Move bookworm system from SSD to NVME3The Natural Philosopher
1 Aug 24 ii`* Re: Move bookworm system from SSD to NVME2druck
2 Aug 24 ii `- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
1 Aug 24 i`* Re: Move bookworm system from SSD to NVME48Jesper
1 Aug 24 i +* Re: Move bookworm system from SSD to NVME46The Natural Philosopher
1 Aug 24 i i`* Re: Move bookworm system from SSD to NVME45Jesper
1 Aug 24 i i +* Re: Move bookworm system from SSD to NVME43Ahem A Rivet's Shot
1 Aug 24 i i i+- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
1 Aug 24 i i i`* Re: Move bookworm system from SSD to NVME41Jesper
1 Aug 24 i i i +- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
1 Aug 24 i i i +* Re: Move bookworm system from SSD to NVME38Ahem A Rivet's Shot
1 Aug 24 i i i i+- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
1 Aug 24 i i i i`* Re: Move bookworm system from SSD to NVME36Jesper
1 Aug 24 i i i i +* Re: Move bookworm system from SSD to NVME33Björn Lundin
2 Aug 24 i i i i i+- Re: Move bookworm system from SSD to NVME1Jesper
2 Aug 24 i i i i i+* Re: Move bookworm system from SSD to NVME18Björn Lundin
2 Aug 24 i i i i ii`* Re: Move bookworm system from SSD to NVME17The Natural Philosopher
2 Aug 24 i i i i ii `* Re: Move bookworm system from SSD to NVME16Björn Lundin
2 Aug 24 i i i i ii  `* Re: Move bookworm system from SSD to NVME15The Natural Philosopher
3 Aug 24 i i i i ii   +* Re: Move bookworm system from SSD to NVME9Björn Lundin
3 Aug 24 i i i i ii   i`* Re: Move bookworm system from SSD to NVME8The Natural Philosopher
3 Aug 24 i i i i ii   i `* Re: Move bookworm system from SSD to NVME7Björn Lundin
3 Aug 24 i i i i ii   i  `* Re: Move bookworm system from SSD to NVME6The Natural Philosopher
3 Aug 24 i i i i ii   i   `* Re: Move bookworm system from SSD to NVME5Björn Lundin
4 Aug 24 i i i i ii   i    `* Re: Move bookworm system from SSD to NVME4Computer Nerd Kev
4 Aug 24 i i i i ii   i     `* Re: Move bookworm system from SSD to NVME3The Natural Philosopher
4 Aug 24 i i i i ii   i      `* Re: Move bookworm system from SSD to NVME2The Natural Philosopher
5 Aug 24 i i i i ii   i       `- Re: Move bookworm system from SSD to NVME1Lawrence D'Oliveiro
3 Aug 24 i i i i ii   +* Re: Move bookworm system from SSD to NVME4Lawrence D'Oliveiro
3 Aug 24 i i i i ii   i`* Re: Move bookworm system from SSD to NVME3Björn Lundin
3 Aug 24 i i i i ii   i `* Re: Move bookworm system from SSD to NVME2Richard Kettlewell
4 Aug 24 i i i i ii   i  `- Re: Move bookworm system from SSD to NVME1Lawrence D'Oliveiro
3 Aug 24 i i i i ii   `- Re: Move bookworm system from SSD to NVME1Richard Kettlewell
16 Aug 24 i i i i i`* Re: Move bookworm system from SSD to NVME13Jesper
16 Aug 24 i i i i i +* Re: Move bookworm system from SSD to NVME6The Natural Philosopher
16 Aug 24 i i i i i i`* Re: Move bookworm system from SSD to NVME5Jesper
16 Aug 24 i i i i i i `* Re: Move bookworm system from SSD to NVME4The Natural Philosopher
16 Aug 24 i i i i i i  `* Re: Move bookworm system from SSD to NVME3Jesper
16 Aug 24 i i i i i i   +- Re: Move bookworm system from SSD to NVME1Jesper
16 Aug 24 i i i i i i   `- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
16 Aug 24 i i i i i +* Re: Move bookworm system from SSD to NVME3Ahem A Rivet's Shot
16 Aug 24 i i i i i i`* Re: Move bookworm system from SSD to NVME2The Natural Philosopher
16 Aug 24 i i i i i i `- Re: Move bookworm system from SSD to NVME1Jesper
16 Aug 24 i i i i i `* Re: Move bookworm system from SSD to NVME3druck
17 Aug 24 i i i i i  `* Re: Move bookworm system from SSD to NVME2Lawrence D'Oliveiro
19 Aug 24 i i i i i   `- Re: Move bookworm system from SSD to NVME1druck
2 Aug 24 i i i i `* Re: Move bookworm system from SSD to NVME2The Natural Philosopher
2 Aug 24 i i i i  `- Re: Move bookworm system from SSD to NVME1Lawrence D'Oliveiro
1 Aug 24 i i i `- Re: Move bookworm system from SSD to NVME1druck
1 Aug 24 i i `- Re: Move bookworm system from SSD to NVME1The Natural Philosopher
1 Aug 24 i `- Re: Move bookworm system from SSD to NVME1druck
1 Aug 24 `* Re: Move bookworm system from SSD to NVME3Lawrence D'Oliveiro
1 Aug 24  +- Re: Move bookworm system from SSD to NVME1Chris Townley
1 Aug 24  `- Re: Move bookworm system from SSD to NVME1druck

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal