Computing.Net > Forums > Linux > Lost Grub

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Lost Grub

Reply to Message Icon

Name: tvc
Date: December 24, 2008 at 11:22:29 Pacific
OS: Linux 2.6.18 kernel
CPU/Ram: 2 G
Product: N/a / N/A
Comment:

Before installing Linux, I installed a multi-boot from Windows. When installing Linux, he specifically asked what to install. I said him to install Grub, and to do it in the first sector of "the" disk. I've read you better not choose MBR there.

Now, installation was OK, but I still have the multi-boot I had earlier. So, no Grub. I know where Grub is, but why does "Google" tell me to install Grub NOT in the MBR ? Is it because they want you to not use it ? Or is it because you have to switch your HD in the BIOS, forcing to TRY and boot from my Linux disk (where Grub is). Thing is, if I have a multi-boot, why would I change the disk order in BIOS ? Multi-boot was invented for that, no ?



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: December 25, 2008 at 06:58:20 Pacific
Reply:

The advantage is, that you can further use your Windows Boot Manager. You simply have to add a line at the end of your boot.ini file, to add the option to start linux.

Here is, how to do this.

1. Start your Linux System. You only need to start it in text mode, boot option, init 3.
2. login as user root
3. cd /tmp
4. create a file vmlinuz from the linux boot sector
dd if=/dev/hdaX of=vmlinuz bs=512 count=1
5. copy the file vmlinuz to a floppy disk, usb stick or something like that, to be able, to copy it to your windows c: drive later.
6. reboot and start your windows
7. copy the file vmlinuz to your C drive to the root directory
8. open explore file manager and goto the root of drive C. Find the file BOOT.INI, rightclick to the file and change the attributes system and read only.
9. open the BOOT.INI in notepad and add the following line to the end:
C:\vmlinuz="Linux System"
10. Save the file and restart your system.


0

Response Number 2
Name: tvc
Date: December 26, 2008 at 11:50:48 Pacific
Reply:

Did the above, including changing boot.ini, but he is still booting like before.

I soft of found how Grub is working: when I decide to boot into Linux, I get the Grub menu (if I press a key at the correct moment), and this menu allows me to boot to Linux ... or to Windows!

Problem is the regular, standard MS boot manager. It actually was never ebabled, not before, not now. This is my boot.ini

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:\linux="Linux"


0

Response Number 3
Name: paulsep
Date: December 26, 2008 at 14:09:00 Pacific
Reply:

Ok, did your Windows Boot Manager ever worked before?
(Before your installed Linux.)

If so, there might be a problem of another activated partition.
Linux sometimes sets e.g. an extended partition to active, to boot from such partition.
Check out, which partition is activated by using fdisk.


0

Response Number 4
Name: tvc
Date: December 27, 2008 at 02:52:47 Pacific
Reply:

No, the Windows boot manager was never active before. I don't have partitions, I have another disk for Linux only.

I can boot to Linux from Grub (duh), from OSL2000, but not from the MS boot manager. It shows me the selection, but then immediately returs to the same menu.

OSL2000 is the bootmanager in the MBR of my primary disk.


0

Response Number 5
Name: paulsep
Date: December 27, 2008 at 04:57:17 Pacific
Reply:

In this case of using an alternative boot manager, it makes no sense to edit your boot.ini from the windows boot manager.

You have to add the things described above to your alternative boot manager.


0

Related Posts

See More



Response Number 6
Name: tvc
Date: December 27, 2008 at 07:31:33 Pacific
Reply:

You are right, but I am experimenting with bootloaders now. At the moment, I have 3 : Grub, OSL2000 and the Windows XP bootloader. I made a mistake in the DD command above, I was extracting from /dev/sdd instead of /dev/sdd1

Anyway, I'm going to start removing some bootloaders.

Issue solved, but it must be said: Grub is the only bootloader you have to force being showed. If you don't press a key at the correct moment, you don't see any menu. The other bootloaders show their menu by default


0

Response Number 7
Name: paulsep
Date: December 27, 2008 at 08:27:08 Pacific
Reply:

That's not correct.
I just installed OpenSuSE 11.1 at a spare computer for testing and the Grub Bootloader directly shows up the Boot Menu and it also shows the DOS partition, I created before installing Linux.
All entries are working fine.

So I guess, there must be another issue in your configuration.


0

Response Number 8
Name: TopFarmer
Date: December 27, 2008 at 19:44:00 Pacific
Reply:

(If you don't press a key at the correct moment, you don't see any menu) that would be only if you have the time out in boot/grub/menu.lst set at 0.


0

Response Number 9
Name: tvc
Date: December 28, 2008 at 02:05:55 Pacific
Reply:

I don't recall setting it to 0, so I'll assume it was the installers default option to do so ... Will keep an eye on it, next time.

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

mount ntfs Intel Gpu & pclinuxos2007



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Lost Grub

Booting linux www.computing.net/answers/linux/booting-linux/21950.html

Booting problems SUSE 10/XP www.computing.net/answers/linux/booting-problems-suse-10xp/28630.html

lost windows xp after LINUX GRUB www.computing.net/answers/linux/lost-windows-xp-after-linux-grub/20143.html