Quote:
Originally Posted by mike_mck2
Well, I messed up my UEFI partition.
|
Nothing in your post indicates that you actually have an EFI partition.
But if you do that is certainly /dev/sda1. But maybe /dev/sda1 it is just the Windows 7 system partition. In any case, if you have one what you did didn't screw it up (see below).
Quote:
I picked up a Thinkpad X220 with Win 7 pro on it, and I installed Slackware 14.2 for a dual boot. During installation, the setup didn't offer ELILO, only LILO.
|
This is because your firmware was set to boot either in Legacy mode, or maybe in both UEFI and Legacy but with priority Legacy
Quote:
I skipped the LILO installation, rebooted, and made sure I was set for both UEFI and Legacy boot, with Legacy first.
Booted off of the Slack CD and ran pkgtool and tried to setup ELILO, but it just dumped me back to the main menu.
|
Of course as you are in Legacy mode Linux has no way to "talk" to the EFI firmware.
Tu be able to run ELILO you must be in UEFI mode.
But in this mode you won't be able to boot Linux because you have no EFI boot file (yet).
Quote:
Anyway, I went ahead and installed LILO to the MBR of /dev/sda, which was of course the UEFI partion. I think....
|
Of course not. /dev/sda is the whole device (the disk) whereas the EFI partition (if it exists) is just a slice of it and the MBR (Master Boot Record) is a partition table, not a partition.
Quote:
Anyway, while I'm not especially interested in booting into Win7, I would like to have the option, just in case.
Is there anything I can do to recover the UEFI partition at this point?
|
Again we are not sure there actually is one so far.
Quote:
Win7 is on /dev/sda2, 337mb partition on /dev/sda1, slackware is on /dev/sda3
|
We need to fist make sure what's what and if you really have an EFI partition
Please post the output of following commands, typed as root:
Code:
lsblk -o model,name,fstype,size,mountpoint
fdisk -l|sed -n "\@/dev@p"
But if /dev/sda1 is actually a Windows system partition (probably with an ntfs file system then) just appending the following stanza to /etc/lilo.conf should allow you to boot Windows 7:
Code:
other=/dev/sda1
label=windows
table=/dev/sda
Do that first, then run "lilo -t -v" and check for any error.
If all seems to go well, then type "lilo" to actually write the boot loader and reboot after that.
You should then see a "windows" entry in the boot menu and be able to start Windows.
If that works, there is no need to switch to UEFI.