LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices



Reply
 
Search this Thread
Old 02-07-2008, 05:37 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
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
 
Old 02-07-2008, 05:44 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
The bootloader seems missing.
How do you know?

If so - then you need to install grub to the master boot record of sda.
 
Old 02-07-2008, 05:54 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by Simon Bridge View Post
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

Last edited by satimis; 02-07-2008 at 05:59 AM. Reason: correction
 
Old 02-07-2008, 06:11 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,488

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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 ...
 
Old 02-07-2008, 06:58 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by syg00 View Post
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
 
Old 02-07-2008, 08:07 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,488

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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.
 
Old 02-07-2008, 08:26 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by syg00 View Post
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
 
Old 02-07-2008, 10:04 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
(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
 
  


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
Fail DBD::mysql 4.003 installation tejas900 Linux - Software 1 07-04-2007 08:07 AM
Printer installation fail. Slamtilt Suse/Novell 2 01-27-2007 06:37 AM
Installation from CD fail KTurbo Slackware - Installation 11 10-27-2006 12:08 AM
FC4 Installation Fail Multiple DVD and CD 8nasmith Fedora - Installation 3 02-06-2006 08:01 AM
fail fc4 installation x_sanctus Linux - Newbie 4 12-04-2005 02:52 AM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
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