Ubuntu Installation :: Reinstalling Grub After Windows?
Dec 13, 2010Every other guide I've seen is confusing the heck outta me.
I had ubuntu, and no other OS, then I installed win7, and now I want GRUB to be my MBR.
Every other guide I've seen is confusing the heck outta me.
I had ubuntu, and no other OS, then I installed win7, and now I want GRUB to be my MBR.
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:
Code:
sudo grub
> root (hd0,2)
> setup(hd0)
> quit
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).
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
[Code]....
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?
View 2 Replies View RelatedI'm using the Live CD and have followed steps to recover grub2 after XP install. (damn Windows)!
Upon rebooting I get the grub> prompt with no where to go. Upon installing grub via the Live CD I get this:
Quote:
Update:
When I do this link, upon doing the
Quote:
I get this:
Quote:
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 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.
View 6 Replies View RelatedI have a virtual Linux server and i deleted his boot partition by mistake. Now When i try to enter the machine I see
Code:
Select allfilesystem unknown
Grub rescue >
I was told i need to reinstall the server so I've downloaded the ISO files i need.
I've connected the ISO to the machine but i don't know what yo do next.
I've read online that i need to do ls and find where the ISO is so i can boot from it.
But i get error unknown filesystem for everything so i don't know what to do?
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?
View 9 Replies View RelatedI'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.
View 3 Replies View RelatedI 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?
View 9 Replies View RelatedI'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?
View 3 Replies View RelatedI 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 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?
View 2 Replies View RelatedI 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?
View 1 Replies View RelatedI 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 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
used sudo update-grub2.
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.
I deleted the wrong line in grub.conf, and now cannot boot into my Windows Vista anymore. I really need to get it back right away, I am trying to do my taxes, and they are on there, and I can't get to them. I added this to grub.conf, but no luck.
Vista
root (hd0,0)
chainloader +1
I have a distribution called Easy Peasy on my netbook, it's Ubuntu-based.Today when I started it up it told me 'grub corrupt'. On subsequent start-ups it displays 'unknown filesystem.' I'm given a prompt labelled 'grub-rescue>' but I can't get any commands to work I've tried booting off a Live CD of Easy Peasy. That works fine, but I can't get to my files. I've tried using a program called photorec and it can recover files from the drive but it dumps out gigs upon gigs of unlabelled files, many of which are things like system files or web browser cache -- I only have a few dozen text files I actually need, so this is pretty unworkable.
I'm trying to reinstall grub, which I understand to be part of the booting process, but I've had no luck; any set of instructions I've followed has inevitably run into some error or a step I don't understand.How can I get at my files in an easy to recognise way (such that I can navigate the original directories and get what I want)? OR
How can I easily reinstall grub such that I can just use the system like before without having to reinstall everything and lose my files?I think my drive is sda or sda0. In grub's device.map it's called hd0.
I am using CentOS 5.2 with GRUB booting a software RAID configuration. The first disk is md0 and is mirrored across sda1 and sdb1.I manually re-installed grub using grub-install and the machine will no longer boot off of the HD. The grub menu comes up, I can select my kernel the machine then jumps to loading the initrd and hangs.It will go no further. I have a live DVD that can boot from the HD. If I use that to first boot from the DVD, then specifiy the HD, it shows the same grub menu and then the machine boots fine w/o the initrd hang.I have tried re-installing grub but not been able to get the machine to work again w/o the DVD.
View 3 Replies View RelatedI do not know what to do, i cannot load windows partition. it just loads grub again. this must have been something that happened when i upgraded to the 10.04 or w/e. can someoen help me out with what i can do to stop this or fix it. maybe i can reinstall but i want to know what will work first, i do not have a lot of time to fool with my computer like this again. i spent a week getting ubuntu on my computer the first time so i do not ever want to spend that much time again especially in finals week. !
View 1 Replies View RelatedI have to reinstall windows on to my disk to run certain programs and I know I really have to uninstall ubuntu. Is there a way I can backup my whole ubuntu o/s or will it be easier for me to download a whole new disk from Net.
View 2 Replies View RelatedCurrently running Ubuntu 10.10 off of hard drive. I want to install a second hard drive and install Vista onto that drive from backup discs. I know how to install the drives: what I need to know is what order (if any) to install second drive (master or slave) and then, after installing Vista on the new drive, to get GRUB to recognize it.
View 2 Replies View RelatedI am trying to recover Grub2 after reinstalling Windows 7 on my computer (which always takes over everything). I downloaded the Ubuntu 10.10 image from here and have mounted the image using the given instructions.
After restarting my computer, changing the boot order, etc., the computer reboots and hangs at "Verifying DMI Pool Data............" I have done everything correctly, so what exactly is causing this problem? Should I restore Grub2 in some different way, then?
i am having ubuntu 8.04. i have installed windows 7 but i am not able to boot into ubuntu 8.04. i have new version of ubuntu 9.10 in CD. does reinstalling the new ubuntu will overwrite my all previous data which i had in older version of ubuntu?
View 4 Replies View RelatedI 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?
I had 9.10 installed and I did an upgrade to 10.04. However I cannot see anymore my Windows Vista partition with grub.. I have a Toshiba laptop Satellite p305.This is my boot script output:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in [code].......