Is here easy way how to do it?
I tried to use
Code: Select all
dd
This is
Code: Select all
fdisk -l
Code: Select all
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0F8FCBCA-F7B2-429C-B02B-4A420C815CB7
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 739327 737280 360M EFI System
/dev/nvme0n1p2 739328 1001471 262144 128M Microsoft reserved
---------Win 10 partition-----------
/dev/nvme0n1p3 1001472 405315583 404314112 192.8G Microsoft basic data
---------Old Debian partition-----------
/dev/nvme0n1p4 405315584 484538367 79222784 37.8G Linux filesystem
/dev/nvme0n1p5 484538368 500117503 15579136 7.4G Linux swap
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 77489E99-4F1D-4E2A-A984-6BE441B8A849
Device Start End Sectors Size Type
/dev/sda1 2048 15626239 15624192 7.5G Linux swap
---------New Debian partition-----------
/dev/sda2 15626240 488397134 472770895 225.4G Linux filesystem
Code: Select all
/dev/nvme0n1
Code: Select all
/dev/sda
For now I can safely boot into old Debian. Any advice how to migrate it on /dev/sda?
I can format or change structure of new disk if it is needed.