LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-28-2005, 06:50 AM   #1
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Rep: Reputation: 15
Grub fails after installing new MoBo


Hello,
Two weeks ago I replaced my old (asus cusl2) mobo by an asus p4v533-mx. When I rebooted grub stalled with the message STage2 (or something simular).
After a while I found out I could bring up my system again booting from the install (Suse 9.1), and then choose 'Boot installed system'.
(I tried repairing etc..).
The original system came back in it's original state (but much faster).

After a whole lot of tests it seems to me the boot loader (grub) was causing the problem. But when I installed LiLo it stalls as well.

I created a grub boot floppy by copying (dd) stage1 and stage2 to a floppy and booted that. I arrived in the grub prompt.
According to some articles I gave the command :
grub> root (hd0,1) # /boot/grub is on /dev/hda2 (reiser fs)
grub> find /boot/grub/stage1 # Here the system hangs as well !!!

This is where it ends for me.
Some facts :
- Suse 9.1
- 1st HDD : WD800JB-00FMAO Reiserfs, HDA1=swap,HDA2=reiser/boot
- 2nd HDD : Maxtor 6Y16opo (HDC1)

- Linux is the only installed OS (so I do not really need a loader)
- A (simple) boot from floppy would be ok as well (as long as it can run unattended)

If it might help you can see more information on http://envim.xs4all.nl/sysinfo

I have no idea how to go further I hope there is someone who can help.
Thanks in advance,
Peter
 
Old 10-28-2005, 09:48 AM   #2
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
Try to start your system in recue-mode
start grub
then do following
grub > root (hd1,1) second disk, second partition
grub > setup (hd0)
grub > quit
Paul
 
Old 10-28-2005, 10:27 AM   #3
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Hello Paul.
Thanks for your reply.

I started grub using the floppy I created before.
On the first statement :
root (hd1,1)
it returned the error message : Error 22:, no such partition (what is correct, he 2nd drive contains only ONE partition.)

Peter
 
Old 10-28-2005, 10:43 AM   #4
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
hda is hd0
hdb means hdb
partition 0 is swap
partition 1 is root there is also your /boot
so try instead of root (hd1,1) -> root (hd0,1)
Paul
 
Old 10-28-2005, 11:15 AM   #5
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Hello Paul (and others),
I did the following :
- Booted rescue system from DVD
- Started grub
grub> find /boot/grub/stage1
(hd0,1)
grub> root (hd0,1)
grub> setup (hd0)
grub> root (hd0,1)
grub> kernel /boot/vmlinuz root=/dev/hda2 ro
grub> initrd /boot/initrd
grub> boot
(all from cha[ter 12.2 of the O'Reilly Linux Cookbook)
When I restarted the system I got the following messages :
GRUB loader stage 1.5
Grub loading, Please wait ...

Then is stalles again.Seems there is some progression but not there.
Peter
 
Old 10-28-2005, 11:44 AM   #6
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
start the rescuesystem again.
Mount your harddrive like
mount -t reiserfs /hda2 /mnt
then cd /mnt/boot/grub
look into the file menu.lst
if this is corupted try to edit it that it looks ok and also check about the stagefiles you will see there. Go back to /root and unmount /mnt. Try a reboot.
If this not works do the mount as before
then
chroot /mnt
check now /etc/grub.conf maybe this file is corupted correct it
then run
grub-install
reboot
 
Old 10-28-2005, 12:15 PM   #7
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Hello Paul,
I can bring my system up normally using the DVD (install/Boot installed system) so I bypass grub.
This way I can check menu.lst. This file looks normal and it contains the following :

**************************************
# Modified by YaST2. Last modification on Fri Oct 21 23:43:59 2005
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 vga=0x31a splash=silent desktop resume=/dev/hda1 showopts
initrd (hd0,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
root (fd0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd0,1)/boot/initrd
*************************************
The problem is this menu does NOT show up. Maybe you see any errors???


/boot/grub contains the following :
-rw-r--r-- 1 root root 45 2005-10-21 23:43 device.map
-rw-r--r-- 1 root root 45 2005-10-21 23:43 device.map.old
-rw-r--r-- 1 root root 11520 2004-04-06 03:20 e2fs_stage1_5
-rw-r--r-- 1 root root 10544 2004-04-06 03:20 fat_stage1_5
-rw-r--r-- 1 root root 9408 2004-04-06 03:20 ffs_stage1_5
-rw-r--r-- 1 root root 11584 2004-04-06 03:20 jfs_stage1_5
-rw------- 1 root root 882 2005-10-21 23:43 menu.lst
-rw------- 1 root root 880 2005-10-21 23:43 menu.lst.old
-rw-r--r-- 1 root root 9856 2004-04-06 03:20 minix_stage1_5
-rw-r--r-- 1 root root 13184 2004-04-06 03:20 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 2004-04-06 03:20 stage1
-rw-r--r-- 1 root root 132213 2005-10-22 00:01 stage2
-rw-r--r-- 1 root root 9056 2004-04-06 03:20 vstafs_stage1_5
-rw-r--r-- 1 root root 13160 2004-04-06 03:20 xfs_stage1_5

Contents of /boot :
drwxr-xr-x 5 root root 968 2005-10-28 10:08 .
drwxr-xr-x 26 root root 920 2005-10-28 20:04 ..
drwxr-xr-x 2 root root 816 2005-10-28 09:56 backup-20051027-error
-rw-r--r-- 1 root root 512 2005-10-21 21:57 backup_mbr
lrwxrwxrwx 1 root root 1 2005-10-21 17:12 boot -> .
-rw-r--r-- 1 root root 512 2005-10-15 22:55 boot.0300
drwxr-xr-x 2 root root 480 2005-10-21 21:57 grub
drwxr-xr-x 2 root root 744 2005-10-16 20:52 grub.old
lrwxrwxrwx 1 root root 23 2005-10-28 10:08 initrd -> initrd-2.6.4-52-default
-rw-r--r-- 1 root root 1380378 2005-10-28 10:08 initrd-2.6.4-52-default
lrwxrwxrwx 1 root root 20 2005-10-15 23:05 initrd.suse -> /boot/initrd.shipped
-rw-r--r-- 1 root root 105852 2004-04-07 04:14 Kerntypes-2.6.4-52-default
-rw------- 1 root root 160256 2005-10-22 14:41 map
-rw-r--r-- 1 root root 67648 2004-04-06 05:30 memtest.bin
-rw-r--r-- 1 root root 84480 2005-10-21 18:51 message
-rw-r--r-- 1 root root 73831 2004-04-07 04:14 modversions-2.6.4-52-i386-default.gz
-rw-r--r-- 1 root root 728259 2004-04-07 04:08 System.map-2.6.4-52-default
-rw-r--r-- 1 root root 772552 2005-07-23 12:52 System.map-2.6.5-7.193-default.old
-rw-r--r-- 1 root root 1733953 2004-04-07 04:14 vmlinux-2.6.4-52-default.gz
lrwxrwxrwx 1 root root 24 2005-10-28 10:08 vmlinuz -> vmlinuz-2.6.4-52-default
-rw-r--r-- 1 root root 1468815 2004-04-07 04:08 vmlinuz-2.6.4-52-default
-rw-r--r-- 1 root root 1539498 2005-07-23 12:52 vmlinuz-2.6.5-7.193-default.old
lrwxrwxrwx 1 root root 21 2005-10-15 23:05 vmlinuz.suse -> /boot/vmlinuz.shipped
 
Old 10-28-2005, 12:59 PM   #8
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
The files are looking ok. But grub will not pickup them as you told me. Try the grup-install ase I descrpted before
Paul
 
Old 10-28-2005, 01:13 PM   #9
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
OK, I did run grub-install (user root). Here is the result.

************************
linux2:/boot/grub # grub-install
install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

Report bugs to <bug-grub@gnu.org>.
linux2:/boot/grub # grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/hda
(hd1) /dev/hdc
(fd0) /dev/fd0
linux2:/boot/grub #

************************

Trying to reboot again now.
 
Old 10-28-2005, 01:22 PM   #10
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
It looks ok now. Everything is runnung now. I wait for your answer. Then I go to bed because I is here now 1:25 after midnight
 
Old 10-28-2005, 01:23 PM   #11
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Just rebooted the system. Still no change. The menu does not show op and Grub stalls after stage 1.5.

===> Is there another a way as booting the system without bootloader?? Even a floppy boot is ok as long as it is on ONE floppy and the system can boot without intervention.
 
Old 10-28-2005, 01:25 PM   #12
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for your help and you better catch some sleep. Maybe you remember other solutions after a good night-rest.
My system is running, just not booting...
Again, thanks so far...
 
Old 10-28-2005, 01:32 PM   #13
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
Try one more time grub > root ... as before descripted.
Tomorrow I will check again ... sorry
 
Old 10-28-2005, 03:00 PM   #14
pbogaart
LQ Newbie
 
Registered: Aug 2004
Location: Heesch, the Netherlands
Distribution: Suse 9.1 professional
Posts: 22

Original Poster
Rep: Reputation: 15
Tried the grub> Boot again.
Same results .
I also tried Yast repair bootloader. That failed with an 'invalid device' error.

I remembet I read something about a boot parameter with this mobo but can't find it back anymore
 
Old 10-28-2005, 11:57 PM   #15
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
Something looks strange. Find out why grub says in post#4
Hda2 ro -> READONLY
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub - dual boot fails on sdb mhoma Linux - General 0 06-13-2005 11:08 AM
new mobo - how 2 detect on boot? Grub loader calabash Linux - Hardware 4 09-27-2004 10:54 AM
Grub Fails after installing new IDE disk silversurfer Linux - Newbie 3 03-11-2004 10:18 AM
Installing onboard soundcard ADI 1980 / mobo A7V600 tagit Linux - Hardware 0 12-22-2003 10:30 AM
GRUB fails on bootup arvid Linux - Software 1 03-13-2002 12:07 PM


All times are GMT -5. The time now is 05:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration