Ubuntu Installation :: Reinstalling Grub Fails After Windows 7?
Jan 15, 2011
I previously had a single 160gb drive with two partitions, dual booted for Ubuntu and XP. I then installed a new SSD drive and put Windows 7 on it and of course I lost grub on the MBR. I have gone through this before so I went ahead and booted the livd CD, installed grub then ran
root (hd0,1)
setup (hd0)
but then got these errors;
Error 22: No such partition
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
I recently had to reinstall Windows XP and as usual it destroyed my grub setup. I have done this before, so I simply booted from a live CD and typed this in the terminal:
Now, the problem with it this time is that in the past in these situations I had only Ubuntu Feisty and Windows XP installed on my machine. But I have installed Ubuntu 9.04 on a separate partition (retaining the old 7.04 installation separately) since I last had to reinstall XP. Doing the above procedure restores my grub sttings to my pre-9.04 installation (i.e. I only get Ubuntu 7.04 and Windows XP in the grub menu).
Currently I installed Windows Starter, then installed Fedora 15 Alpha from the 'Fedora 15 LiveCD'.Now, I have reinstalled Windows Starter and now my grub loader has been removed.How can I get the grub loader back, with just the LiveCD?Is it possible to do this without the LiveCD?
My Windows installation had a problem and I had to reinstall Windows. The problem now is that I need to get grub back so that I can boot into Fedora. I'm using a Fedora 11 LiveCD I had sitting around. Here are the results of the command most of the way down the first page:
Quote:
Disk /dev/sda: 250.0 GB, 250059350016 bytes 240 heads, 63 sectors/track, 32301 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Disk identifier: 0x000f09ab
[Code].....
I'm tempted to try the grub-install command quoted near the end of the thread, but I don't want to do anything that will hose the system.
I have installed Ubuntu 10.04 LTS-the Lucid Lynx on top of a Windows XP installation. The Windows partition started before I did this. Now, all I get is a flashing cursor when I tell GRUB to start the Windows XP partition.
I have tried reinstalling Ubuntu with no effect. I have tried repairing Windows using a Windows installation disk.
However, I can reach the files in the Windows partition just fine from Ubuntu.
I had 9.04, then upgraded to 9.10. After screwing it up, it won't boot. Is it possible to just reinstall Ubuntu using the CD? Cause then I would get GRUB 2. I installed kde-desktop, then it failed to boot (I selected KDM) and that somehow screwed it up.
Recently when I booted Windows 7, a "check filesystem" thing got up, so I let it do its thing. And now when I start Windows 7 my computer reboots right after "Windows 7" logo pops up. Is there any way I can re-install/repair my Windows 7 without losing my Ubuntu partition and all my stuff on it?
I've re-installed Windows and now can't boot xubuntu 9.1. I've looked at: [URL]. I did the the fdisk -l and tried mounting each of the partitions but I couldn't mount sda4 which I think is the partition that my xubuntu is located on. A clue that this is the partition is that it is the only one of type extended as I saw in gparted. It was also the only one apart from sda5 that I wasn't able to mount and sda5 I think was an old USB partition. Anything else I could try or are you going to need the output of "fdisk -l" to get a fuller picture.
I have an old computer, it came with Windows 98, later I updated it with Windows XP. XP ran slowly because of it's outdated hardware. Around this time I already had a new computer. I decided to install Ubuntu on it to muck around with. However, Ubuntu also runs slowly and I have a dual-booting computer. However, when I try to get into the BIOS of the computer and run the 98 disk, I can hit every button and BIOS will not load. Question: How do I reinstall Windows if I can't access the BIOS?
I'm about to reinstall Windows XP on a system that I also have Ubuntu installed on. I'm a bit confused how the boot loader works in a dual boot system. After reinstalling XP will I have to do something, like reinstalling GRUB somehow?
I have a dual boot machine (Windows 7 and Debian). W7 and debian are on the same HD but on different partitions. The debian partition is an LVM encrypted one.
The W7 needs reinstalling, and as I understand the process will overwrite the debian bootloader (grub).
Question: Is there a way to save the current bootloader and recover it after I've reinstalled W7, so I wont have to reinstall debian from scratch?.
I plan to re-install W7 on the same partition it is now, without overwriting the debian partition.
I currently dual boot windows XP Pro with Ubuntu 9.10. I made a mistake last night playing with gparted and lost my E drive, which had all of my music, games and movies plus is where my Ubuntu install was. I then ended up reformatting the drive with windows and reinstalling Ubuntu 9.10.My question is how can I put my windows files on my E drive without going through the hassle of reinstalling windows.
I have a 20g IDE drive where my windows install is, windows and Ubuntu both tell me this drive is failing, (I have used it for booting since 2002, so I am not that concerned with it), another 40g IDE drive for more storage and a 160g SATA drive where Ubuntu is again installed. I want the SATA drive to be my main boot drive now, so how can I clone my windows boot to the other drive. I tried gparted but could not figure it out. I have gparted burnt to cd, booted with it and just don't understand how to use it.Also, if I clone this boot drive to the SATA drive, do I need to change jumper settings on my 40g to master when I take out the 20g drive.20g master and 40g slave on first IDE channel and 2 CD devices on second IDE channel and SATA drive on first SATA connection. I read somewhere that it is better to keep the cd devices on another channel than the disk drives.
I have 10.10 installed within my Windows Xp.All was fine.Then,I upgraded to 11.04.Boot screen etc is fine .Log in is automatic in Classic.Unity & Compiz not supported.Now,again everything is fine except that my xp partitions are not recognised and hence I can not mount them and access them.
I wasn't thinking at the time, but after I installed Ubuntu 9.10, I installed Xp. Did it the wrong way around, is there anyway to get grub going again, without reinstalling Ubuntu?
I had Ubuntu 10.10 installed on an HP G72 laptop, and I wish to reinstall Win 7. I loaded from the recovery disks that I made before installing Ubuntu and all went fine. At the end, I need to restart. When restarting, I am getting the GRUB rescue prompt with "unknown filesystem." It surprises me that GRUB is still there. How can I get rid of it so I can boot windows?
I have triple boot machine Windows 7 + Ubuntu + Mac OS X in a single HDD.
Windows 7 -- /dev/sda1 Ubuntu 10.10 -- /dev/sda2 (In same Partition grub 2.0) Mac Snow Leopard -- /dev/sda3
I have installed GRUB 2.0 in same partition where current ubuntu is installed ie /dev/sda2 and basically Windwos Boot manager is installed within MBR.. & I have added GRUB 2.0 and Mac OSX entry into windows boot manger with some freeware from windows 7. So practically when I start my computer First Windows Boot manager comes up and asks me which OS to start first. I set up this type of installation with the thought that when grub 2.0 is not installed within MBR, I can format the whole /dev/sda2 partition without any difficulty and reinstalled any future release distro of ubuntu. So is it practically possible? If I format /dev/sda2 and reinstall new ubuntu release there.. Old grub won't affect the installation of new one.
I'm new to Linux, and I'm trying to install Ubuntu on a PC that was home built a few years ago. It had XP on it and it ran fine, but i wanted to learn Linux, so I decided to install Ubuntu. I've tried a few different versions of Ubuntu, 10.04 and 10.10 to name a couple. 10.04 gets so far and the boxes all close and it sits there. 10.10 fails when trying to install Grub. I did get Xubuntu 9.04 to install but it fails when i do any updates/upgrades/software installation After it fails, it will no longer boot. Just a thought I had could be incompatibility with my mother board? I have a Mercury P4VM800M7 motherboard in it now. Hard Drive is a WD Sata drive that i just purchased brand new.
Ive installed about 50+ boxes with ubuntu/mint/fedora/etc but f15 is giving me a real headache...
I tried a fresh install over f14 with this drive (sdb, sda is my backup disk)
Installed obviously in part7
After rebooting (successful copied live image on hdd)
Code:
After another couple of installs (with lvm & w/o lvm) & even disconnecting the second harddrive -> same issue
Typing 'ls' in the rescue grub prompt returns
Code:
Cant 'ls /' into a single them - unknown filesystem (grub is installed in mbr of sdb) 'linux rescue' (wanted to try manual grub installation) command didnt work either.
Now again on fedora 14, same installation procedure, works fine. (and i wont bother doing a full distro upgrade from f14)
This morning I updated my system as prompted by the update manager. Upon reboot, I got "grub:sh>". After doing some googling and a bit of trial and error, I managed to figure out that I can manually boot successfully by executing the following commands.
Code: grub:sh> linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro grub:sh> initrd /boot/initrd.img-2.6.31-14-generic
I installed Ubuntu 10.04 LTS to dual boot with Win Xp and everything went fine with the installation untill I went to boot back into Windows. My keyboard fails to respond in the boot loader so I am stuck with the default setting of booting back into Linux. To be clear, the keyboard works when the BIOS loads, I can hit DEL and go to the BIOS menu, etc, it's only when I hit the boot loader. The keyboard also works fine in Linux and Windows.
I currently have a Dell Dimension 4100 from 2000 upgraded with an Nvidia Geforce 6200 video card and 160 gig hard drive, I just upgraded to Ubuntu 10.10 from 10.04 and once I restart, I hear a beep come out from my computer speaker, and then displays the following text:
Code: GNU GRUB version 1.98+20100804-5ubuntu3 Minimal BASH-like line editing is supported. For the first word,TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.
grub> I'm not used to typing in command line, but if anybody has a way around it for me, I'll be pleased. It's Ubuntu or Windows goes back on... or bust.
I have 2 drives, the first has Slackware 13.0 and FreeBSD 7.2. The second has Windows 7. Lilo configured to boot all three, no issues. Perfect. The first drive has 100GB of free space after FreeBSD and today I decided to install Open Solaris on that free space. The install failed, as in Solaris displayed such a message. I did read the Solaris install docs, etc. And it did mention no to install unless it preceded any Linux Swap partitions. There are, I did, but that's not my issue now.
After rebooting, it amazingly loaded FreeBSD by default. No Slackware. So I booted the slackware DVD, ran fdisk and made Slackware the default boot partition, yada yada. Now when it rebooted it gave a little message down in the left hand corner of the screen like "RRG B" highlighted in a red box. Now pressing enter will cause Windows 7 to boot from the second disk. I mounted the slackware partition from the DVD and am there now. Will just running lilo again put everything back to normal? Apparently Solaris left behind a piece of that ill behaved GRUB! (No flames!!!) :-) How do I make it go away?
installed windows 7..then tried restoring grub using live cd....mounted partition somewhere else....then installed ubuntu again where it was installed previously and now grub is not detecting windows 7 but i am able use my windows files
I am a complete noob at this and I need a hand. I was about to throw my computer out of the window when I decided to throw the windows out of the computer so to speak. So, I downloaded Ubuntu 10.10 and tried to install. I had a grub rescue after the installation (file system unknown), which I have seen discussed here. Being the noob that I am I decided to try 10.04 because it said it had full support. With this install I get a similar error during installation: grub cannot be installed in boot sector.
So, basically there is an issue with grub and the boot sector. I checked in my BIOS options to see if there was an option that prevented the writing of a boot sector or something, but I have not been able something like that. So, I am wondering if it is possible that Ubuntu does not really erase/format the selected disks or something, leaving any difficulty there.
Does anybody know? Or better yet: what exactly do I need to do a manual grub install?
I have downloaded the Wheezy DVD 1 and started the istallation process. The installation time is strangely very short in respect to the Squeeze release, anyway
The GRUB installation step fails. I terminated the installation without a bootloader and rebooted from DVD with the rescue boot option.
Now I asked for a console to try to manually install the bootloader but the following command:
# grub-install /dev/sda1 [where sda1 is my root partition]
My set up is internal hard drive Windows 7, external Ubuntu Karmic. The reason I have it this way, despite Linux being my main OS, is because my internal hard drive is 6 years old and half the capacity of my external new one. Have tried quite a few set ups with various Linux platforms, but have finally settled on above. As yet, I don't know Linux or Ubuntu all that well. Getting somewhere, but it's a steep learning curve.
Because of constant errors reinstalling WinXP - umpteen installations and it keeps crashing - the problems are with security updates and SP3 - I finally bit the bullet and intalled Win 7. I only need Windows for a few essential programs or I'd happily never look at it again, so it filled me with horror doing this, but I couldn't take the crashes any more. So, today, Win 7 installs just nicely. However, I can no longer boot my external Ubuntu hard drive. The error is, 'Grub loading stage 1.5... Grub loading please wait... Error 15'. I load up the live cd, but when I try to follow instructions given to other people with Error 15 (editing files, accessing root) I don't have permissions.