Re: [gentoo-user] grub misfires?
Richard Price wrote: New to the list, but here goes - try: mount /dev/hda4 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/hda2 /mnt/gentoo/boot Welcome to the list. You are correct...the problem is that hda2 should be mounted at /mnt/gentoo/boot before chroot'ing into it. I would add one more step, which is to move the files from /boot on the root filesystem to the /boot filesystem mount /dev/hda4 /mnt/gentoo mount /dev/hda2 /boot mv /mnt/gentoo/boot/* /boot umount /boot mount /dev/hda2 /mnt/gentoo/boot cd /mnt/gentoo chroot ./ ./bin/bash # do some stuff, run gub, etc -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] grub misfires?
Welcome to the list. You are correct...the problem is that hda2 should be mounted at /mnt/gentoo/boot before chroot'ing into it. Sorry guys, this is what becomes of copying out commands with pen paper then copying out the copies onto another piece of paper ;( __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] grub misfires?
If your hda2 is /boot, then the path to the kernel should be just vmlinuz, without the /boot/. Done. Didn't work. Same error. I suspect you have a boot symlink in /boot to . Negative. #ls -l /boot total 1578 -rw-r--r-- 1 root root 512 May 24 13:15 boot.0300 -rw-r--r-- 1 root root 33254 May 24 12:35 config-2.6.11-gentoo-r3 drwxr-xr-x 2 root root 424 May 25 15:22 grub -rw-r--r-- 1 root root 1572135 May 24 12:32 vmlinuz Note: boot.0300 was put there by lilo(another disappointment). I moved it to boot.300-old; no difference. #ls -l /boot/grub total 252 -rw-r--r-- 1 root root 45 May 25 14:40 device.map -rw-r--r-- 1 root root 11264 May 25 15:22 e2fs_stage1_5 -rw-r--r-- 1 root root 10256 May 25 15:22 fat_stage1_5 -rw-r--r-- 1 root root 9248 May 25 15:22 ffs_stage1_5 -rw-r--r-- 1 root root143 May 25 15:21 grub.conf -rw-r--r-- 1 root root 11488 May 25 15:22 jfs_stage1_5 -rw-r--r-- 1 root root 9632 May 25 15:22 minix_stage1_5 -rw-r--r-- 1 root root 12896 May 25 15:22 reiserfs_stage1_5 -rw-r--r-- 1 root root512 May 25 15:22 stage1 -rw-r--r-- 1 root root 137004 May 25 15:22 stage2 -rw-r--r-- 1 root root 8896 May 25 15:22 vstafs_stage1_5 -rw-r--r-- 1 root root 12840 May 25 15:22 xfs_stage1_5 # grub grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/e2fs_stage1_5 exists... yes Running embed /boot/grub/e2fs_stage1_5 (hd0)... 22 sectors are embedded. succeeded Running install /boot/grub/stage1 (hd0) (hd0)1+22 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst... succeeded Done. Your output from the setup command may vary slightly, but it should not find anything in /boot/grub/ Do I just delete it then? lilo has lilo -U to remove boot, can grub do similar? Also, what, if any, is the connection between install mentioned in grub setup and grub-install, the command. I noticed it didn't re-write grub.conf, had to do that manually. Does one still need to run grub-install *after* grub setup. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] grub misfires?
maxim wexler wrote: Hello everybody, On a fresh install using 2005.0 universal-install CD. Boot hangs with Grub loading Stage1.5 Grub loading please wait. There's lots of advice on the web but nothing works so far. So far changed the boot order in the BIOS. grub-installed to every available partition. Toggled the bootable flag w/ fdisk. Altered grub.conf; here's the latest iteration: default 0 timeout 30 title=Gentoo root (hd0,1) kernel /boot/vmlinuz root=/dev/hda4 title=WinXP rootnoverify (hd0,0) makeactive chainloader +1 I'm using a Maxtor 120G drive w/ four contiquous partitions: /dev/hda1, 60G for WinXP; /dev/hda2, 32M for gentoo /boot; /dev/hda3, 512M, swap; /dev/hda4, 60G, /. If your hda2 is /boot, then the path to the kernel should be just vmlinuz, without the /boot/. I suspect you have a boot symlink in /boot to . For some filesystems, this causes a problem. Remove the symlink (rm /boot/boot), then try: # grub ... grub root (hd0,1) Filesystem type is ext2fs, partition type 0x83 grub setup (hd0) Checking if /boot/grub/stage1 exists... no Checking if /grub/stage1 exists... yes Checking if /grub/stage2 exists... yes Checking if /grub/e2fs_stage1_5 exists... yes Running embed /grub/e2fs_stage1_5 (hd0)... 16 sectors are embedded. succeeded Running install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/menu.lst... succeeded Done. grub quit Your output from the setup command may vary slightly, but it should not find anything in /boot/grub/ A clue? When rebooting(used the CD to boot and chroot) a red flagged error flashes by: Failed to shut LVM down. This is not really a problemit usually just means that some filesystem (or swap) on an LVM physical volume is still in use. As long as the filesystem gets remounted read-only, things are safe. -Richard -- gentoo-user@gentoo.org mailing list