Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies