Liste des Groupes | Revenir à cs raspberry-pi |
On 01/08/2024 09:20, The Natural Philosopher wrote:Ta. I thought it probably was. My Pi server build could not handle 3 USB drives so I need to reconstruct it with just 2, which means cloning the OS onto a fraction of a larger disk.On 31/07/2024 21:33, druck wrote:Yes the dd method will avoid any changes to partuuids, where as if you use the rsync method you will have to change the values in /etc/fstab and also potentially /boot/cmdline.txt (/boot/firmware/cmdline.txt on Bookworm).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).>
That will at least get over the problem of having a different partuuid etc
Is it possible to then create a DIFFERENT partition on the empty part of the new disk? And mount it as - say - /home?Yes, you can do this with gparted, move the existing /home to the new partition and edit /etc/fstab to contain a line similar to:-
PARTUUID=abcd1234-03 /home ext4 nofail,noatime,errors=remount-ro 0 0
Then do a:---
mount -a
---druck
Les messages affichés proviennent d'usenet.