this post was submitted on 05 Aug 2023
12 points (87.5% liked)
Linux
48133 readers
1241 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It's possible Windows installed its bootloader and boot partition onto the drive you removed.
Assuming the rest of your system is on the drive you didn't swap out, you can try copying the Windows boot sector byte for byte from the swapped out disk to a partition on the new disk. Make sure to also set the necessary partition flags. Then you can probably boot a Windows installer and use the common boot fixes (fixboot.exe and friends).
Assuming you have a modern Windows system, you also need to make sure the UEFI partition (a FAT32 partition that contains a file path something like
/EFI/grub/grubx64.efi
) also contains the Windows bootloader.On a single disk you would end up with something like this:
Your Linux layout will depend on your settings. If you use LVM, all partitions are probably virtual partitions within one large partition. One or more may be wrapped inside an encrypted partition as well.
I tip my hat to your markdown skills
I just used a tool to generate Markdown 😅
Thanks for the response.
How would I go about doing this? Macrium Reflect?
On Linux my go to tool for resizing and creating partitions is GParted, with some help from command line tools like
dd
to copy the data over.Gnome's disk utility GUI has the option to create a disk image from a partition that you can later restore.
If you want to do a direct copy, without a temporary copy somewhere, I only know the terminal command line:
This would make a direct, byte for byte copy from the first partition of my Samsung SSD to the third partition of my Crucial SSD. Other ways of addressing the disk also exist (i.e. /dev/sda3 to /dev/sdb1, or in the other ways you can refer to a disk or partition somewhere in /dev/disk).
I'm sure there are Windows based tools that can do the same, I don't have experience with many of them. Last time I had to mess with this type of disk partitioning for Windows installs I think I used a tool called EaseUS?