Fedora :: Restoring Grub After Reinstalling Windows?
Aug 4, 2010
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.
View 14 Replies
ADVERTISEMENT
Apr 12, 2011
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 Related
Apr 18, 2010
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).
View 9 Replies
View Related
Dec 13, 2010
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.
View 1 Replies
View Related
Jul 5, 2009
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:
Code: grub> root (hd0,5)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
[code]...
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.
View 5 Replies
View Related
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
[Code]....
View 9 Replies
View Related
Feb 21, 2010
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.)
View 4 Replies
View Related
May 21, 2010
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
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
omitting empty partition (5)
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code]...
View 9 Replies
View Related
Mar 27, 2010
I'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:
View 1 Replies
View Related
Apr 14, 2011
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
View 2 Replies
View Related
Jan 23, 2010
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.
View 1 Replies
View Related
Jan 11, 2010
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 Related
Apr 23, 2010
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 Related
Mar 19, 2011
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?
View 1 Replies
View Related
Feb 19, 2015
I 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?
View 1 Replies
View Related
Feb 21, 2011
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.
View 1 Replies
View Related
Nov 5, 2009
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?
View 2 Replies
View Related
Jan 8, 2011
To fix a Windows problem with hibernation, I had to let it overwrite my MBR. I can still boot into openSUSE 11.3 thanks to a wonderful piece of freeware called Plop Boot Manager, but the GRUB menu is no longer in my MBR (obviously).How can I force a rewrite of GRUB to the MBR from YaST?
View 9 Replies
View Related
Apr 4, 2011
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.
View 3 Replies
View Related
May 7, 2009
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 Related
Jul 27, 2010
I am running OpenSUSE 11.3 GNOME, and I recently reinstalled Windows, and it overwrote GRUB. I only have an Ubuntu LiveCD (I installed with the OpenSUSE DVD), how do I get GRUB back? Note that the Ubuntu LiveCD doesn't recognize the LVM Encrypted partition, so I can't mount it.
View 2 Replies
View Related
Mar 31, 2010
I've been running a dual boot set-up with Win XP and Ubuntu 9.10. The old 40 gb drive was showing signs of impending failure, so I replaced it with a new 120 gb drive, after saving an image of the old setup. After restoring the image from the original drive to the new one, Windows boots fine from the GRUB menu, but Ubuntu doesn't. I briefly see the Ubuntu "circle" then the screen goes blank. If I hit any key, I get a console screen of error messages (I can provide details if needed).
I think the problem is caused by the fact that the restore process scaled the saved image to fit the new, larger drive, with the result that the Ubuntu partition doesn't actually start where GRUB expects to find it. I'd like to recover the Ubuntu installation, but if is too big a deal, I'll just wait until 10.4 is released and do a clean install.
View 9 Replies
View Related
Mar 11, 2011
I have recently installed Debian alongside Vista on the same boot menu using the GRUB booting device. Only problem is, I couldn't boot Vista at all any more, so I removed my Debian installation from that drive. But the GRUB boot record persists, I don't have the Recovery disk to restore my old system, so I have to find a way to manually remove the GRUB track and put the old record in its place. I assume there was a copy made of it by the installation program, now my only problem is to find that file and copy the content back in place (at the address at the very beginning of the drive) all that by using Linux code, since that is all I have left. Being new to this game, I have no idea how to begin writing the right command for a job like this
View 3 Replies
View Related
Apr 8, 2010
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.
View 9 Replies
View Related
Feb 11, 2010
I 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 Related
Apr 19, 2011
Currently 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 Related
Feb 28, 2011
I 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?
View 2 Replies
View Related
Jun 4, 2011
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 Related
Mar 4, 2010
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 Related
Jul 23, 2010
I hope this is the right sub-forum for a question like this. It seemed like the best match from what I could find, but my issue stems from installing Windows 7 after I already had Ubuntu installed. I don't know what details are important, so I'll be as thorough as I can. I was running Ubuntu 9.10 on a machine with two SATA hard drives. I was only using one since Ubuntu kept complaining that the second drive was having some issues. The drive with Ubuntu had only two partitions, one tiny one for the swap and the rest of the hard drive was the second partition.
I needed to install Windows for my work, and since I was not very familiar with the whole partition thing (which is the reason why the hard drive was basically one huge partition) I decided to follow this guide: [URL]... I backed up my important data, I used a live CD to create a new partition for windows, I backed up my MBR using the command given, and installed Windows 7. Everything went pretty smoothly. Now, whenever I boot up I don't get a choice of what OS to boot, it just goes straight to Windows, as expected.
I used the same live CD to restore the MBR using the command given on the guide, but I get this error:
dd: opening `/media/sda/mbr.bin': No such file or directory
[Code]...
View 4 Replies
View Related