xboxboy wrote:I'm wondering if I can clone the drive somehow?
Offline- absolutely. try Clonezilla. you dont *n
eed* to pre-partition the replacement drive if it is the same size, as Clonezilla will do this.
If the new SSD is a different / larger size, then do pre-partition, image the failing drive partitions to a third drive, (also acts as a backup if there is custard around), then clone back to partitions to the new drive. You may need to do a "dirty" reinstall - takes about 5 minutes, if the new efi partition gets borked, or if you are unfamiliar with "grub-rescue" see below:
Online- I do not know.
if boot to new drive gives a "grub prompt" or "grub rescue prompt"
grub rescue:
- Code: Select all
ls
this will give partition list
- Code: Select all
set prefix=(hdX,Y)/boot/grub
from "ls" above enter the location of boot file: grub2, (EFI implies GPT so set prefix=(hd0,gpt1)/boot/grub2 is the likely entry).
- Code: Select all
set root=(hdX,Y)
(again EFI implies root=(hd0,gpt1) ).
- Code: Select all
insmod normal
- Code: Select all
normal
should cause system to boot.
presumably system is running with no desktop?
open a root terminal and run
- Code: Select all
# update-grub2
reboot to be sure system boot up is running correctly
I have performed the above a few times with a bios legacy GPT HDD setup, not with a UEFI system.