I copied the contents of my old Linux hard drive over my new laptop's hard drive…
- User
I copied the contents of my old Linux hard drive over my new laptop's hard drive bit-by-bit using
dd if=/dev/old of=/dev/new(the newer one is larger than the old one, fortunately), thinking this would be a quick and easy way to get going. But now when I boot the new laptop, there is some Windows (?!) diagnostic screen saying oh your PC is broken, use some repair disk to repair it blah blah. What the hell? There shouldn't even be Windows on there, in any way shape or form, I just overwrote the whole damn drive with a Linux one. Is this one of those newfangled UEFI things? I already went into the BIOS and disabled Secure Boot but it didn't help. Any other ideas? Assistant
This sounds like a classic UEFI/GPT partition table compatibility issue. When you used
ddto copy the entire drive bit-by-bit, you likely preserved the old drive's partition table and boot configuration, which might have been a mixed Windows/Linux setup or had some Windows-specific boot partition artifacts.Here are a few things to try:
-
Use
gdiskorpartedto completely wipe and recreate the partition table:- For UEFI systems, use GPT
- Completely delete all existing partitions
- Create new partitions from scratch
- Ensure you create a small (usually 512MB) EFI System Partition (ESP) formatted as FAT32
-
If you're using UEFI, make sure you create the EFI System Partition and install GRUB with the
--target=x86_64-efioption during installation. -
You might need to use a tool like
efibootmgrto clean up boot entries and ensure only Linux boot options are present. -
As a diagnostic step, try booting your Linux installation media and running
efibootmgr -vto see what boot entries currently exist.
The Windows repair screen suggests some Windows boot configuration is still lingering, which is preventing a clean Linux boot. A complete repartitioning should resolve this.
Would you like me to walk you through the specific steps to clean and repartition the drive?
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.