Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107181 - grub-install does not work as described when no separate /boot partition
Summary: grub-install does not work as described when no separate /boot partition
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-25 08:04 UTC by viraptor
Modified: 2005-11-25 05:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grub-install fails (noboot.png,10.82 KB, image/png)
2005-11-24 16:09 UTC, Xavier Neys (RETIRED)
Details
grub-install works (noboot.png,10.07 KB, image/png)
2005-11-25 05:20 UTC, Xavier Neys (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description viraptor 2005-09-25 08:04:08 UTC
To run grub-install user needs to create '/etc/mtab' listing partition which
holds '/boot', or '/'
If you install gentoo without '/boot' partition and '/boot' device is the same
as '/', then doing "cp /proc/mounts /etc/mtab" is wrong.
It lists double '/' mounts - one from cd image and one from chroot. If you just
copy '/proc/mounts' and have '/boot' dir on '/' mount, then you have to remove
first '/' mount, or grub-install will find cd image first and complain about not
finding kernel file or '/boot'.

Reproducible: Always
Steps to Reproduce:
1. install gentoo with only / partition
2. "cp /proc/mounts /etc/mtab"
3. /etc/mtab lists 2 '/' partitions - first of which is from image on cd and
that one if found by grub-install
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-10-06 03:18:55 UTC
Can someone please verify this? 
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2005-11-24 16:09:15 UTC
Created attachment 73537 [details]
grub-install fails

This is what happens. Removing the first line with rootfs makes it work.

Now I have to reinstall with a /boot partition and make sure whatever I do does
not break :)
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2005-11-25 05:20:02 UTC
Created attachment 73565 [details]
grub-install works

excluding the rootfs line works in both cases, as expected :)
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-11-25 05:33:39 UTC
Fixed. Thanks for reporting.