Re: [gentoo-user] Reboot when GRUB starts

2005-06-14 Thread Richard Fish
Colin wrote:

 Two commands inside a GRUB shell doesn't sound too bad.  Still, I
 think I should work on getting that stage1.5 file working.

 Do you think the file might have been damaged somehow?  Maybe it just
 didn't like my CFLAGS?


Well, the grub ebuild ignores (unsets, actually) whatever CFLAGS you
have, so those cannot have any impact.

That said, what version of grub are you using now?  I ask because I see
a note about adding support for ATARAID in v0.95.

If you already have 0.96 (the current version available in portage), or
if upgrading to that doesn't resolve the problem, I certainly encourage
trying the CVS version of grub, and filing a bug report at
http://savannah.gnu.org/bugs/?group_id=68 if that still has the same
problem.

You might be asked to build/run a debug version (I think this is done
with the --maintainer-mode option to ./configure), and report any
output, although that might be difficult if it still reboots on you!

-Richard

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
This is really annoying.  I just finished a Gentoo install on my
computer and rebooted after installing GRUB with the command
grub-install --root-directory=/boot /dev/hde as stated in the
Handbook.  Right after GRUB loads the stage1.5 file, the system
reboots.

The first partition is active.  Marking partition 2 as active can't
get me into Windows, though, so I'm kinda screwed ATM.

I created my Gentoo partitions by resizing my NTFS partition with
PartitionMagic (I love that software).  I moved it down the disk by 32
MB, shrunk it by 20 GB, and converted /home/colin and my swap
partition to logical ones.  Windows still booted, even after
formatting the partitions.  I also used PM to switch the entries in
the partition table, so that my partitions would be numbered in disk
order--a change to BOOT.INI and Windows still worked.

It's /dev/hde because it's hooked up to my motherboard's on-board RAID
controller--it's got its own CPU, so data transfers are faster.  I
wanted to use two hard drives, but my other drive was giving a lot of
DMA errors and sector read errors.  (Surprisingly, it runs fine under
Windows.)

/boot/grub/grub.conf
===
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap vga=0x31B

title=Windows XP Pro SP2
rootnoverify (hd0,1)
makeactive
chainloader +1

/etc/fstab (so you can get an idea of my partitions)
===
/dev/hde1 /boot   ext3 defaults,noatime 1 2
/dev/hde2 /mnt/windrive   ntfs  
ro,umask=070,fmask=070,dmask=070   0 0
/dev/hde3 / reiserfs attrs
0 1
/dev/hde5 /home/colin vfat  
umask=000,fmask=000,dmask=000 0 0
/dev/hde6 none   swapsw 0 0
# That's it for hard drives, the rest is removable media, /proc, /dev/shm

-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread A. Khattri
On Mon, 13 Jun 2005, Colin wrote:

 /boot/grub/grub.conf
 ===
 default 0
 timeout 10
 splashimage=(hd0,0)/grub/splash.xpm.gz

 title=Gentoo Linux 2.6.11-r9
 root (hd0,0)
 kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap 
 vga=0x31B

Shouldn't that be:

kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap vga=0x31B



 title=Windows XP Pro SP2
 rootnoverify (hd0,1)
 makeactive
 chainloader +1

 /etc/fstab (so you can get an idea of my partitions)
 ===
 /dev/hde1 /boot   ext3 defaults,noatime 1 2
 /dev/hde2 /mnt/windrive   ntfs
 ro,umask=070,fmask=070,dmask=070   0 0
 /dev/hde3 / reiserfs attrs
 0 1
 /dev/hde5 /home/colin vfat
 umask=000,fmask=000,dmask=000 0 0
 /dev/hde6 none   swapsw 0 0
 # That's it for hard drives, the rest is removable media, /proc, /dev/shm



-- 
alpha geek n.

 [from animal ethologists' `alpha
   male'] The most technically accomplished or skillful person in some
   implied context.  Ask Larry, he's the alpha geek here.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Richard Fish
Colin wrote:

This is really annoying.  I just finished a Gentoo install on my
computer and rebooted after installing GRUB with the command
grub-install --root-directory=/boot /dev/hde as stated in the
Handbook.  Right after GRUB loads the stage1.5 file, the system
reboots.
  


What does /boot/grub/device.map contain?

Assuming that it has a line that reads (hd0) /dev/hde, then everything
should be correct. 

I guess your next step would be to get dirty with grub.  Start with the
following:

# grub --device-map=/boot/grub/device.map
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... 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



The command we are looking for is that final 'install' command.  We need
to run that again, adding a 'd' after stage1:

grub install /grub/stage1 d (hd0) (hd0)1+16 p (hd0,0)/grub/stage2
/grub/menu.lst

grub quit


The 'd' option is a workaround for BIOSs that get confused about which
drive is being used to boot.

HTH

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Richard Fish
A. Khattri wrote:

 On Mon, 13 Jun 2005, Colin wrote:

 /boot/grub/grub.conf
 ===
 default 0
 timeout 10
 splashimage=(hd0,0)/grub/splash.xpm.gz

 title=Gentoo Linux 2.6.11-r9
 root (hd0,0)
 kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
 video=vesafb:mtrr,ywrap vga=0x31B


 Shouldn't that be:

 kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
 vga=0x31B


Good catch!  Yes, fix this first.  Also, there is no '=' for the title.

-Richard


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
Firstly, A. Khattri, I had the grub.conf correct on the disk.  I just
mistyped it here.  There is no equal sign after kernel.

On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote: 
 What does /boot/grub/device.map contain?

 Assuming that it has a line that reads (hd0) /dev/hde, then everything
 should be correct.

(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdg

And it is.

 I guess your next step would be to get dirty with grub.  Start with the
 following:
 
 # grub --device-map=/boot/grub/device.map
 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... 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
 
 The command we are looking for is that final 'install' command.  We need
 to run that again, adding a 'd' after stage1:
 
 grub install /grub/stage1 d (hd0) (hd0)1+16 p (hd0,0)/grub/stage2
 /grub/menu.lst
 
 grub quit

Okay, I tried that.  No dice.  I tried removing all occurences of
/boot in case it didn't like symlinks, but that didn't work either.

 The 'd' option is a workaround for BIOSs that get confused about which
 drive is being used to boot.

No, I haven't had problems booting before.  The RAID controller's BIOS
is set to boot from the primary master (/dev/hde).  Windows liked it.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote:
 A. Khattri wrote:
 
  On Mon, 13 Jun 2005, Colin wrote:
 
  /boot/grub/grub.conf
  ===
  default 0
  timeout 10
  splashimage=(hd0,0)/grub/splash.xpm.gz
 
  title=Gentoo Linux 2.6.11-r9
  root (hd0,0)
  kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
  video=vesafb:mtrr,ywrap vga=0x31B
 
 
  Shouldn't that be:
 
  kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
  vga=0x31B
 
 
 Good catch!  Yes, fix this first.  Also, there is no '=' for the title.

The handbook shows an equal sign.  It's worked before on another system.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Richard Fish
Colin wrote:

 Okay, I tried that. No dice. I tried removing all occurences of
 /boot in case it didn't like symlinks, but that didn't work either.


Well, I didn't expect to find any 'dice' here.maybe some error
output or at least a better description (command failed, same reboot
problem, ...?) ;-


The 'd' option is a workaround for BIOSs that get confused about which
drive is being used to boot.



No, I haven't had problems booting before.  The RAID controller's BIOS
is set to boot from the primary master (/dev/hde).  Windows liked it.
  


Have you booted Linux before on this controller?  Don't assume the BIOS
isn't brain damaged, just because Windows likes it.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote:
 Colin wrote:
 
  Okay, I tried that. No dice. I tried removing all occurences of
  /boot in case it didn't like symlinks, but that didn't work either.
 
 
 Well, I didn't expect to find any 'dice' here.maybe some error
 output or at least a better description (command failed, same reboot
 problem, ...?) ;-

No dice = no luck.  It's not a very common phrase, at least not where I live.

Anyway, the same problem is still here.  When the BIOS gives GRUB
control, it shows a message that it's loading stage 1.5.  And then,
almost instantly, the system reboots.  I don't know if stage 1.5 loads
or not.  I don't suppose there's a way to recompile it to show
debugging output?

 The 'd' option is a workaround for BIOSs that get confused about which
 drive is being used to boot.
 
 No, I haven't had problems booting before.  The RAID controller's BIOS
 is set to boot from the primary master (/dev/hde).  Windows liked it.
 
 Have you booted Linux before on this controller?  Don't assume the BIOS
 isn't brain damaged, just because Windows likes it.

No, I haven't.  The 2004.3 LiveCD would hang when booted because it
couldn't get the right timings for the HPT372N, or something like
that, I forget.  2005.0 (2.6.11-gentoo-r3) is the first Gentoo LiveCD
to support my controller, so there still might be a few bugs to work
out.

If it helps any, it's a Highpoint HPT372N IDE RAID controller,
integrated into my motherboard (DFI LANParty PRO875B, Intel i865
Canterwood chipset).  The hard drive in question is a Western
Digital, 120 GB ATA/100, 2 MB cache.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Richard Fish
Colin wrote:

On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote:
  

Colin wrote:



Okay, I tried that. No dice. I tried removing all occurences of
/boot in case it didn't like symlinks, but that didn't work either.
  

Well, I didn't expect to find any 'dice' here.maybe some error
output or at least a better description (command failed, same reboot
problem, ...?) ;-



No dice = no luck.  It's not a very common phrase, at least not where I live.
  


Actually, I got the reference...I was just being a bit condescending
about the lack of information in that phrase.  Forgive me.

Anyway, the same problem is still here.  When the BIOS gives GRUB
control, it shows a message that it's loading stage 1.5.  And then,
almost instantly, the system reboots.  I don't know if stage 1.5 loads
or not.  I don't suppose there's a way to recompile it to show
debugging output?
  


Well, the loading stage 1.5 message comes *from* the stage 1.5, and I
think it is pretty much impossible for that to fail to load since it is
embedded in the space between the MBR and the first partition and block
mapped.

More likely is that grub gets confused trying to talk to the RAID BIOS,
and either cannot decipher the ext2 filesystem to find the stage2, or
loads what it thinks is the stage2 but turns out to be garbage that
causes the reboot.

One remaining possiblity here: try renaming /boot/grub/e2fs_stage1_5 to
e2fs_stage1_5.sav.  Then run:

# grub --device-map=/boot/grub/device.map
grub root (hd0,0)
...
grub setup (hd0)
...
grub quit
...

The setup command should show 'e2fs_stage1_5 exists...no'.  But the
install command should still show succeeded at the end.  If that all
looks good, try rebooting.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote:
 Colin wrote:
 
 On 6/13/05, Richard Fish [EMAIL PROTECTED] wrote:
 
 
 Colin wrote:
 
 
 
 Okay, I tried that. No dice. I tried removing all occurences of
 /boot in case it didn't like symlinks, but that didn't work either.
 
 
 Well, I didn't expect to find any 'dice' here.maybe some error
 output or at least a better description (command failed, same reboot
 problem, ...?) ;-
 
 
 
 No dice = no luck.  It's not a very common phrase, at least not where I live.
 
 
 
 Actually, I got the reference...I was just being a bit condescending
 about the lack of information in that phrase.  Forgive me.

No problem.  Besides, a lot of people on this list don't have English
as their first language.  It's good to point out idioms anyway.

 Anyway, the same problem is still here.  When the BIOS gives GRUB
 control, it shows a message that it's loading stage 1.5.  And then,
 almost instantly, the system reboots.  I don't know if stage 1.5 loads
 or not.  I don't suppose there's a way to recompile it to show
 debugging output?
 
 Well, the loading stage 1.5 message comes *from* the stage 1.5, and I
 think it is pretty much impossible for that to fail to load since it is
 embedded in the space between the MBR and the first partition and block
 mapped.
 
 More likely is that grub gets confused trying to talk to the RAID BIOS,
 and either cannot decipher the ext2 filesystem to find the stage2, or
 loads what it thinks is the stage2 but turns out to be garbage that
 causes the reboot.
 
 One remaining possiblity here: try renaming /boot/grub/e2fs_stage1_5 to
 e2fs_stage1_5.sav.  Then run:
 
 # grub --device-map=/boot/grub/device.map
 grub root (hd0,0)
 ...
 grub setup (hd0)
 ...
 grub quit
 ...
 
 The setup command should show 'e2fs_stage1_5 exists...no'.  But the
 install command should still show succeeded at the end.  If that all
 looks good, try rebooting.

It worked!  One would think stage1.5 would be an integral step between
1 and 2, but apparently now.  Gentoo works!  (And Windows does too...)
 I got a lot of errors while booting Gentoo, so I've still got a few
bugs to work out.  Thanks, guys.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Holly Bostick
Colin schreef:

On Mon, 13 Jun 2005, Colin wrote:


/boot/grub/grub.conf
===
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
video=vesafb:mtrr,ywrap vga=0x31B


Shouldn't that be:

kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
vga=0x31B


Good catch!  Yes, fix this first.  Also, there is no '=' for the title.
 
 
 The handbook shows an equal sign.  It's worked before on another system.

No, it does not:

Code Listing 3: grub.conf for non-genkernel users

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r3
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1


Code Listing 4: grub.conf for genkernel users

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r3
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc
ramdisk=8192 real_root=/dev/hda3 udev
initrd /initrd-2.6.11-gentoo-r3

# Only in case you want to dual-boot
title=Windows XP
root (hd0,5)
makeactive
chainloader +1


Perhaps you're thinking of the LiLO config:

Code Listing 11: Example /etc/lilo.conf

boot=/dev/hda # Install LILO in the MBR
prompt# Give the user the chance to select another
section
timeout=50# Wait 5 (five) seconds before booting the
default section
default=gentoo# When the timeout has passed, boot the
gentoo section

# For non-genkernel users
image=/boot/kernel-2.6.11-gentoo-r3
  label=gentoo# Name we give to this section
  read-only   # Start with a read-only root. Do not alter!
  root=/dev/hda3  # Location of the root filesystem

# For genkernel users
image=/boot/kernel-2.6.11-gentoo-r3
  label=gentoo
  read-only
  root=/dev/ram0
  append=init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
  initrd=/boot/initrd-2.6.11-gentoo-r3

# The next two lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
other=/dev/hda6
  label=windows

GRUB does not take an equal sign in that position, but Istr that Lilo does.

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin

Holly Bostick wrote:


Colin schreef:
 


On Mon, 13 Jun 2005, Colin wrote:


   


/boot/grub/grub.conf
===
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
video=vesafb:mtrr,ywrap vga=0x31B
 


Shouldn't that be:

kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
vga=0x31B


Good catch!  Yes, fix this first.  Also, there is no '=' for the title.
 


The handbook shows an equal sign.  It's worked before on another system.
   



No, it does not:

Code Listing 3: grub.conf for non-genkernel users

[snip]

title=Gentoo Linux 2.6.11-r3

[snip]
 

No, there it is right there.  You can see the equal sign right after 
title.  I've fixed GRUB and it's working just fine, and the equal sign 
is still there.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Richard Fish
Colin wrote:

It worked!  One would think stage1.5 would be an integral step between
1 and 2, but apparently now.  Gentoo works!  (And Windows does too...)
 I got a lot of errors while booting Gentoo, so I've still got a few
bugs to work out.  Thanks, guys.
  


The stage1.5 is really a minimal stage2...it is supposed to contain just
enough code to decipher the filesystem and locate the real stage2.

So, here comes the bad news.  If you do anything that moves, updates,
or restores the stage2 file, you *must* run those setup instructions
again.  This is because the location of the stage2 is now block-mapped
into the stage1.

In fact, you might want to chattr +i /boot/grub/stage2, update
package.mask to exclude new versions of grub, etc...

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin

Richard Fish wrote:


Colin wrote:
 


It worked!  One would think stage1.5 would be an integral step between
1 and 2, but apparently now.  Gentoo works!  (And Windows does too...)
I got a lot of errors while booting Gentoo, so I've still got a few
bugs to work out.  Thanks, guys.


The stage1.5 is really a minimal stage2...it is supposed to contain just
enough code to decipher the filesystem and locate the real stage2.

So, here comes the bad news.  If you do anything that moves, updates,
or restores the stage2 file, you *must* run those setup instructions
again.  This is because the location of the stage2 is now block-mapped
into the stage1.

In fact, you might want to chattr +i /boot/grub/stage2, update
package.mask to exclude new versions of grub, etc...

Two commands inside a GRUB shell doesn't sound too bad.  Still, I think 
I should work on getting that stage1.5 file working.


Do you think the file might have been damaged somehow?  Maybe it just 
didn't like my CFLAGS?


--
Colin

--
gentoo-user@gentoo.org mailing list