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