Ubuntu Installation :: 9.04 - Lost Grub Legacy In Windows Reinstall
Jun 19, 2010
I dual-boot ubuntu 9.04 and windows 7. I recently reinstalled windows, and it wiped grub-legacy off of my MBR. Reinstalling grub shouldn't be tough, right, especially with clear instructions? Anyway, I can't get anywhere with the official instructions here: [URL]. The first issue is that the current live CD has no program "grub" in terminal. I dug up an old live cd, but I couldn't get anything with the directions:
Find where Grub is. If this gives a few different answers then you will need to find the correct one, perhaps by trial-and-error.
find /boot/grub/stage1
That command didn't find anything, nor did some similar commands found on google.
So I'm really at a loss. What should I do?
-Can I install Grub 2 on my MBR? Will that work with 9.04?
-Can I access my 9.04 install, copy files to Windows, and then just format the partition and clean install 10.04?
I've been using Linux for over a decade, so no need to worry about the obvious. I'm positive that I have my partitions/install correct. What has me baffled is that Fedora 14, which uses GRUB 0.97 (GRUB legacy) - boots Windows flawlessly every single time on the same hardware, but Ubuntu's (or the upstream Debian's) GRUB legacy do not - even though they are based on the same upstream code from the GNU Savannah servers.
No matter what I've tried I cannot get the Debian or Ubuntu version of GRUB/GRUB-legacy to boot any recent Windows 64 beyond XP (Vista or 7). All that it does is resets the computer when Windows attempts to boot, without an error. GRUB is notoriously difficult to compile, so before I try to compile code from RedHat's archives - any thoughts,experiences, similar issues - whatever?
I am actually facing a vague problem here. I was previously running Windows XP and Ubuntu . Ubuntu was installed Windows XP The problem is
1. First I tried to do some disk partitioning. That ended up with some error.
2. Ignoring that, I went to install Windows 7 over Windows XP but I was not able to proceed with Windows 7 , because the partitions were corrupted.
3. So I used Ubuntu LIVE CD (Grub was lost at this point )and used 'testdisk' and recovered the partitions.
4. Now installed the Windows 7 successfully.
5. Now again I moved to Ubuntu Live CD to write the GRUB. After which I tried restarting
6. Now Ubuntu is booting perfectly as before. But the problem is with Windows
7. The GRUB loader instead of showing Windows 7, it shows Windows XP !!! . and there is no other entry for windows. When I tried opening it, it says "error, cant read file" and further inout moves back to the grub loader list again.
"How do I change the entry to Windows 7 from Windows XP and boot Windows7 successfully " I tried it a couple of times, same thing happens . So how to change the entry?
After installing Windows 7 on my laptop, which was already running Natty, I am having issues reinstalling grub. I tried to do this using the method from this tutorial: [URL]... when I enter:
[Code]...
I also tried using --root-directory instead of --boot-directory, and I tried --recheck on both of them without any luck.
Some days ago I decided to reinstall windows, of course windows wiped Grub of the MBR. No problem. I booted of the live CD (9.10) and tried to reinstall grub, I had Ubuntu 9.10 installed before windows wiped grub. I tried the following tutorial: [URL] My fdisk -l output is the following: root@ubuntu:~# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000f2962 [Code]....
sda3 is my root partition, sda2 is the partition where all my media files are located. I mounted /dev/sda3 to /media/root and then I tried to reinstall grub with: sudo grub-install --root-directory=/media/root /dev/sda It came out with no errors, and then I restarted my computer. Grub started, but with a command line. It was the 1,97 beta-4 version. Since I'm quite unfamiliar with GRUB (or really technical linux stuff)
I got a system crippling virus on my windows installation. My recovery disks gave me the same problem. So I installed Win 7 enterprise using a disk my dad got from his work. The installation went smoothly. When I started my computer after it went straight to Win 7 without the GRUB bootloader (not the case with restore disks). Could somebody please help me with this issue because I cant stand using Windows for anything other than games much longer.
This is partly a note to myself for the future and a guide to anyone who experiences similar issues.
So, I had to reinstall Windows XP since my previous installation gave me a blue screen error due to reasons unfathomable. Naturally, this deleted the GNU Grub and I could not login to my Fedora.
I read that apparently booting from a DVD installation offers an option to enter the rescue mode. I did not have a DVD, I only had the LiveCD so I had to figure out a way to reinstall Grub from the LiveCD. The following method seemed to do the trick.
Run the LiveCD and open Terminal.
1. Find the partition where the Grub Stage1 is code...
Ubuntu's update manager recently updated the Grub menu.lst file. It let me decide if I wanted to keep my old menu.lst or the new one. After deciding that I was fine with the new one, I found out that I can no longer boot into Windows 7. I had previously edited menu.lst so that Windows would be at the top of the list, however, I didn't notice that this had put it into the automagic update area, and I realize now that I should have just edited what the default number was instead of moving around the entries.
Anyways, I can no longer access my Windows 7 OS via Grub, and I was wondering what sort of fix I can have for this. I've tried running update-grub, but it hasn't fixed the problem. The Windows bootloader is on the first partition of the only hard drive, as far as I can remember.
I had dual boot PC (openSuse 11.3 / Windows XP). Then I had to reinstall Windows XP, so I lost dual boot capability. (No Grub boot options screen, directly Windows boot.)How can I reinstall Grub (only Grub)?I tried by booting with the openSuse installation DVD, but no repair option appears as in older versions.
I was getting ubuntu grub menu, and i was able to login to windows xp, windows server 2008 and ubuntu 10.10. Recently there was some problem with windows server 2008 and i had to reinstall it, once i did that i lost my grub menu. now i am getting plain windows menu with option of login into windows xp and windows 2008. So how can i restore the grub menu, so that i can login into all the three os from one point.
I have just updated to 10.04 on my Dell Insperon 8200 laptop, and all seems well with Linux.My problem is that although it shows in Grub Windows XP will not load. I just get a blank screen with a flashing cursor.I have tried to grub-mkconfig and grub-update, both of which reported successful results.However on reboot I still get a blank screen for windows.This was not an issue with 9.04 and 9.10.so I don't think it is the machine.
My laptop came with Vista and I added Linux Mint 6 (based on Ubuntu 8.10 Intrepid Ibex) all is good for a year or so. Added Ubuntu 10.10 to my desktop, loved it, wanted to add it to my laptop...oops.
Installed the main version from a LiveCD, did the the easy multi-OS installation.
GRUB-0.97 is what boots my system though looking at boot script I do have GRUB2 somewhere.
Currently, my boot options are:
1. Mint 6
2. Mint 6 (recovered)
3. Mint 6
4. Mint 6 (recovered)
5. memtest 86+
Other operating systems
6. Vista/Longhorn loader
7. Vista/Longhorn loader
Sda7 is where Ubuntu should be installed. GPARTED says its ext3 file system and bootscript says ext4.
I did find the forum post on purging and installing GRUB2 though I'm not sure if that's what I need to do, or try to reinstall Ubuntu w/o also doing partition resizing at the same time.
The output from my bootscript:
Code: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Grub 0.97 is installed in the MBR of /dev/sda and looks on the same drive in partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.
I need to reinstall my windows 7 partition, but I don't want to lose my ubuntu partition. Currently I just have both installed and grub is dealing with my booting options.Is there any way I can reinstall windows without messing up grub or my ubuntu partition?
I had a working dual boot Ubuntu 10 and Windows 7. Anyways long story short, I got it working again but have lost the boot option for windows 7. If i run fdisk -l, I get the following.
I installed gparted and can see that windows 7 is installed in dev/sda6. In another forum, i read that someone had to edit their menu.lst so i did with the following.
The O'Reilly book, Linux in a Nutshell, Sixth Edition has this excerpted section (on Legacy GRUB):If GRUB is installed in the MBR, you can chainload Windows by setting the root device to the partition that has the Windows boot loader, making it the active partition, and then using the chainloader command to read the Windows boot sector.If GRUB has been installed to (hd0,0)'s MBR, then I am confused what "file" chainloader +1 is pointing to. Obviously, it is not the MBR but that is confusing to me. When one boots a Linux system with GRUB in the MBR, what file does chainloader +1 point to?
I installed yesterday the 11.4 openSUSE to my desktop pC (in my 160hdd that previous had WinVista).The bad thing was that I used grub from opensuse to be installed to MBR.openSUSE uses Grub 1.5 and I want grub2.Now I cannot see Ubuntu when grub legacy loads.I will post the results from
Code: fdisk -l later today (cause i am not in my pc)
I moved from 8.04.2 to 10.04.2 and tried to upgrade from GRUB Legacy to Grub2. I must have made a mis-step somewhere in the process as on boot it now tells me
Code: GRUB Loading stage1.5. GRUB Loading, Error 15 _ Is there a nuke from orbit, no finesse way of just ripping all the existing GRUB mess out and installing GRUB2 from Boot disk? for instance should I be just be able to boot with a LIVE CD mount the primary disk of this machine and enter the below in a terminal without messing up any further?
I got ubuntu 10.04 lucid lynx along with windows (dual boot) and using Grub. On my computer, I have my C:/ (programs) and D:/ (data). I've never used my D:/ before that day that I've lost my windows partition on my grub menu. I usually use my D:/ with windows. The first time I used my D:/ to store data with linux, I lost my windows option in my grub menu. I'm not sure what I did wrong but I do want to restore my windows option in my grub menu.
After "fdisk -l",
I checked in /boot/grub and there is no menu.lst to modify. how I can get back my windows option in my grub menu ?
i have grub1 working and chaonloading truecrypt loader if i choose "win7" in grub1 menu I want to install a new kubuntu (no upgrade) I have read that that there are problems with grub2 and truecrypt actually a bug that grub2 dont chainloads truecrypt boot loader many ppl seem to have problems with grub2 then i read somewhere that ubuntu install is not asking for grub2 to be installed and just installing it. is this right?
i think at least for the alternative install cd its wrong. i installed it on another pc and it asked me! it works for win7 and Ubuntu and i guess its grub2 but there is no truecrypt installed anyway, i wanted to ask is the live cd installer asks me for grub2 and what is the best and easiest way to stay with my grub and just change the menu.lst to the new kernel (i guess there will be one)
I'm running dual OS Windows Vista Bussiness and Ubuntu 10.10 on my acer notebook. But a few days ago after I update the kernel (I think), I can't boot to my windows OS. It's only stuck at boot screen (progress b4 logon to windows), so I want to reinstall my windows with windows XP. But, if I do this, the grub must be replace by windows bootloader. how to reinstall the grub?? will the new grub, allow me to load the latest kernel which already install on my Linux?
I re-installed Windows over an old Windows partition. The hard-drive used to have Windows and Ubuntu on it. I am now in usb live ubuntu because grub doesn't appear anymore when I boot the computer (it boots in the new windows automatically). The ubuntu partition is still there, as I can access my files from this live usb. I'd just like to know how to re-install grub.
I have (had) a dual boot system of Ubuntu (11.04) and Windows 7. I was forced to reinstall Windows over itself and it installed its boot loader. How do I get my Grub boot loader back? I googled it and found instructions, but they were from 2007 so I thought it might only be for Grub Legacy. The instructions were as follows:
Boot from a live cd run "sudo grub" in a terminal then, "root (hd0,0)", "setup (hd0)", and "exit" reboot and grub should be present
While I wait for ubuntu to download so I can create a live cd, can someone confirm if this is correct for Grub 2? Also, what commands will tell me which hard drive and partition I need to put in the above commands (hd0,0)? I have (4) internal hard drives and boot drive has a few partitions on it.
I have ubuntu 10.10 running on my HP dv5 pavilion laptop So today i tried to reinstall grub on my pc .. i removed grub-pc and grub-common using synaptic then booted up with a live cd of ubuntu 10.04 i then mounted sda11 to mnt using sudo mount /dev/sda11 /mnt sda11 being my ubuntu directory containing the /boot then i installed grub to it using sudo grub-install --root-directory=/mnt /dev/sda it reported as installation finished.No error reported then i unmounted /mnt and checked for /boot/grub/grub.cfg seems like the file is missing so are the files in /etc/grub.d/ reinstall my grub back
for some reason Win7 has gone and run a startup repair (there was two boot options in GRUB, perhaps I chose the wrong one by accident) which has corrupted my GRUB. Now, the only way I can get anything to run is by booting Ubuntu of a live-pendrive/flashdrive! I tried following a couple of walkthroughs that claimed to fix the problem; and I don't doubt that they work - on someone elses computer! I receive errors whenever I try to use things like 'sudo grub' and often (but not always) with 'mkdir' and 'mount' - and I have very little idea what some of them are doing (I gather 'mkdir' is making a directory and 'mount' is mounting a device virtually, but some others are a little harder to guess)
So, I am wondering if someone has a little insight as to how I can fix this and perhaps point me in the correct direction to learning about making my way around ubuntu and these fancy terminal commands! Currently, I am at the stage where I can boot into my flash drive by spamming escape before the bootloader. However, when GRUB loads it tells me there is an error and gives me a command line; through which I have been unable to get anything to happen. I am running Ubuntu 10.10, I believe, and Windows 7 on the same hard-disk and possibly the same partition (though, I am unsure of how Ubuntu works itself into partition's). I also ran a little code (seemed somewhat like a batchfile in windows) that made a txt file of my boot info; I'm attaching it below if that helps at all. Boot Info Results: