Deutsch English Français Italiano |
<v8frll$24ic1$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jesper <Vitsky.kasperski@gmail.com> Newsgroups: comp.sys.raspberry-pi Subject: Re: Move bookworm system from SSD to NVME Date: Thu, 1 Aug 2024 13:31:01 +0200 Organization: A noiseless patient Spider Lines: 61 Message-ID: <v8frll$24ic1$1@dont-email.me> References: <v8cqd6$1gdnp$1@dont-email.me> <v8e73l$1o2dm$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 01 Aug 2024 13:31:02 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ed220cc1aed20b7676e554d2ce7c423f"; logging-data="2247041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l91E7fa3srZWqZ9s+2rd/" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:sP7Wd/u8dzWirQV4JlAe8I1aZdU= Content-Language: da, en-GB In-Reply-To: <v8e73l$1o2dm$1@dont-email.me> Bytes: 3366 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