Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.raspberry-pi    |    Raspberry Pi computers & related hardwar    |    26,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 24,678 of 26,127    |
|    Jesper to druck    |
|    Re: Move bookworm system from SSD to NVM    |
|    01 Aug 24 13:31:01    |
      From: Vitsky.kasperski@gmail.com              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              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca