Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] [SOLVED]
Date: Sun, 08 Sep 2013 16:09:08
Message-Id: 522CA120.6@gmail.com
In Reply to: Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] by Bruce Hill
1 On 09/08/2013 06:20 PM, Bruce Hill wrote:
2 > On Sat, Sep 07, 2013 at 11:31:47PM +0200, meino.cramer@×××.de wrote:
3 >> the problem is in your fstab:
4 >>
5 >> You try first to mount /boot before mounting root "/"....
6 >> Cant work...
7 >>
8 >> Try this one:
9 >> /dev/sda3 / ext4 noatime 0 1
10 >> /dev/sda1 /boot ext2 default,noatime 0 2
11 >> /dev/sda2 none swap sw 0 0
12 >> /dev/sda5 /home ext4 noatime 0 2
13 >> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
14 >>
15 >>
16 >> best regards,
17 >> mcc
18 > That advice is wrong. See fstab example here:
19 >
20 > /dev/sda1 /boot ext2 noatime 1 2
21 > /dev/sda2 / xfs noatime 0 1
22 > /dev/sda3 none swap sw 0 0
23 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
24 >
25 > To the OP. Never <snip> part of a file asked for help. There might be
26 > something in the file unknown to you that is pertinent to the problem.
27 >
28 > You have "default" in your /etc/fstab line for /boot, when the option is
29 > actually "defaults". I haven't tested to see what difference that makes, but
30 > you should add the s to default anyway. See "man mount".
31 >
32 > Cheers,
33 >
34 > Bruce
35 Thanks for your input.
36
37 Turns out /boot wouldn't mount at system start-up because I had
38 'default' instead of 'defaults' specified for /boot in /etc/fstab.
39
40 Now /boot gets mounted automatically without any further ado.
41
42 box0=; mount|grep ^/dev
43 /dev/sda3 on / type ext4 (rw,noatime,data=ordered)
44 /dev/sda1 on /boot type ext2 (rw,noatime)
45 /dev/sda5 on /home type ext4 (rw,noatime)
46
47 Thanks.