1 |
On Sat, 08 Mar 2014 08:23:21 +0100 |
2 |
Dan Johansson <dan@×××.nu> wrote: |
3 |
|
4 |
> I am considering buying a new Notebook and found that a "LENOVO |
5 |
> IdeaPad Z510" would fit into my budget and seems quite OK. |
6 |
> Does anyone here on the list have any experience with the Z510 running |
7 |
> dual-boot (Win8.x and Gentoo) that would like to share their |
8 |
> experience? |
9 |
|
10 |
I have an Ideapad y510p that's dual-booting Win8.x and Gentoo. It |
11 |
shipped with 8.0 and after I got it dual-booting I upgraded to 8.1. |
12 |
It's not quite the same model, but I guess it can't hurt to type what I |
13 |
remember. I didn't take notes, because if I ran into any trouble it |
14 |
was my plan just to wipe the drive and install only Gentoo. I just |
15 |
flew by the seat of my pants, so I'm sure this isn't the smartest way |
16 |
to do things. |
17 |
|
18 |
My model came with a smallish SSD meant for caching. The SSD is sda and |
19 |
the HDD is sdb. |
20 |
|
21 |
Here's the current state of sdb, from gdisk: |
22 |
|
23 |
Number Start (sector) End (sector) Size Code Name |
24 |
1 2048 2050047 1000.0 MiB 2700 Basic data partition |
25 |
2 2050048 2582527 260.0 MiB EF00 EFI system partition |
26 |
3 2582528 4630527 1000.0 MiB FFFF Basic data partition |
27 |
4 4630528 4892671 128.0 MiB 0C01 Microsoft reserved part |
28 |
5 1563490304 1870690303 146.5 GiB 0700 Basic data partition |
29 |
6 1870690304 1923119103 25.0 GiB 0700 Basic data partition |
30 |
7 1923119104 1953523711 14.5 GiB 2700 Basic data partition |
31 |
8 1562466304 1563490303 500.0 MiB 0700 |
32 |
9 4892672 5199871 150.0 MiB 0700 |
33 |
10 5199872 21583871 7.8 GiB 0700 |
34 |
11 21583872 1562466303 734.8 GiB 0700 |
35 |
|
36 |
sdb1-sdb7 existed on the drive when I got it. sdb5 is where Windows is |
37 |
installed. To make room for Gentoo, I shrunk sdb5 it and slid it to the |
38 |
end of its space using the GUI partition tool on System Rescue CD, |
39 |
which I think is gparted. I also used System Rescue CD to install |
40 |
Gentoo. It's important to boot System Rescue CD in EFI mode, at least |
41 |
for installing the bootloader. |
42 |
|
43 |
sdb8 is meant for an installation of System Rescue CD, but I haven't |
44 |
gotten around to installing it. |
45 |
|
46 |
sdb9 is /boot, sdb10 is swap, and sdb 11 is Gentoo / |
47 |
|
48 |
I emerged grub in the chrooted environment. I mounted sdb2 |
49 |
at /boot/efi, installed grub on sdb9 (/boot), and ran grub-mkconfig to |
50 |
make a config file for grub. The output indicated that it had found |
51 |
both Gentoo and Windows. The bios (or whatever it's called now) |
52 |
setup recognized grub as a new EFI-booting option and let me move it to |
53 |
first priority, and I got to the grub menu. |
54 |
|
55 |
grub booted Gentoo just fine, but Windows booting failed, something |
56 |
about not finding partitions or files. Instead of troubleshooting that, |
57 |
I disabled os probing for grub (GRUB_DISABLE_OS_PROBER=true |
58 |
in /etc/default/grub) and added Windows via /etc/grub.d/40_custom , |
59 |
like so: |
60 |
|
61 |
menuentry "Windows 8.x" { |
62 |
set root='(hd1,gpt2)' |
63 |
chainloader /EFI/microsoft/BOOT/bootmgfw.efi |
64 |
} |
65 |
|
66 |
Running grub-mkconfig after that got me a grub.cfg which works to boot |
67 |
Gentoo and Windows, though I don't get any fancy options for Windows, |
68 |
such as safe mode. |