Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814

    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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    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 is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814
    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

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    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 is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814
    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

  7. #6
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814

    (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

  8. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Well Done !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •