You are not logged in.

#1 2010-01-05 21:18:53

smoak
Member
Registered: 2010-01-05
Posts: 7

Grub hangs when booting kernel [SOLVED]

I just installed Arch using the 2009.08 net install i686 isolinux CD.

Upon booting, the grub menu shows up fine. However, after I select the kernel to boot it hangs at:

Booting 'Arch Linux'
root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
 kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot ro
    [Linux-bzImage, setup=0x3400, size=0x1b4370]

I've let it sit there for about 30 mins and it doesn't move. I'm not sure what's going on....

Here is my fdisk -l output:

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5810    46668793+   7  HPFS/NTFS
/dev/sda2   *        5811        5824      112455   83  Linux
/dev/sda3            5825        9726    31342815   8e  Linux LVM

Disk /dev/sdb: 8353 MB, 8353480704 bytes
2 heads, 63 sectors/track, 129487 cylinders
Units = cylinders of 126 * 512 = 64512 bytes
Disk identifier: 0x0022821b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1      129488     8157664+   b  W95 FAT32

/dev/sda1 is my Windows XP partition
/dev/sda2 is my /boot partition
/dev/sda3 is my LVM (divided further into individual logical volumes)
/dev/sdb1 is my USB stick that's running PartedMagic (also where I am writing this from)

Output of pvdisplay:

--- Physical volume ---
  PV Name               /dev/sda3
  VG Name               VolGroup00
  PV Size               29.89 GB / not usable 223.00 KB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              7652
  Free PE               0
  Allocated PE          7652
  PV UUID               8jXFYu-uY6E-GX6C-DMkt-V6rY-Pq2q-WAo9o6

Output of vgdisplay:

--- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               29.89 GB
  PE Size               4.00 MB
  Total PE              7652
  Alloc PE / Size       7652 / 29.89 GB
  Free  PE / Size       0 / 0   
  VG UUID               fl6RiM-INzs-RXz2-RKdv-luL1-OnoJ-WRSVHO

Output of lvdisplay:

--- Logical volume ---
  LV Name                /dev/VolGroup00/lvolhome
  VG Name                VolGroup00
  LV UUID                A2NVTS-KTGj-PDZi-zXmV-vh8T-Luvj-5Ul3G2
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolswap
  VG Name                VolGroup00
  LV UUID                0UwYZ8-1AWR-uCiR-lGIV-KMfl-KvRs-gXxIIg
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             contiguous
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolusr
  VG Name                VolGroup00
  LV UUID                L6MkNU-0Flo-UgBI-Pb5E-MvEJ-acaC-vL2HtA
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolopt
  VG Name                VolGroup00
  LV UUID                m3DMHh-r615-3mh7-oxGT-7sW6-guJT-FQRF1a
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                3.00 GB
  Current LE             768
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolvar
  VG Name                VolGroup00
  LV UUID                18NvNa-2CLE-c3ei-otlu-avTY-53xp-kNL94t
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvolroot
  VG Name                VolGroup00
  LV UUID                KcXnN2-eA34-wSlR-udmU-PoF8-FCrs-FhvaoI
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                3.89 GB
  Current LE             996
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

Relevant Ouput of /boot/grub/menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,1) # First Hard Drive Second Partition
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot ro
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot ro
initrd /kernel26-fallback.img

I also made sure that in my /etc/rc.conf USELVM="yes"
Additionally, the HOOKS section in my /etc/mkinitcpio.conf contains lvm2

The fallback also doesn't work either sad

I've also tried regenerating the initramfs (using my PartedMagic Live USB and chrooting into arch) with:

/sbin/mkinitcpio -g /boot/kernel26.img -k 2.6.16-ARCH

I'm not sure where to go from here...

If it helps, here is my computer info:

***Computer***
Processor        : 2x Intel(R) Pentium(R) 4 CPU 3.00GHz
Memory        : 994MB (198MB used)
***Multimedia***
Audio Adapter        : HDA-Intel - HDA ATI SB
***IDE Disks***
ATAPI iHAP122 9 <- This is my CDROM drive
***SCSI Disks***
ATA SAMSUNG HD080HJ/
CBM Flash Disk
***BIOS***
Date        : 06/17/2009
Vendor        : Dell Inc. (Dell Computer, www.dell.com)
Version        : 1.1.12
-Board-
Name        : 0MH651
Vendor        : Dell Inc. (Dell Computer, www.dell.com)

Any help is appreciated.

Last edited by smoak (2010-01-06 22:40:41)

Offline

#2 2010-01-05 21:48:40

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Grub hangs when booting kernel [SOLVED]

smoak wrote:

I've also tried regenerating the initramfs (using my PartedMagic Live USB and chrooting into arch) with:

/sbin/mkinitcpio -g /boot/kernel26.img -k 2.6.16-ARCH

This struck me as a bit odd (the kernel version string in particular). Try `mkinitcpio -p kernel26'.

Offline

#3 2010-01-05 22:09:13

smoak
Member
Registered: 2010-01-05
Posts: 7

Re: Grub hangs when booting kernel [SOLVED]

foutrelis wrote:
smoak wrote:

I've also tried regenerating the initramfs (using my PartedMagic Live USB and chrooting into arch) with:

/sbin/mkinitcpio -g /boot/kernel26.img -k 2.6.16-ARCH

This struck me as a bit odd (the kernel version string in particular). Try `mkinitcpio -p kernel26'.

I got it from http://wiki.archlinux.org/index.php/Mkinitcpio#Manually

In there it states:

If you are creating an image for a kernel other than the one you are currently running, add the kernel version to the command line:
mkinitcpio -g /boot/kernel26.img -k 2.6.16-ARCH

The reason is because I am booted into a PartedMagic Live USB and then chrooted into my arch install.

I will try what you stated and post the results.

Last edited by smoak (2010-01-05 22:09:28)

Offline

#4 2010-01-05 22:23:51

smoak
Member
Registered: 2010-01-05
Posts: 7

Re: Grub hangs when booting kernel [SOLVED]

Running mkinitcpio -p kernel26 outputs SUCCESS but when I reboot I get to the same spot and it still hangs sad even for the fallback too

Last edited by smoak (2010-01-05 22:24:08)

Offline

#5 2010-01-06 11:42:21

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Grub hangs when booting kernel [SOLVED]

I've admittedly only glanced at your post, but the kernel line in grub seems odd. Perhaps that is the right way of addressing volumes in LVM setups, but perhaps you want to try and find the kernel within grub and take it from there.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#6 2010-01-06 18:10:07

smoak
Member
Registered: 2010-01-05
Posts: 7

Re: Grub hangs when booting kernel [SOLVED]

toad wrote:

I've admittedly only glanced at your post, but the kernel line in grub seems odd. Perhaps that is the right way of addressing volumes in LVM setups, but perhaps you want to try and find the kernel within grub and take it from there.

I got the kernel line from here:

http://wiki.archlinux.org/index.php/LVM#Important

It says:

Make sure /boot/grub/menu.lst uses the right volumes for root. It should look something like this: (Install Bootloader)
...
# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolroot resume=/dev/mapper/VolGroup00-lvolswap ro
initrd /kernel26.img
...

I also tried a similar setup on my laptop at home (Windows 7 partition, boot partition, and LVM partition, same kernel line in grub too) and it works fine. It seems like it's something with this specific computer here sad

Last edited by smoak (2010-01-06 18:13:50)

Offline

#7 2010-01-06 22:39:06

smoak
Member
Registered: 2010-01-05
Posts: 7

Re: Grub hangs when booting kernel [SOLVED]

Well I managed to fix my problem by using Grub2 (1.97.x) instead of Grub-legacy. Very weird, but at least it's fixed.

Offline

Board footer

Powered by FluxBB