Software :: Restore GRUB After Installing Windows 7?
Dec 26, 2009
have an Intel Core2 Duo system that would dual boot via GRUB between Windows Vista and Fedora 10. I recently attempted to upgrade from Vista to Windows 7, however because the version of Vista I had would not upgrade to Windows7. This has removed the ability to boot into my Fedora 10 installation. After some brief research on the Internet, I created a Live CD of Fedora 12, and booted into that. Accessing the terminal I tried typing:
[liveuser@localhost ~]$ su root
[root@localhost liveuser]# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
[code]....
Error 15: File not found
What is needed so I can restore GRUB on my system and boot into Fedora again?`
I have installed Windows 7 on my laptop . Now, it directly boot from Windows 7 . I think the MBR overwrote my grub . I have found two methods by google , but still does work . 1: boot from debian install CD, Alt +F2 switch to the console. "grub " "root (hd0,0)" "setup (hd0,0)". 2:boot from CD, mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt ; chroot /mnt ; grub-install /dev/sda.
My problem is that I have installed openSUSE 11.2 on a laptop with Windows 7 already installed. Yast resized my Windows partitions, which seemed to upset Windows as I had to go to my Windows Recovery Disc to restore it. When Windows was restored it did something so that GRUB no longer appeared. So I did a system recovery for openSUSE 11.2 which then removed Windows 7 from GRUB! Now I'm trying to restore Windows 7 and configure GRUB so that Windows and openSUSE will stop fight for boot supremacy and play nice with each other. Here are my Yast2 Boot Loader settings:
Section Management Settings SUSE LINUX (type)image (/dev/sda6, root=dev/disk/by-id/ata-ST9320320AS_5SX4PRAS-part6) Failsafe SUSE LINUX (type)image (/dev/sda6, root=dev/disk/by-id/ata-ST9320320AS_5SX4PRAS-part6) Boot Loader Installation Settings Boot Loader: GRUB Boot Loader Location: Boot from Extended Partition Disk Order: /dev/disk/by-id/ata-ST9320320AS_5SX4PRAS
I need to use the fixmbr command to fix my windows installation. I'd like to restore grub to its former state after doing so. I have searched how to do this and since my configuration differs slightly, I'd rather get more specific instructions. Right now this is what menu.lst looks like:
Is there any way to simply remove grub? Does GRUB reside in a specific partition? Do I have to just delete the partition that has GRUB on it?The way my bootable partitions work is something like this.
1)Installed Vista
2)Installed Ubuntu
3)Thought I removed GRUB
4)Put in new HDD(1) and installed Win7 onto it
5)Put in another new HDD(2) and put another Win7 onto that (but I disconnected every other HDD so that the bootloader would be written onto the new HDD(2). When I have all my HDD's plugged in now, I get a GRUB load error (I think it's 21).
Basically, I used a USB stick to run ubuntu 9.10 live, then tried to install to an external 500gb HDD connected with a Sharkoon Drivelink USB adaptor. The installation went fine, but I get a GRUB error 21 when booting a lot of the time. I figure this is due to the way in which the drive is connected. I am a complete noob, and I want to just ove GRUB completely and restore my Vista bootloader. Unfortunately, I do not have an installation disk as my laptop didn't come with one, and none of the others I have other PC's are the same version (home premium 32-bit).If you know of a way to fix the GRUB issue/sso I can use the external drive I would love to hear them too, but the main aim of this thread is to help me remove GRUB and restore the windows bootloader. If any more information is needed, just ask and I will provide it.HP Touchsmart TX2-1010Windows Vista Home Premium 32-bitExternal HDD:Seagate Barracuda 7200.11 SATAII (with jumper set for 150mbps)
I just made my system unbootable... Here is what i did.. I have two sata HDDs
160 GB (Contained Windows 7) 500 GB
I copied entire 160 gb as an mirrored image to 500GB HDD using Acronis Disk Director. I deleted entire 160 GB HDD.. Removed the 500 GB HDD and kept it seperate.. Installed ClearOS Enterprise 5.2 Worked a little bit... The i wanted to delete ClearOS.. So i connected 500GB HDD and booted again in Acronis Disk director Formated the entire 160GB HDD.. Copied back the entire 160 from 500GB HDD.. Now my sytem refuses to boot... Just 4 letters "GRUB" appears on the screen... I tried booting using XP CD.. It gives a blue screen.. I tried Windows 7 CD.. It says unable to fix due to MBR problem..
I had i a dual boot win. 7 and ubuntu 9.10,recently i had some problem in my windows os so i restored the c drive to factory settings since both operating systems where in c drive so when i tried to boot grub was showing problem.the information displayed was loading grub, the file does not exist rescue grub> so what should i do to restore grub so that i can boot again into windows 7 and ubuntu without loosing my data.
I have 2 hard disks. In the first one, I have installed Archlinux, with GRUB. The second one is empty. I have a Windows XP .iso file. Is it possible to install Windows XP in the second hd, without having to burn the ISO file? I don't have got any CD recorder/reader.
I am using windows XP.I wish to install GRUB bootloader so that I can modify menu.lst & add lines to boot from an ext2 partition having iso of linux distro.One way is to use live cd & try 'sudo grub-install <device>' but I don't have live cd.I came to know about open source software 'wingrub' but I am not able to understand how to use it even after reading [URL] what should I do to install GRUB in mbr & have option to boot to c drive which has windows & another partition (/dev/sda2) which has linux.
I have 2 HDDs, and under linux, sda is ntfs, sdb is ext4 of debian jessie, the booting order is sdb ( it contains the grub on sdb's MBR) then sda, the windows boot loader on its own MBR.
The sda was win8, but now just formatted it and did a fresh installation of win10. After power off PC and plug the sdb up again. Turn on the power, setup the booting prior as same as above, but, the grub can not realize the windows 10 boot sector, error message is: no such device /dev/sda1... (and following a digit array) 8xxxxxxxxxxxx....
How to config grub in order to make it can dual boot both Operating System?
I have windows and I installed fedora 12 on a separate partition.
However, I had a problem with my windows XP SP 3 and had to install windows. Which I did on my C drive. However, when I re-boot I on longer get the GRUB loader displayed so cannot boot into fedora.
I'm thinking about upgrading my Windows Vista to Windows 7. I rarely ever use it but I figured that when I do have to use it I would rather use Windows 7.
Will it mess up Ubuntu or GRUB when I do this? Like GRUB not recognizing Ubuntu any more? I don't really know but I just wanted to ask this here just in case.
I have updated my Windows from Vista to 7. I knew that this would mess up my GRUB so that it wouldn't show on boot. However, it seems as if my GRUB has uninstalled.
I have tried to reinstall it with a Live CD but this didn't work. Maybe I was doing something wrong. I'm sorry if I'm asking a question that has already been posted but I could only find ways to make your GRUB reappear, not reinstall it.
I'm stuck with Windows 7 for a week or two now and I really want to get back to using Ubuntu!
I have my system set up to dual boot Ubuntu 9.10 Karmic Koala and Windows XP Pro, using GRUB 2 (1.97~beta4) as the boot loader. I want to remove Ubuntu and GRUB 2 from the system and install Windows 7 in a dual boot environment with Windows XP. My concern is to be sure that in the process of removing Ubuntu I do not make my system unbootable by removing or otherwise screwing up GRUB without replacing it with the Windows boot loader.
I read a suggestion saying that the most straightforward way to do what I want is to simply install Windows 7 and, during the install process, select my current Ubuntu ext3 partition as the Windows 7 system partition. The suggestion said the Windows 7 install process would overwrite the MBR with the Windows boot loader, effectively uninstalling GRUB 2. The Windows boot loader will find the existing XP installation and give me a choice between Windows 7 and XP at boot time. Does that scenario sound right? Would it work the way I have described it? (I know I would no longer have Ubuntu. That is OK; I intend to reinstall it later.)
For what it is worth, here is my current partition layout:
I had to install windows for my sister, and I had a 20gb partition there for backup ( /data/ ), and well, that's where I was going for. After reformatting and installing Windows, I try restoring grub and this is what I get:
Probing devices to guess BIOS drives. This may take a long time. /dev/hda: Not found or not a block device. Searching for an alternative way to install it, I found that if I 'installed' Ubuntu over my Ubuntu partition, it would automatically restore grub. But when I get to the partition tables, I get a message saying that "The computer has no operating systems on it" and it considers my hard drive as empty.
I had two OS in laptop windows vista and linux mint and when I used to start my computer I used to get different option for os like linux mint, linux mint memory check, windows vista etc.. but because of virus windows vista got crashed so I formatted disk drive C: which were containing windows vista and reinstalled fresh copy of vista.. but now when I start my computer vista start automatically, I do not see GRUB options to run windows os or linux mint..Is there a way to reinstall GRUB to get options like I used to get before formatting ?
I installed in ubuntu 10.04 in my laptop yesterday i needed windows and had to install it so right no am unable to boot in ubuntu without my live cd when i was installing ubuntu eather unchaked to install the bootloader or i installed it not on partition but starit on the drive on the /sda am able to boot in my ubuntu with the live cd by typing in parameter :grub. i really need grub boot loader in this computer to be able to chose to boot in windows or ubuntu i tried couple of instructions and always goat some headache.
I am completely new to Linux as of today.I finally took the plunge and downloaded and installed Ubuntu 8.04 on my Windows XP computer (dual boot), using the Ubuntu installation wizard to "make room" on my hard drive for Ubuntu by creating a separate partition. The installation finished successfully and Linux boots just fine, but Windows XP will no longer boot at all.
I have read many threads on this and other sites, giving advice of how to correct this problem. I am not at all experienced in editing and working with different ways of booting (other than Windows default). But after some frustration, I located (according to the threads) a couple places to try making changes to the boot commands and I tried various lists that were suggested. Before I changed anything, the Windows XP boot screen would appear and then it would revert right back to Grub.
[code]....
what drive number Ubuntu and/or Grub installed to, or assigned to the Windows partition, and I have no idea how to find out. I do not have a Windows XP installation CD (it came pre-installed on my computer), so I CANNOT wipe out that partition and simply reinstall it--I MUST be able to fix the problem without harming Windows!!! I also have data in the Windows partition that I don't want to lose. I could possibly uninstall and reinstall Ubuntu (as I saw suggested somewhere online), but I have not the slightest clue how to accomplish that task--and WHAT IF it didn't work?
Since CloneZilla doesn't include the MBR when saving a partition into a file, I need to take care of this myself. With a working XP in /sda1, I'd like to...
1. Boot with a Linux live CD
2. replace the Windows MBR with Grub, ie. without any Linux already installed
3. save Grub's configuration files into /sda2 (which is ext2fs-formatted)
My computer initially had one hard drive, with Debian Lenny 5.0.4 installed. I haven't done any special configuration, so upon boot, I was presented with the GRUB kernel select menu, then gdm, etc. I think I used the Debian installer's 'use entire drive with LVM' configuration.
I then added a second hard drive, with the intention of installing Windows XP on it. After I installed XP on this second drive, I found out that it had overwritten the MBR on the first drive. (It was my intention do use the BIOS' F8-key boot menu to choose between the two drives, each with their own distinct boot loader. The two drives and OS's would be completely independent.)
Using my Debian installer CD, I think I have GRUB installed on the first drive again. I've found a number of tutorials which say I can use 'set' and 'linux' to boot the system, but the linux command always returns a file not found error.
I think my LVM filesystem is still intact, as the Debian installer's fdisk reports it, it can also chroot to it and my installation appears to be intact. 'ls' within GRUB shows (derek-swap_1) (derek-root) (hd0) (hd0,1) (hd0,2) (hd1) (hd1,1) (fd0) . 'derek' was the hostname I used.
I would like to simply restore the system to the way it was before: with the standard GRUB that comes with Debian 5.0.4, which then boots into the debian with my LVM filesystem. Is there a way to do this from the Debian installer CD? (I was hoping there would be a 'dummy install' command which would install GRUB and configure it properly, but leave all my existing partitions and filesystems intact.)
This is a problem when Windows is running some malware that cannot be removed, which happens all the time. The problem is all the new hardware or specialized hardware will not work on Linux so Windows is the only choice. I would think the latest versions of Linux would have this problem worked out by now. I installed 11.3 one week ago, only to find that the repair option in the install menu no longer exists so don't bother uses this link to reload the GRUB HowTo Boot into openSUSE when it won't Boot from the Grub Code on the Hard Drive. I also tried this link Re-Install Grub Quickly with Parted Magic which does not work either. On step 2 typing grub returns the error message "grub command not found". You can use GRUB if you boot the install DVD and select Rescue Boot. However when you type find /boot/grub/menu.lst the error message "file not found" is returned.
I did the following to restore my GRUB boot record. Boot the install DVD and select the update option during installation. Change all the repositories to enable except the NVIDIA repository, it is not responding at this time. When the system comes up go into Yast and open the boot loader. It should have your original boot menu in memory. Change the default to another option and re-write the MBR. This will write a new MBR using the original data updated with your new default. Re-boot and then change your default back. I am just a NewBe so this may not be exactly correct but I hope it saves someone like me some time fixing a MBR re-writing by the Windows installer.
I am pretty new to ubuntu, and not sure if this question has been solved by anyone, I tried search this forum, but didn't find enough information. The closest thread I found here was this one:[URL].. Here is my situation, I have installed Ubuntu 9.04 a few days ago with an old Live CD, after running it pretty well, I upgraded it to 9.10 with the online update tool. (I guess this makes sure I was using Grub 1, the legacy Grub). After updated to 9.10, I installed a Windows XP on my hard drive, obviously, it wiped off my Grub from the MBR. So I tried to restore the Grub back to the MBR, but failed, please see below:I first run the fdisk
I recently replaced a failed graphics card w/ a GT 240. Next thing I know, Fedora 11 won't boot up properly. I guess it was a driver issue. I can tell you I went about fixing it all wrong because I wiped the FC11 partition (intending to install FC13) and now I can't boot anything up. My system consists of: sda1 vista, sdb1 XP, sdb5 extended, sdb6 Fedora. I thought grub was on the fedora partition, but reinstalling fedora with grub on that partition didn't fix the boot up problem. Do I need to replace the windows boot loader on sda1 with grub when installing fedora?
I'm just slightly confused here, but... what the? Why does installing grub-doc remove BOTH grub-pc, and grub-common? So basically it seems like by installing grub-doc, I have uninstalled grub totally (yes, it is still there as the bootloader, but i have no way of updating it now!) from my system. What's the conflict between grub-doc and grub-pc, such that grub-pc has to be removed?
One Laptop. One hard drive. Two OS's. Windows 7 is shot to hell from installing and uninstalling to much crap. Windows & WILL rewrite my MBR. How do I back up my far superior GRUB MBR and restore it over the wincrap MBR once I am done reinstalling Windoze?
I am using ubuntu 9.10 as my desktop operating system in dual boot with win xp. Both these installations are in one 160 gb harddrive.I used a partition manager tool of windows and created an unpartitioned space in the partition that contained win xp.Then i installed the fedora 13, (just wanted to use a redhat based os) this installations was done in the unpartitioned space that i created earlier.
Everything was fine uptill now but the problem came in when i boot. The grub that used to load on startup earlier is now a different grub (0.97) and theres no option of the older ubuntu operating system. Though the linux partitions cannot be accessed from windows, I can see them and they look as they were before plus two extra partitions one of 500 mb and other of 43.75 gb (which is an accessible partition to windows with zero space available). I see that the partitions are there intact but theres no way how to access them. I don't know how to restore my older grub.