Heya, having trouble setting up GRUB2.
Here's the setup: Hardware: Pentium 4, 2x ATA HD 80GB, 512MB Software RAID 1 (metadata v=1.2) md0 (Boot) md1 (Swap) md2 (root) Live-System: Xubuntu 12.04 (32-bit) LFS 7.4 Command (inside chroot): grub-install /dev/sda OUTPUT: /usr/share/grub/grub-mkconfig_lib: line 53: 12058 Segmentation fault (core dumped) "${grub_probe}" -t fs "$path" > /dev/null 2>&1 Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting. Small debug: Command (inside chroot): mount -v OUTPUT: /dev/md2 on / type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) /dev/md0 on /boot type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered) udev on /dev type devtmpfs (rw,relatime,size=245752k,nr_inodes=61438,mode=755) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) shm on /run/shm type tmpfs (rw,relatime) Command (inside chroot): ls -al /dev/sda OUTPUT: brw-rw---- 1 root daemon 8, 0 Dec 18 15:45 /dev/sda Command (inside chroot): bash -x grub-install /dev/sda OUTPUT: + test -f /usr/share/locale/zh_CN/LC_MESSAGES/grub.mo + cp -f /usr/share/locale/zh_CN/LC_MESSAGES/grub.mo /boot/grub/locale/zh_CN.mo + for dir in '"${localedir}"/*' + test -f /usr/share/locale/zh_HK/LC_MESSAGES/grub.mo + for dir in '"${localedir}"/*' + test -f /usr/share/locale/zh_TW/LC_MESSAGES/grub.mo + cp -f /usr/share/locale/zh_TW/LC_MESSAGES/grub.mo /boot/grub/locale/zh_TW.mo + test -f /usr/share/grub/themes/starfield/theme.txt + test -f /usr/share/grub/unicode.pf2 + is_path_readable_by_grub /boot/grub + path=/boot/grub + test -e /boot/grub + : + /usr/sbin/grub-probe -t fs /boot/grub /usr/share/grub/grub-mkconfig_lib: line 53: 13018 Segmentation fault (core dumped) "${grub_probe}" -t fs "$path" > /dev/null 2>&1 + return 1 + gettext_printf 'Path `%s'\'' is not readable by GRUB on boot. Installation is impossible. Aborting.\n' /boot/grub + gettext_printf_format='Path `%s'\'' is not readable by GRUB on boot. Installation is impossible. Aborting.\n' + shift ++ gettext 'Path `%s'\'' is not readable by GRUB on boot. Installation is impossible. Aborting.\n' + printf 'Path `%s'\'' is not readable by GRUB on boot. Installation is impossible. Aborting.\n' /boot/grub Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting. + exit 1 Command (inside chroot): grub-probe -vvv -t fs /boot/grub OUTPUT: grub-probe: info: cannot open `/boot/grub/device.map': No such file or directory. grub-probe: info: changing current directory to /dev. grub-probe: info: changing current directory to dri. grub-probe: info: changing current directory to snd. grub-probe: info: changing current directory to cpu. grub-probe: info: changing current directory to char. grub-probe: info: changing current directory to disk. grub-probe: info: changing current directory to by-uuid. grub-probe: info: changing current directory to by-label. grub-probe: info: changing current directory to by-path. grub-probe: info: changing current directory to by-id. grub-probe: info: changing current directory to block. grub-probe: info: changing current directory to pts. grub-probe: info: changing current directory to /dev. grub-probe: info: changing current directory to dri. grub-probe: info: changing current directory to snd. grub-probe: info: changing current directory to cpu. grub-probe: info: changing current directory to char. grub-probe: info: changing current directory to disk. grub-probe: info: changing current directory to by-uuid. grub-probe: info: changing current directory to by-label. grub-probe: info: changing current directory to by-path. grub-probe: info: changing current directory to by-id. grub-probe: info: changing current directory to block. grub-probe: info: changing current directory to pts. grub-probe: info: Looking for /dev/sda1. grub-probe: info: /dev/sda is a parent of /dev/sda1. grub-probe: info: /dev/sda1 starts from 2048. grub-probe: info: opening the device hostdisk//dev/sda. Segmentation fault (core dumped) Command (live system): grub-install --boot-directory=/mnt/lfs/boot/grub /dev/sda OUTPUT: Installation finished. No error reported. Command (live system): mount -v OUTPUT: /cow on / type overlayfs (rw) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) /dev/sdc1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/loop0 on /rofs type squashfs (ro,noatime) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) gvfs-fuse-daemon on /home/xubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=xubuntu) /dev/md2 on /mnt/lfs type ext4 (rw) /dev/md0 on /mnt/lfs/boot type ext3 (rw) /dev on /mnt/lfs/dev type none (rw,bind) devpts on /mnt/lfs/dev/pts type devpts (rw,gid=5,mode=620) proc on /mnt/lfs/proc type proc (rw) sysfs on /mnt/lfs/sys type sysfs (rw) shm on /mnt/lfs/run/shm type tmpfs (rw) Command (live system): ls -al /dev/sda OUTPUT: brw-rw---- 1 root disk 8, 0 Dec 18 16:05 /dev/sda Command (live-system): grub-install -v OUTPUT: grub-install (GRUB) 1.99-21ubuntu3.10 So yes I can use grub-install from the live system but somethings wrong on that, too. Because when I boot I get into the grub shell (and the version of it is 1.99-21ubuntu3.10) In this shell I type the following: set root=(md/0) linux /kernel-3.10.10... root=/dev/md2 ro initrd /initrd-3.10.10... boot This gets me to the point that it starts the kernel, finds sda, sdb,..... states that it Failed to execute /init, sh: cannot set terminal process group (-1): Inappropiate ioctl for device sh: no job control in this shell and there it stops after some more lines from the kernel regarding usb. It is not in a kernel panic because I can scroll the kernel output Please help :) Will send kernel config if needed. Regards...
<<attachment: face-smile.png>>
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page