Grub menu doesnt load at startup : dual boot : grub in the /boot partition
Yesterday I installed Arch Linux on my laptop. I had Windows 7 already installed on /dev/sda1 (hd0,0).
The root partition or Arch is on /dev/sda3 (hd0,2). Also, I installed grub on root partition and not on MBR. I configured grub accordingly. The grub entries look like below : Code:
# Config file for GRUB - The GNU GRand Unified Bootloader I found everything right in the menu.lst file. But when I boot, the grub command line hits the screen instead of the desired menu. From the command line, I made the grub identify its root partition by : Code:
root (hd0,2) Code:
configfile /boot/grub/menu.lst So why doesnt the grub menu load at the first place? |
if you want to boot Grub, install it in the MBR.
|
Quote:
|
Quote:
Quote:
|
Quote:
Quote:
http://wiki.archlinux.org/index.php/...Arch_Dual_Boot And regarding the need to have some code in MBR, yes, I agree to that. I did not have a detailed idea about how it worked. Anyways, I set up the grub using Code:
setup (hd0) Do correct me if I am wrong in my understanding. Now I have the menu appearing at startup. So I consider this problem as solved. However if someone has any elaborations over this problem please share. :) |
Generally, Grub is installed during the installation of your operating system and the default is always (or almost always) to install to the master boot record.
The standard methods of installing Grub if it was not successfull during the operating system install are: grub-install /dev/sda This would need to be run from your Linux partition you want to boot if you have multiple Linux installations. To install Grub to the third partition of the first drive from the grub prompt: root (hd0,2) setup (hd0) quit The above works on Grub Legacy. Grub2 numbering is different, numbering partitions from one rather than zero. I haven't used Grub2 so I don't know if this method still works. |
We don't know what you were planning to do - as in use the Win7 bootloader, or grub - or what you may have done to try to achieve it.
Had you done a normal Arch install, grub would be installed to the MBR, and would find that menu.lst - unless it was moved subsequently. The use of "setup (hd0)" following a "root(hd?,?)" to identify the grub root directory will (usually) fix things. The grub-install mentioned above is merely a wrapper around these commands - although it does do some sanity checks. |
Yes! Even I feel that I confused you people. :o
But I followed the same steps that yancek and syg00 suggested and its all working perfectly now. So, I would rather call this as solved than creating more confusion. :) Thank you for help :) |
All times are GMT -5. The time now is 10:08 PM. |