Ebuild sys-boot/grub-static-0.97-r5 needs to be created syncing with sys-boot/grub-0.97-r5 which has support for 256 bit inode ext3 created by new filesystems tools. Using sys-boot/grub-static-0.97 results in the following error: livecd / # grub-install --no-floppy /dev/sda Could not find device for /boot: Not found or not a block device. This is for amd64 (nocona) with no-multilib. Reproducible: Always Steps to Reproduce: 1. Follow instructions for installing Gentoo amd64 (nocona) with no-multilib. In this case the Stage 3 hardened no-multilib profile was used. 2. When attempting to install grub the issue is encountered. - Grub attempted to be installed into MBR of /dev/sda - Partition /dev/sda1 is ext3 created with Linux Live CD 2008.0. - /boot and / on the same partition Actual Results: Manual install attempted: GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 2: Bad file or directory type grub> Contents of /boot/grub/device.map: livecd / # cat /boot/grub/device.map (hd0) /dev/sda livecd / # ls -la /boot/grub/ total 516 drwxr-xr-x 2 root root 4096 Sep 30 22:17 . drwxr-xr-x 3 root root 4096 Sep 29 20:46 .. -rw-r--r-- 1 root root 15 Sep 30 03:03 device.map -rw-r--r-- 1 root root 8224 Oct 23 2006 e2fs_stage1_5 -rw-r--r-- 1 root root 8096 Oct 23 2006 fat_stage1_5 -rw-r--r-- 1 root root 7264 Oct 23 2006 ffs_stage1_5 -rw-r--r-- 1 root root 284 Sep 30 18:13 grub.conf -rw-r--r-- 1 root root 1705 Oct 23 2006 grub.conf.sample -rw-r--r-- 1 root root 7392 Oct 23 2006 iso9660_stage1_5 -rw-r--r-- 1 root root 8896 Oct 23 2006 jfs_stage1_5 lrwxrwxrwx 1 root root 9 Sep 29 20:46 menu.lst -> grub.conf -rw-r--r-- 1 root root 7456 Oct 23 2006 minix_stage1_5 -rw-r--r-- 1 root root 10112 Oct 23 2006 reiserfs_stage1_5 -rw-r--r-- 1 root root 33856 Oct 23 2006 splash.xpm.gz -rw-r--r-- 1 root root 512 Oct 23 2006 stage1 -rw-r--r-- 1 root root 117148 Oct 23 2006 stage2 -rw-r--r-- 1 root root 117148 Oct 23 2006 stage2.old -rw-r--r-- 1 root root 117148 Oct 23 2006 stage2_eltorito -rw-r--r-- 1 root root 7616 Oct 23 2006 ufs2_stage1_5 -rw-r--r-- 1 root root 6784 Oct 23 2006 vstafs_stage1_5 -rw-r--r-- 1 root root 9608 Oct 23 2006 xfs_stage1_5 livecd / # cd /boot livecd boot # ls System.map-genkernel-x86_64-2.6.25-hardened-r7 boot grub initramfs-genkernel-x86_64-2.6.25-hardened-r7 kernel-genkernel-x86_64-2.6.25-hardened-r7 livecd boot # cat /boot/grub/grub.conf default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xmp.gz title Gentoo GenKernel root (hd0,0) kernel /boot/kernel-genkernel-x86_64-2.6.25-hardened-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda1 udev initrd /boot/initramfs-genkernel-x86_64-2.6.25-hardened-r7 Expected Results: Grub should be able to find Stage1 and grub.conf to install successfully. None
livecd boot # tune2fs -l /dev/sda1 tune2fs 1.40.9 (27-Apr-2008) Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 10a6894f-557c-42d7-aa53-acea4d4cf55e Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 3662848 Block count: 14649264 Reserved block count: 732463 Free blocks: 13287342 Free inodes: 3409143 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 1020 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8176 Inode blocks per group: 511 Filesystem created: Mon Sep 29 15:25:15 2008 Last mount time: Tue Sep 30 17:09:10 2008 Last write time: Tue Sep 30 17:09:10 2008 Mount count: 2 Maximum mount count: 39 Last checked: Mon Sep 29 15:25:15 2008 Check interval: 15552000 (6 months) Next check after: Sat Mar 28 15:25:15 2009 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Journal inode: 8 Default directory hash: tea Directory Hash Seed: 15933d24-8370-4609-b89d-be01f4ec4556 Journal backup: inode blocks
amd64: You need to spin a new grub-static for yourself, using grub-0.97-r6. It also fixes the following: - support for larger kernels (bug 160801). - non-automagical ncurses - includes a better grub.conf.gentoo example. - lots of fixups for setup_boot_dir (I suggest copying it from the ebuild) - Avoid buggy BIOS RAM issue (bug 188312) - long commandline support (bug 183443, 216307) - GPT support for disks [critical on disks >=2TiB, useful on lots of others] (bug 178586) - sync disks during grub-install - AoE support - 256-byte inodes The only warning I have for it, is that portage versions <2.1.5.7 can cause /boot/grub/splash.xpm.gz to vanish.
This bug has been open for almost a month. The problem has existed since the 2008.0 release. It shows up late in the installation process, when it may not be possible to repartition without reformatting. The error message is misleading. If we can't get a fix, can we at least get a warning?
ok, the amd64 team responded to me now, so I bumped it as base-system. Make sure you follow the upgrade path!
(In reply to comment #4) > ok, the amd64 team responded to me now, so I bumped it as base-system. Make > sure you follow the upgrade path! > So what is the upgrade path? My computer is sitting at home with no usable OS on it because of this. What steps can I take from the livecd that will enable me to install grub and get it up and running? Is it as simple as emerge sync && emerge grub-static ? Because the grub that comes with the ONLY AMD64 livecd STILL has this problem.
xitrium: boot to the full livecd environment (eg don't cross-boot using the livecd grub), emerge sync, emerge grub-static, READ ALL of THE OUTPUT about updating the MBR copy of grub.