LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Fail to boot after installation (https://www.linuxquestions.org/questions/arch-29/fail-to-boot-after-installation-619301/)

satimis 02-07-2008 04:37 AM

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

Simon Bridge 02-07-2008 04:44 AM

Quote:

The bootloader seems missing.
How do you know?

If so - then you need to install grub to the master boot record of sda.

satimis 02-07-2008 04:54 AM

Quote:

Originally Posted by Simon Bridge (Post 3048901)
How do you know?

If so - then you need to install grub to the master boot record of sda.

Just juess. On re-run installation coming to the item "install bootload", it popup "Counln't find /mnt/boot/grub/menu.lst. Is GRUB installed".


I'm now googling around and found the same problem encountered by other folks.


satimis

syg00 02-07-2008 05:11 AM

If you get the grub "prompt" and can't enter anything, it means;
a) grub stage1 is in the MBR, and (usually)
b) it can't find the stage file/menu.lst ...
It's not really a prompt, it's a (deliberate) hard error message loop.

chroot into your disk install, cd into the /boot/grub. and run this
Code:

grub
root (hd0,0)
setup (hd0)
boot

The 64-bit Arch runs fine here on both dual and quad core 2 ...

satimis 02-07-2008 05:58 AM

Quote:

Originally Posted by syg00 (Post 3048934)
If you get the grub "prompt" and can't enter anything, it means;
a) grub stage1 is in the MBR, and (usually)
b) it can't find the stage file/menu.lst ...
It's not really a prompt, it's a (deliberate) hard error message loop.

chroot into your disk install, cd into the /boot/grub.
...

Thanks for your advice.


I haven't run chroot for sometimes. Could you please advise the steps to be performed to chroot /dev/sda1, the /boot partition. TIA


B.R.
satimis

syg00 02-07-2008 07:07 AM

No need as it turns out - just do it from the Arch CD. Hit enter to get to bash (don't run the setup). Grub (executable) is on the CD - run all the commands from there.
I just tried it.

satimis 02-07-2008 07:26 AM

Quote:

Originally Posted by syg00 (Post 3049002)
No need as it turns out - just do it from the Arch CD. Hit enter to get to bash (don't run the setup). Grub (executable) is on the CD - run all the commands from there.
I just tried it.

Thanks.


Just tried 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?


Haven't tried your previous suggestion yet.


B.R.
satimis

satimis 02-07-2008 09:04 AM

(solved)
 
Hi syg00,


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. Thanks again for your assistance.


B.R.
satimis


All times are GMT -5. The time now is 03:37 AM.