| |
02-07-2008
|
#1 (permalink)
| | Linux Engineer
Join Date: Sep 2004
Posts: 1,221
| Fail to boot after installation Hi folks,
86-64 2007-08-02 core ISO
Installation went through w/o problem. After finish on reboot it hangs on "GRUB". The bootloader seems missing.
# fdisk -l Code: /dev/sda1 * Linux (/boot)
/dev/sda2 Linux ( / )
/dev/sda3 Linux (/var)
/dev/sda4 Extended
/dev/sda5 Linux swap / Solaris
/dev/sda6 Linux (/home)
# mount /dev/sda1 /mnt
# ls /mnt Code: Systam.map26 grub kernel26-fallback.img lost+found
diag1.img kconfig26 kernel26.img vmlinuxz26
# cat /mnt/grub/menu.lst Code: timeout 5
default 0
color light-blue/black light-cyan/blue
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/sda2 ro
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz26 root=/dev/sda2 ro
initrd /kernel26-fallback.img
Please advise where shall I check and how to fix the problem. TIA
B.R.
satimis |
|
|
02-07-2008
|
#2 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 21,081
| Type full path of /boot in grub.conf file. Code: title Arch Linux
root (hd0,0)
kernel (hd0,0)/vmlinuz26 root=/dev/sda2 ro
initrd (hd0,0)/kernel26.img
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| |
02-07-2008
|
#3 (permalink)
| | Linux Engineer
Join Date: Sep 2004
Posts: 1,221
| Quote:
Originally Posted by devils_casper Type full path of /boot in grub.conf file. Code: title Arch Linux
root (hd0,0)
kernel (hd0,0)/vmlinuz26 root=/dev/sda2 ro
initrd (hd0,0)/kernel26.img
| Thanks for your advice.
Tried your suggestion but still failed, hanging on GRUB
I'm prepared to re-run grub but forget how to "chroot" /dev/sda1, the boot partition. Can you shed me some light? TIA
B.R.
satimis |
| |
02-07-2008
|
#4 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 21,081
| I think I am forgetting something. Have you tried /boot along with (hd0,0) in kernel and initrd lines.? Code:
kernel (hd0,0)/boot/vmlinuz26 root=/dev/sda2 ro
initrd (hd0,0)/boot/kernel26.img
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| |
02-07-2008
|
#5 (permalink)
| | Linux Engineer
Join Date: Sep 2004
Posts: 1,221
| Quote:
Originally Posted by devils_casper I think I am forgetting something. Have you tried /boot along with (hd0,0) in kernel and initrd lines.? Code:
kernel (hd0,0)/boot/vmlinuz26 root=/dev/sda2 ro
initrd (hd0,0)/boot/kernel26.img
| Just tried your suggestion. But still failed.
Tried follows after booting up the pc with the installer CD
# grub-install --recheck /dev/sda1
Could not find kernel image
# vmlinuz root=/dev/sda2 Code: .....
.....
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Would it be something else?
satimis |
| |
02-07-2008
|
#6 (permalink)
| | Linux Engineer
Join Date: Sep 2004
Posts: 1,221
| (solved) Hi devils_casper,
Problem solved as follows;
Booting up the PC with the installer CD by pressing [Enter]
# fcsk /dev/sda2
# grub
grub> root (hd0,0) Code: Filesystem type is ext2fs, partition type 0x83
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)" ... 23 sectors are embedded.
Succeeded
Running "install /grub/stage1 (hd0) (hd0)1+23 p (hd0,0)/grub/stage2 /grub/menu.lst" ... succeeded
Done
grub> kernel /vmlinuz26 root=/dev/sda2 Code: [Linux-bzImage, setup=0x1c00, size=0x1ca588]
grub> boot
[Arch Linux: /]# reboot
It boots to;
moyhost login: root
[root@myhost ~]#
It is OK now.
B.R.
satimis |
| |
02-07-2008
|
#7 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 21,081
| Well Done ! 
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |