

Code: Select all
# fdisk -l
# cat /etc/fstab
# cat /boot/grub/grub.cfg

grub-mkconfig -o /boot/grub/grub.cfgd2_racing wrote:Hi, can you tell me how did you install your grub 2 ?
Also, can you post this :
Code: Select all
# fdisk -l # cat /etc/fstab # cat /boot/grub/grub.cfg

Code: Select all
/dev/sda1 /boot ext4 noauto,noatime 1 2
Code: Select all
insmod ext4

honestly i don't think that should be a problem.d2_racing wrote:Hi, I'm not an expert, but are you sure :
Maybe you need to have this :Code: Select all
/dev/sda1 /boot ext4 noauto,noatime 1 2
Code: Select all
insmod ext4
Code: Select all
set root='(hd0,1)'
Code: Select all
set root='(hd0,0)'

you are talking about grub-legacy. the grub2 scheme is different.Mousee wrote:I don't use Grub2.x but, unless something drastically changed since I last played around with it...This is wrong. It should beCode: Select all
set root='(hd0,1)'The "root" it's referring to in this case is actually the drive location you have grub installed to which, naturally, is your /boot partition (/dev/sda1 or hd0,0).Code: Select all
set root='(hd0,0)'
Code: Select all
GRUB loading...
Welcome to GRUB!
Entering rescue mode...
out of range pointer 0x7fe80
HMMMMMM, maybe it's not just me then,portage 2.1.9.26,gcc-4.5.1,glibc-2.12.1-r3 grub-0.97-r10,are,similar items in my rebuild,had a hdd failure,and could only get a 500G ide replacement,after around 10 or so failed boots/rebuilds,thought I would try and use the original sata 160G drive,which at this time is in process of emerge -e system. So not holding breath to see if I get a boot,using the 201012 mini install cd and portage. Not too sure if my mirror will have the earlier files needed to create a system,, anyone have any idea as to redundancy of files in the respective mirrors??????.js08 wrote:as assumed it's the compiler which is buggy or trigger this bug (Portage 2.1.9.26 (default/linux/amd64/10.0/no-multilib, gcc-4.5.2, glibc-2.12.1-r3, 2.6.37-rc5 x86_64))
gcc-4.5.2 -> sys-boot/grub-1.97.2-r2 -> out of range pointer 0x7fe80
gcc-4.5.2 -> sys-boot/grub-1.98-r8 -> same out of range pointer 0x7fe80
after re-installing an older compiler version (sys-devel/gcc-4.4.4-r2)
gcc-4.4.4 -> sys-boot/grub-1.97.2-r2 -> works like a charm again
gcc-4.4.4 -> sys-boot/grub-1.98-r8 -> boots too but has gfxterm problems with my laptop)
perhaps the other out-of-range-pointer problems are also compiler (+/- optimization) issues.
I can confirm this, run into the same problem with gcc 4.5.2, switching back to 4.4.4 (through gcc-config), recompiling & reinstalling grub solved the problemjs08 wrote:as assumed it's the compiler which is buggy or trigger this bug
Why update? Why not, maybe one just wants to try grub2?Kollin wrote:Why on earth you are updating grub guys?The darn thing never behaves in a predictable way!
![]()
As soon as you make it boot your system, you should do "emerge -C grub".
After that only the configuration file needs editing if you change kernel or something!
C'moon i'm editin manualy grub.cfg from years... no problems so farrenergy wrote:Why update? Why not, maybe one just wants to try grub2?Kollin wrote:Why on earth you are updating grub guys?The darn thing never behaves in a predictable way!
![]()
As soon as you make it boot your system, you should do "emerge -C grub".
After that only the configuration file needs editing if you change kernel or something!
Actually, I wasn't updating, I just installed gentoo, updated it (emerge -uDN world in chroot), switched to new (4.5) gcc, then booted into it manually through grub2 on flashdisk and just wanted to install grub2... and I've run into the "out of range pointer" bug.
Regarding 'emerge -C grub', I don't think it's a good idea, it would remove the grub-mkconfig script, which is the standard way to create/update /boot/grub/grub.cfg in grub2 (/boot/grub/menu.lst is gone in grub2 + the /boot/grub/grub.cfg is not supposed to be edited directly)
.cfg files saved!hirakendu wrote: Regardless, you might find my grub.cfg (and grub-submenu.cfg) useful, which contains example entries for many OS'es, including Mac OS X.
Nice summary in the files!hirakendu wrote:Regardless, you might find my grub.cfg (and grub-submenu.cfg) useful, which contains example entries for many OS'es, including Mac OS X.