Ubuntu Installation :: Grub Reinstall Went Wrong After Windows Wiped It Out

Jan 9, 2010

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)

View 3 Replies


ADVERTISEMENT

Fedora Installation :: Reinstall Of Vista Wiped Out GRUB

May 14, 2009

How to installs and I used gparted to create my install of fedora 10 on my laptop (which had xp on it). After a major XP crash I reinstalled with Vista business on the XP partition. Now my linux partition is definately there however I Vista boots now and the grub loader does not come up.

View 4 Replies View Related

Ubuntu :: Reinstall / Wiped Out GRUB?

Jun 19, 2010

I've just installed Windows 7 in a separate partition to play with. Trouble is, it's wiped out GRUB. I was expecting this and I know last time this happened it was easy to fix. The forum serch found a thread with 3 ways to re-install GRUB. I've tried each, and none have wored. Methods I've tried

1) The aptitude install grub-pc command ran and said it had worked correctly. On re-bootong, Windows started without any GRUB screens on the way.

2) The chroot method stated it installed correctly after raising a few warnings - after I used the --force command, as the install failed without it. Again, reboot and get Windows without a GRUB screen...

3) Normal grub-install command (no chroot). This went as per the chroot command.

From where I'm sat, it looks like I'll have to do a clean Linux re-install on the disk and then restore my linux files again from a back-up - something I'm not particularly over-joyed by the prospect of...

View 2 Replies View Related

Ubuntu Installation :: Windows 7 Overriden By Old Windows XP Entry - After Reinstall Grub

Oct 7, 2010

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?

View 6 Replies View Related

Ubuntu Installation :: After Windows 7 Install Cannot Reinstall Grub

Jun 11, 2011

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.

View 9 Replies View Related

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?

View 1 Replies View Related

Ubuntu Installation :: Windows Reinstall Deleted GRUB Bootloader (Natty)

Jul 11, 2011

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.

View 7 Replies View Related

Fedora Installation :: Reinstall Grub After A Windows Installation Deleted It?

Jul 23, 2011

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...

View 1 Replies View Related

Ubuntu Installation :: Reinstall Windows Without Messing Up Grub Or My Ubuntu Partition?

Jul 12, 2010

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?

View 5 Replies View Related

CentOS 5 :: Test Reinstall On VMWARE But The Installation Process Was Wrong?

Jul 22, 2010

I install CentOS5.5 on VMWARE,the system is working properly.I want to test reinstall CentOS5.5 on VMWARE,So,I make a snapshot.My system partition(Manually partition )is:/(1G),/boot(512M),swap(2G),/usr(30G),/var(10G),/data(20G).Each partition is independent of the ] partition.I reinstall CentOS5.5 by CentOS5.5.ISO.I format / partition,and other partition unchanged.However, the installation process was wrong:

==============================================================
Package Installation
Error running transaction[code]...

How I can reinstall CentOS(Do not lose important data)?Does there have any authoritative description?

View 4 Replies View Related

Ubuntu :: Reinstall Windows And Fix The Grub

Apr 18, 2011

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?

View 1 Replies View Related

Ubuntu :: Reinstall GRUB After A Windows Install ?

Jan 5, 2010

How do I reinstall GRUB after a Windows install? I tried using the LiveCD but when I pop in the CD and type

Code:

View 2 Replies View Related

Ubuntu :: Reinstall Grub After Windows Re-Install?

Nov 21, 2010

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.

View 1 Replies View Related

Ubuntu :: Reactivate Grub After Windows Reinstall

May 26, 2011

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.

View 4 Replies View Related

Ubuntu :: How To Reinstall Grub To Windows Partition

Jun 26, 2011

So, I'm stuck in GRUB rescue mode (stupid mistake) on a dual booted netbook (so no cd and no recovery software)

I do have a Live USB so I'm working off that.

Is there a way to reinstall the GRUB to my other partition (windows 7) or fix the MBR without recovery software?

View 9 Replies View Related

Ubuntu Installation :: Grub Reinstall Doesn't Generate Grub.cfg?

Dec 10, 2010

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

View 9 Replies View Related

Ubuntu :: Windows Corrupted GRUB - Unable To Reinstall

Dec 26, 2010

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:

[Code]......

View 9 Replies View Related

General :: Reinstall Grub After Windows Instln?

Nov 19, 2010

I had a dual boot system - windows in primary active /dev/sda1 and fedora in /dev/sda5 onwards till /dev/sda7 ( /boot, / and swap partitions).I reinstalled windows vista and it removed grub and replaced it with the MBR or windows loader.So now I can't boot into the linux OS. I tried out a live cd and tried grub-install --root-directory=/mnt/_boot /dev/sda (after mounting /boot partition at /mnt/_boot location from the live cd.)But on reboot I donot get the menu.lst options, only the black screen with a grub prompt.

View 3 Replies View Related

General :: Reinstall GRUB After Installing Windows Vista?

Sep 1, 2010

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 ?

View 1 Replies View Related

General :: Retrieve/reinstall Grub Without Having To Reinstall Ubuntu?

Feb 4, 2011

how do I retrieve/reinstall Grub without having to reinstall Ubuntu?

View 1 Replies View Related

Ubuntu Installation :: 10.10 And Win 7 - Cannot Reinstall Grub

Mar 29, 2011

I have Ubuntu 10.10 and Windows 7 on my computer. After not booting into my Ubuntu partition for a while, I noticed that grub had disappeared, being replaced by the windows bootloader. I followed the steps here under "reinstalling from liveCD" and I was able to get a grub command line when I rebooted, but no boot menu. So I booted into Ubuntu and ran update-grub like the instructions say, and the output indicated that Ubuntu and Windows had both been successfully found and added to grub.cfg. But when I rebooted, I still only got the grub command line.

When the instructions had steps for if you had a separate boot partition, I used /dev/sda1 because it is marked by fdisk as being the boot partition. I thought that maybe update-grub was only seeing /boot on the Ubuntu partition and wasn't touching the boot partition, so I tried mounting /dev/sda1 as /boot, but after that grub didn't boot at all, it just goes straight to Windows and I haven't been able to reinstall grub even after following the steps again several times. How can I get grub back?

View 3 Replies View Related

Ubuntu Installation :: Cannot Fix Grub After Win Reinstall

Aug 7, 2011

I've reinstalled win 7 (dualboot). Then booted with rescuecd and tried to fix grub.

Code:

$mount /dev/sda3 /tmp/b/boot
$grub-install --root-dir=/tmp/b /dev/sda

This gave ma a grub shell on boot. The prbm was that this was grub1 - v0.97

I ran a proper 2nd time

Code:

$mount /dev/sda3 /tmp/b/boot
$grub2-install --root-dir=/tmp/b /dev/sda

Now on boot I can spot grub loading and black screen with blinking cursos on top. ubuntu 10.10, separate /boot, uncrypted /root (which is probably the cause) Also I have deleted the 2 win partitions (sda1, sda2) and made a new one (sda1). The /boot is still sda3, can this be the cause?

View 2 Replies View Related

Debian Installation :: Wiped Windows Partition With Swap And LVM Partition

Jan 17, 2015

I am having issues with Grub 2 after installing Debian 7.8.0.The computer is a HP Pavilion 500-307nb. I made the original harddrive /dev/sdb and inserted a Samsung Evo 840 as /dev/sda. From the original hard drive (/dev/sdb), I wiped the windows partition, but left all other partitions unchanged (in case I would ever want to recover the desktop to its original state). I replaced the wiped windows partition with a swap partition and an LVM partition.These are my hard drive partitions:

/dev/sda (Samsung Evo 840)

Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB primary bios_grub
2 3146kB 944MB 941MB ext4 boot
3 944MB 94.4GB 93.4GB host lvm
4 94.4GB 1000GB 906GB guests lvm

[code]....

The partition /dev/sda3 has 2 logical volumes with filesystem ext4 that I mount to / and /home.The partition /dev/sda2 is mounted to /boot..When I install like this, Debian installs fine, however Grub2 is not installed correctly.Debian installs grub-pc which seems not able to boot the gpt partition. So I boot the Debian CD in rescue mode and execute:

mount /dev/sda2 /boot
aptitude purge grub-pc
aptitude -y install grub-efi

After rebooting, I come in the grub rescue shell, which says: error: no such device: 986f2176--4a4b-4222-83b9-8636a034b3c7.

When I then enter in the grub rescue shell:
set boot=(hd0,gpt2)
set prefix=(hd0,gpt2)/grub
insmod normal
normal

Grub and Debian start up correctly.why can Grub not start up automatically correctly? Where does the UUID 986f2176--4a4b-4222-83b9-8636a034b3c7 come from? I have reinstalled Grub several times, I have reinstall Debian several times, I have even wiped all partitions from /dev/sda and recreated a new gpt table with parted and manually set the partitions in parted. Still on each reinstallation, Grub fails because it cannot find exactly the same UUID. Since this UUID is always the same, it must be stored somewhere, but it cannot be the partitions, I have wiped them and the partition table several times.

I did though a firmware update of the Samsung Evo 840 before reinstallation, could this be a cause?Also the problem is not in grub.cfg. Grub starts correctly if I enter the commands above in the grub rescue screen and the UUID value does not appear there.

View 5 Replies View Related

Ubuntu Installation :: Reinstall Grub 2 From The Live CD?

Dec 4, 2010

In drs305's standout article HOWTO: Purge and Reinstall Grub 2 from the Live CD, in the section where it says:

Quote: From the Live CD:

* If the Ubuntu OS cannot be accessed through the normal boot process (see above), boot a compatible installation CD/Live CD. The Grub 2 files are by default installed in the partition's /boot/grub folder and will be placed in this folder if the commands are run as instructed. (emphasis mine)

I'm not certain what precisely means "compatible" here? Is it using the same desktop (K/X)Ubuntu what is installed on the hard drive? Or the same release number (such as, in my case 9.10) or both or just ---well, you get the idea I'm sure.

View 3 Replies View Related

Ubuntu Installation :: Reinstall Grub 2 Without Live CD?

Dec 11, 2010

I have Ubuntu 10.04 with file system EXT4 and dual booting with Vista The problem is I am about to reinstall Vista which will overwrite Grub 2 I know how to restore Grub2 with the Live CD I currently I only have a Live CD of Ubuntu 8.04 which doesnt support EXT4 neither Grub2 I am on a very limited INTERNET so I cant download the Live CD. A solution would be the minimal cd image but the download stall at 96%

View 3 Replies View Related

Ubuntu Installation :: Why GRUB Reinstall Using A Partition Instead Of MBR

Dec 28, 2010

I'm trying to re-install Grub2 on a dual boot (Win/XP & Ubuntu 10.10) system which will not boot. I am following the guide here:

Code: [URL] This guide explicitly states that the procedure will re-install GRUB to the Master Boot Record, overwritng whatever is there. However, the final step results in this warning message: "grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea....."

I guess I agree - that's not what I want to do. Where is the defect in the procedure and how do I overcome it? If I try alternative advice, available in the forums, by using the command

Code:
sudo grub-install /dev/sda
then I receive the error message

Code: grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?) Looking at the mount command output, I think the required device is mounted.

View 8 Replies View Related

Ubuntu Installation :: Grub Installed On Wrong HD ?

Aug 27, 2010

I have two HDs and recently reinstalled Ubuntu.

However, I think grub may have installed to my media drive and not my main HD.

Here is the output of fdisk -l:

Code:

dev/sda1 is my media drive and I think during setup grub-install may have been automatically run on /dev/sda1. If this is the case,

1) How can I remove grub from sda1 and install it on sdb?
2) Should it be on sdb1 or sdb2?
3) Can I change the naming so my main drive is sda and my media drive is sdb?

View 1 Replies View Related

Ubuntu Installation :: Can't Remove GRUB - Reinstall 9.10 From LIVE CD

Aug 17, 2010

I had Kubuntu 9.04 and Windows XP on a Dual Boot. I upgraded using the update manager to 9.10. (I know, I'm a fool.) The Kubuntu install stated freezing hard on startup, just after the GRUB OS selection screen, at a blinking cursor and otherwise blank screen. I'm pretty sure 9.10 will work great from a fresh install, but the live cd freezes after main Kubuntu boot screen and even Windows live cd only shows Windows partition. fixmb, fixboot, bootcfg etc. do NOT replace the grub as desired.

View 1 Replies View Related

Software :: Install Grub Onto Hard Drive After The Mbr Has Been Wiped?

Feb 26, 2011

i am multi booting with another operating system that doesn't boot on a pc and requires a special bootloader to make it work, but before i can install that bootloader which will overwrite grub on the mbr. how do i install grub on the hard drive so that the special bootloader will exist and will recognize grub and boot Ubuntu from the hard drive instead of the mbr can this be done with the ubuntu live cd. remember i am installing grub on the hard drive, not the mbr and it's grub2

View 7 Replies View Related

Ubuntu Installation :: GRUB Installed To Wrong Drive?

Jul 6, 2010

I have a system with two hard drives: an old one with XP and Ubuntu on it, and a new one on which I have done a fresh install of XP. The BIOS is set to boot off the new drive. I have now installed Ubuntu Studio 10.04(off an alternate install disc, not a live CD)onto a partition on the new drive. The installation went fine, but it appears to have written the GRUB bootloader to the old disc. The result is that when I boot up, the system boots straight into XP off the new drive, without ever seeing GRUB. I could reset the boot order in the BIOS each time I boot according to which OS I want, but that is cumbersome; also I would like to be able to remove the old drive at some point.

What is the easiest way for me to re-install GRUB to the new disc ?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved