Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Dual Boot Partitions
Date: Mon, 28 Feb 2011 13:21:11
Message-Id: AANLkTimiAF9ed4GGPUM5G0ONDg3XfPaJn5s4PbTtMUV4@mail.gmail.com
In Reply to: Re: [gentoo-user] Dual Boot Partitions by dhk
1 On 28 February 2011 12:25, dhk <dhkuhl@×××××××××.net> wrote:
2
3 > I did everything in Grub and haven't touched the MS Windows partitions
4 > since the initial install.
5 >
6 > The problem looks like Grub and some other stuff.  Can't boot to Windows
7 > or Linux.  It looks like the Grub menu never comes up.  However, it
8 > seems to know about it, because the menu options can still gets executed
9 > either after the time out or by pressing Enter.  Then some stuff gets
10 > printed to the screen and the boot process begins, but it errors before
11 > the Operating Systems come up.  When trying to boot to Windows, I have
12 > no idea why it errors.  When trying to boot to Linux, the fsck.ext3
13 > fails on /dev/sda7 which is my root partition.  It seems to think it's
14 > ext2, but when I checked (by booting to the livecd) with tune2fs -j it
15 > says it's already journaling.
16
17 Consider booting from a LiveCD, check that /dev/sda7 indeed contains
18 the root filesystem, unmount it and run:
19
20 e2fsck -f -v -c /dev/sda7
21
22 > After the boot fails and I give the root
23 > password, I looked in /dev and there aren't any sda partitions and I
24 > have 12 on the disk.  My disk looks like the following.
25
26 From a terminal start grub:
27 ======================================
28 # grub
29
30 GNU GRUB version 0.97 (640K lower / 9216K upper memory)
31
32 [ Minimal BASH-like line editing is supported. For the first word, TAB
33 lists possible command completions. Anywhere else TAB lists the possible
34 completions of a device/filename. ]
35
36 grub> find /grub/stage1
37 (hd0,2) <--If your /boot is indeed on /dev/sda3 and you have
38 installed grub in there
39
40 grub> root (hd0,2) <--as found above
41
42 grub> set (hd0) <--install the bootcode in the MBR of the 1st hard drive
43
44 grub> quit
45 ======================================
46
47 Then you need to set up the /boot/grub/grub.conf file with the correct
48 lines pointing to /dev/sda7 for your Linux root and chainloading
49 /dev/sda1 for your MSWindows OS.
50
51 As long as you have installed the right modules for chipset and fs in
52 the kernel you should be able to boot.
53
54 HTH.
55 --
56 Regards,
57 Mick