Re: Move bookworm system from SSD to NVME

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Move bookworm system from SSD to NVME
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.sys.raspberry-pi
Date : 01. Aug 2024, 17:52:02
Autres entêtes
Organisation : A little, after lunch
Message-ID : <v8gefi$28j09$2@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 01/08/2024 16:47, Jesper wrote:
On 01.08.2024 13:55, The Natural Philosopher wrote:
On 01/08/2024 12:31, Jesper wrote:
Then the system to copy is on the 2 last lines. Correct?
>
No.
>
In order to preserve the partition information *you must dd the raw disk*
>
dd id=/dev/sda od = /dev/nvme0n1 (or whatever)
>
That will create a two partition disk with the UUIDS of the partitions the same as is mentioned in the boot data: If they don't match it wont
 >boot.
 Are you saying that this command (the one right above) will clone the whole disc, and the job is done? Probably not. When I run "dd --help" on the system i want to clone, there is no information about the switch "id" you use in the command.
 
Soory. old brain.
dd if=/dev/sda  of = /dev/nvme0n1 (or whatever)

>
Viz:
>
>
df -h | grep ^/dev/
Running that command on my system gives:
raspberrypi@raspberrypi:~ $ df -h | grep ^/dev/
/dev/sda2           234G   19G   203G    9% /
/dev/sda1           511M   76M   436M   15% /boot/firmware
For /dev/sda1 it says "firmware", so it probably should/can not be copied, and is permanent on the raspi5-system
It has to be copied because it contains the boot information

 
/dev/root        15G  1.5G   13G  11% /
/dev/mmcblk0p1  255M   51M  205M  20% /boot
>
These are the TWO partitions on a bootable PI device
In /boot which is DOS style formatted will be instructions on how to boot the main system
>
In the main bootable system there will be the fstab file which needs to tally with the partition ids.
>
more /etc/fstab:
>
proc            /proc           proc    defaults          0       0
PARTUUID=b8c9fbb7-01  /boot           vfat    defaults          0       2
PARTUUID=b8c9fbb7-02  /               ext4    defaults,noatime  0       1
>
In the BOOT partition is this file
  more *.txt
::::::::::::::
cmdline.txt
::::::::::::::
console=serial0,115200 console=tty1 root=PARTUUID=b8c9fbb7-02 rootfstype=ext4 fs
ck.repair=yes rootwait modules-load=dwc2,g_ether
>
Unless the bootloader finds that partition ID, it will *not load Linux*
>
AIUI the boot sequence is this:
>
Look for a DOS style VFAT partition on SD card, then USB, then NVME.
>
Look for a file named 'cmdline.txt' parse the root partition ID  and attempt to load a linux image from the boot  partition and have the kernel image mount the aforementioned PARTUUID as root partition.
>
If the PARTUUIDs don't match, the boot sequence hangs
>
So it is important to have the same PARTUUID in /boot/cmdline.txt, and in /etc/fstab, and in the partition label on the boot partition
>
The easy way to do this is not to clone the partitions, but the RAW DISK
>
>
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.
>
That wont work, but you wont destroy anything by trying
 So I will not try :-)
 I think I should not take any more of your time for this project. Using a PC and a windows program (Macrium Reflect) to clone the disc will take maybe 30 minutes. Learning the ins and outs of how it should be done in raspi-os can take 14 days for a windows-addict:-)
 
dd  will clone it in a lot less time
And that is the point, You MUST clone the WHOLE DISK. Not the partitions inside it

Best regards, and thank you for the help so far.
--
In todays liberal progressive conflict-free education system, everyone gets full Marx.

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