[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: transferring boot



Eben King (HE12025-08-02):
> I have made these partitions:
> 
> Device        Start      End  Sectors  Size Type
> /dev/sda1      2048  1953792  1951745  953M Linux filesystem
> /dev/sda2   1955840  6150144  4194305    2G Linux filesystem
> /dev/sda3   6152192 48095232 41943041   20G Linux filesystem
> /dev/sda4  48097280 48195583    98304   48M Linux swap
> /dev/sda5  48195584 67069952 18874369    9G Linux filesystem
> /dev/sda6  67072000 69023744  1951745  953M BIOS boot

Did you not say you wanted to switch to UEFI? You did not.

And of course, you are wasting the excellent occasion to switch to LVM.

> Grub installs without error on that drive, but drops me into grub's command
> line when I boot from it.  Then when I do
> 
> boot (hd0,gptN)

Well, yes, that is not how the boot command works. You need something
like:

set root=(hd1,gpt1)
configfile /grub/grub.cfg

(could be other than hd1, UEFI might not see the disks in the same order
as Linux; check with ls) to have it use the config file of the existing
bootloader and start your system as it used to.

And once you are finished migrating, you need to run update-grub to
rebuild a configuration taking into account the location of the new root
and boot filesystems, and possibly re-run grub-install to make sure it
uses it.

Regards,

-- 
  Nicolas George


Reply to: