Migrate Linux/win10 dual boot from MBR nvme drive to a new GPT nvme drive
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Migrate Linux/win10 dual boot from MBR nvme drive to a new GPT nvme drive
Hello. I am attempting to migrate my current dual boot (opensuse/win10) setup from one nvme(nvme1) drive to a bigger & faster drive (nvme0). I'd like to utilize ~100gb for the opensuse root (/) and ~400gb for windows on nvme0. I mount /home to a separate ssd and will move that to nvme1 after the migration. I'd also like to keep grub2 and other boot information on nvme1 since I heard windows10 updates might overwrite the boot record.
nvme1 uses MBR, and I am interested in using GPT on nvme0 due to faster bootup/shutdown times.
fdisk -l for nvme1
Code:
Disk /dev/nvme1n1: 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: dos
Disk identifier: 0x006fe885
Device Boot Start End Sectors Size Id Type
/dev/nvme1n1p1 * 2048 281810337 281808290 134.4G 7 HPFS/NTFS/exFAT
/dev/nvme1n1p2 281810944 283592703 1781760 870M 27 Hidden NTFS WinRE
/dev/nvme1n1p3 * 283594752 388452351 104857600 50G 83 Linux
/dev/nvme1n1p4 388452352 405225471 16773120 8G 82 Linux swap / Solaris
I've tried cloning nvme1 -> nvme0 using clonezilla, however that appears to preserve the MBR partition table. Cloning partition->partition was giving me 'drive full' errors, even though the target was much larger than the source.
I also tried creating partitions using gparted on nvme0 and I'm not sure if I was successful, because I see the following via fdisk -l even though I created an ext4 file system on /dev/nvme0n1p1:
Code:
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 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: 2762A1CE-CDA6-402B-A862-6296FB7B0182
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 204802047 204800000 97.7G EFI System
/dev/nvme0n1p2 204802048 974981119 770179072 367.3G EFI System
/dev/nvme0n1p3 974981120 976773119 1792000 875M Windows recovery environment
I just don't know where to really go to proceed, does anybody have any guidance on what steps I should take? I'd prefer not to reinstall either OS if I didn't have to.
nvme1 uses MBR, and I am interested in using GPT on nvme0 due to faster bootup/shutdown times.
Where did you get the idea that there could be a difference in times according to whether MBR or GPT is used? The bus, media and filesystem selection determine I/O speed, not the partitioning type. I do partition to partition cloning routinely. It's part of my backup/restore system. P2P works well once the tools' ropes are understood.
Indeed.
Not the only strange thing - why have you allocated the new nmvme partitions as type EFI ?. I don't see an EFI on the old SSDs, which (to me) implies a BIOS based system. If you go gpt, you'll need a BIOS_boot partition. And that's just for grub - I have no idea what Windows will do when the architecture of the disk changes like that. I always just re-install when I have to change a Win disk - path of least resistance.
Stick with MBR (aka dos-mode) partitioning to save yourself the grief - there is likely no advantage to gpt with such small disks. I'm not a fan of imaging systems, but should work ok.
If you want windows on a GPT disk, it must be EFI or it will fail. With Linux, you can create a BIOS boot partition as suggested above and then use GPT. It will be a lot easier to just stick with MBR partitioning as suggested if you do not want to reinstall.
Where did you get the idea that there could be a difference in times according to whether MBR or GPT is used?
I think I got that idea by watching this video from MS about their mbr2gpt utility, though looking at it again it seems they were talking about uefi vs bios.
Quote:
Originally Posted by syg00
Indeed.
Not the only strange thing - why have you allocated the new nmvme partitions as type EFI ?
That was my failed attempt at creating a partition structure with gparted.
Given the feedback here, I'm not going to mess with GPT for now as my drives are <2tb. What steps are recommended at this point? Clonezilla device-to-device from nvme1->nvme0?
As I said, I gave up attempting to clone Win systems years ago. Unless the partition structure is the same (boot/system, physical order) it always seemed to bitch and moan - in one case I had to ring M$osft and get the system re-activated because I had "changed disk too often". And that took hours.
Idiotic arrangement.
You state clonezilla wouldn't work partition-to-partition, but in theory that should be a good way to go. I also haven't bothered with it in years, so can't comment on current state of the tool. gparted apparently allows you to "copy-and-paste" partitions, so that might be quickest for the Linux partitions. Personally I just allocate partitions then rsync and cleanup things like bootloader and fstab later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.