You are not logged in.

#1 2009-07-20 23:01:56

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

[SOLVED] grub isnt doing its job

ok, so i have grub installed on hda, and i resized my windows partition today to make room for gentoo which is on hdc.  now grub wont work mad.  all it does is goes to a grub prompt and in order to get it to boot i have to type in

root   (hd0,0)
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolhome ro
initrd /kernel26-fallback.img
boot

at the grub prompt

here is my menu.lst:

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution 

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/mapper/VolGroup00-lvolhome ro
initrd /kernel26.img

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

# (2) Windows
title Windows
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1

Last edited by grimrider (2009-07-21 01:46:22)

Offline

#2 2009-07-21 00:18:20

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] grub isnt doing its job

So it was working before you resized it?
I'm guessing it's something to do with your LVM root but I can't be too sure.

Last edited by sand_man (2009-07-21 00:19:50)


neutral

Offline

#3 2009-07-21 00:26:13

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] grub isnt doing its job

yea, it was working perfectly fine before i resized/restarted, then it worked fine in windows, and i restarted to get back on linux and it didnt work anymore....

it shouldnt have anything to do with LVM, i have /boot on a partition outside of LVM

Last edited by grimrider (2009-07-21 00:26:42)

Offline

#4 2009-07-21 01:46:00

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] grub isnt doing its job

hmm.  it turns out my /boot/grub/device.map file got destroyed, possibly from resizing the partition.  anyways, running the following commands seems to have fixed it.  thanks for the help big_smile

grub-install --recheck /dev/sda
grub-install /dev/sda

Offline

Board footer

Powered by FluxBB