Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > Fail to boot after installation

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 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
satimis is offline  


Reply With Quote
Old 02-07-2008   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to 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
__________________
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
devils casper is offline   Reply With Quote
Old 02-07-2008   #3 (permalink)
Linux Engineer
 
Join Date: Sep 2004
Posts: 1,221
Quote:
Originally Posted by devils_casper View Post
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
satimis is offline   Reply With Quote
Old 02-07-2008   #4 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to 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
__________________
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
devils casper is offline   Reply With Quote
Old 02-07-2008   #5 (permalink)
Linux Engineer
 
Join Date: Sep 2004
Posts: 1,221
Quote:
Originally Posted by devils_casper View Post
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
satimis is offline   Reply With Quote
Old 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
satimis is offline   Reply With Quote
Old 02-07-2008   #7 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
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
devils casper is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:25 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2