You are not logged in.

#1 2011-05-27 06:49:13

onie
Member
Registered: 2011-05-27
Posts: 20

Grub doesn't show up while booting

Hi,

I'm a newbie and just now finished installing Arch linux on a fresh partition along with windows XP.
I created 2 partitions - /boot and /
then wrote grub on to /boot.
Uncommented the windows lines before writing.

# (1) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

Didn't make any other modifications. But when I restart my computer it just goes into Win XP.
Please help me out here.

Regards,
Onie

Offline

#2 2011-05-27 07:00:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub doesn't show up while booting

Please post the whole grub.

Offline

#3 2011-05-27 07:12:00

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

How do i do that? I'm in Win XP and I couldn't go into Linux. How do I view grub from my HD?

Offline

#4 2011-05-27 08:00:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub doesn't show up while booting

You can e.g. use a liveCD / liveUSB.

Offline

#5 2011-05-27 12:58:12

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

yes... I logged in using live cd. But what I see inside /boot/grub/menu.lst is the temporary image created by this live cd, right? Not what I actually installed in my boot partition. I get this doubt because I un-comment the windows lines in grub but when i restart i still see it commented.

# 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  [/boot/vmlinuz26]
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img

# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

Also my boot partition was logical drive. It was not primary would that been a problem.
Regards,
Onie

Offline

#6 2011-05-27 13:48:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub doesn't show up while booting

You should have Arch Linux Fallback image too:

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/bf1d191b-0f0d-4961-bd67-4d032a2e5873 ro
initrd /kernel26-fallback.img

Did you disable it?

Logical partition is fine.

You should be able to go to dev/sda3 or wherever you have your /boot to see the grub/menu.lst.
What's the output of fdisk -l?

Offline

#7 2011-05-27 15:16:23

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

I mounted /boot partition (dev/sda6 in my system). Here is my grub/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,5)
kernel /vmlinuz26 root=/dev/sda7 ro
initrd /kernel26.img

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

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

Offline

#8 2011-05-27 15:32:20

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Grub doesn't show up while booting

Does it make a difference if you comment out the line "makeactive" for Windows?

Offline

#9 2011-05-27 16:00:22

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

anonymous_user wrote:

Does it make a difference if you comment out the line "makeactive" for Windows?

doesn't help/

Offline

#10 2011-05-27 16:37:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub doesn't show up while booting

http://forums.opensuse.org/english/get- … ost2111379
Takeaway:: install grub to MBR.

https://wiki.archlinux.org/index.php/GR … stallation
GRUB must be installed on the MBR (first sector of the hard disk), or the first partition of the first storage device to be recognized by most BIOS's.

https://wiki.archlinux.org/index.php/GR … B.27s_root
https://wiki.archlinux.org/index.php/GR … to_the_MBR

Offline

#11 2011-05-28 06:28:03

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

Output for fdisk -l

Disk /dev/sda: 40.1 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2e822e81

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/sda2            1276        4870    28876837+   f  W95 Ext'd (LBA)
/dev/sda5            1276        3073    14442403+   b  W95 FAT32
/dev/sda6            3074        3091      144553+  83  Linux
/dev/sda7            3092        4870    14289786   83  Linux

Last edited by onie (2011-05-28 06:28:25)

Offline

#12 2011-05-28 07:24:37

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

karol wrote:

https://wiki.archlinux.org/index.php/GR … stallation
GRUB must be installed on the MBR (first sector of the hard disk), or the first partition of the first storage device to be recognized by most BIOS's.

I installed GRUB in MBR following the instructions given above. And it worked!!! Thanks.

Offline

#13 2011-05-28 07:26:24

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

just one more question.
when I try

shutdown +0

the sigterm and sigkill signals are sent by it again goes to the prompt waiting for user login.
It doesn't shutdown!!!

Offline

#14 2011-05-28 08:03:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Grub doesn't show up while booting

Some people are reporting problems with shutting down / rebooting, check the forums for details:
https://bugs.archlinux.org/24480
https://bbs.archlinux.org/viewtopic.php?id=119355

I still can 'sudo shutdown -h now' just fine.

Offline

#15 2011-05-28 15:58:30

onie
Member
Registered: 2011-05-27
Posts: 20

Re: Grub doesn't show up while booting

thanks it worked. :-)

Offline

Board footer

Powered by FluxBB