Ubuntu :: Where And How To Install GRUB On System To Fix DualBoot
May 17, 2011
I was running Ubuntu 11.04 next to Windows 7 but lost my DualBoot after re-installing my Windows 7 using a backup image. The Ubuntu Partition (/dev/sdb5) is unchanged. Windows 7 comes with a default Bootmanager Partition (dev/sdb1) in size of 105MB. Here my system (2 Harddisks)
my dualboot grub is not working properly. I have it set to start opensuse/W7, but when I start windows, I get an error message that the bootmgr is not working, and that I should press ctrl/alt/del/ to reboot.
I tried to update one of my home machines with a fresh install. This is far from new to me so I did not expect any problem. But I was proven wrong. First: did install the system as usual. First anomaly: system blocked during the install process but did restart it flawlessly one I tried to eject the DVD from the player. It needed actually that intervention to retake working. It then went to install and froze during the first system start. I rebooted with failsafe settings, it then correctly configured. I reached a beautiful desktop. I performed the updates from the update repository and I joined the nvidia proprietary driver repository (which updated to the G02 driver).
I then rebooted the machine and now I am in trouble. In normal mode the system (dual boot Opensuse, XP) does not boot at all and freezes immediately after hitting enter as before. In safe mode it goes further but does not reach X anymore. It blocks with the following line statement: "system console stolen at line 266". I then tried "startx". But the system goes into a scrolling loop that does not allow me to read the output. how to get at least the error message of the loop? I read some line passing by that the system might have an X11 authorization problem.
Athlon Phenom X4 905e Nividea G7600 graphic card Former system installed and running flawlessly: 11.1
I've setup a dualboot-system. SUSE 11.2 starts automatically and works well all the time.
But when I want to use XP (yeah, sometimes I do that...), in about 40% of all cases it won't be loaded when chosen in GRUB. Just a black screen without anything else.Then I need to restart and in the 2nd trial it works!
I just tried a dual installation. Win7 sits on my internal HDD, Ubuntu has a partition on my external HDD. The external Hdd is set up to have ~900GB of NTFS file storage and ~100GB for / (ext4) and a seperate swap partition. I partitioned it that way from the livecd installer. I have to say that I'm basically fresh out of ideas. I can boot Ubuntu 9.10 64bit just fine from a Usb stick. Installation also worked fine, I had the installer install Grub on the external Hdd. I am quite sure that it actually *is* on the external hdd, since unplugging it as well as changing the boot order to internal hdd first results in a straight boot to Win7.
Anyways, booting from the external device, I get as far as the grub OS selection prompt. Windows 7s loader can be started without any problem from here. However, choosing Ubuntu (recovery or not) results in... nothing. The system plain simply freezes up (I gave it some time) and can only be reactivated by resetting it. So far, I tried manually editing the boot entry by pressing "e". I changed the root entry from 2,2 to 2,0 to 2,1 to 2,3 and 2,5. Afterwards I tried booting by pressing ctrl+x. The result always stays the same. No boot, frozen system. Pc: C2D E6750, Gf8800GT,4GB Ram. Pastebin of grub.cfg: [URL]
I have a dualboot system with Ubuntu and Windows 7 (grub bootloader). I updated the firmware in my HD, and now grub doesn't work. After POST, instead of getting the menu of OS options, I get "Non-system disk: press any key."After pressing a key, I get the Windows 7 loader, with only a Windows 7 OS option. Windows 7 boots fine, but I have no way to boot into Ubuntu.
I tried looking trough the forums for an answer but I couldn't find it.
I want to try and dual boot Linux with my Mac but I'm not exactly sure how . This was my brothers computer then he gave it to me but he said that I MUST leave OSX installed. And uh.... He was dual-booting Vienna on it but I don't like Vienna so I want to get rid of that and put Ubuntu on.
I started another thread about this to get help booting into openSUSE after Fedora rewrote my bootloader and deleted all other entries. I managed to fix it but I never did find out why the following commands caused my system to boot to the grub shell instead of the grub menu.
Code: grub root (hd0,3) setup (hd0) quit reboot
Can anyone explain to me why these commands caused my system to boot directly to a grub shell? It's as if there were no /boot/grub/menu.lst files for it to use, but after I got everything back to normal, the files were still there.
If it helps, this is how the drive was setup before and now, except Fedora was on /dev/sda4 and has since been deleted.
Code: Device Boot Start End Blocks Id System /dev/sda1 1 262 2104483+ 82 Linux swap / Solaris /dev/sda2 263 13316 104856255 83 Linux /dev/sda3 * 13317 14621 10482412+ 83 Linux
I have a computer with Windows XP and Xubuntu 10.10 on it. And I would also like to install Ubuntu Server on it, with all OS side by side (Win XP + Xubuntu + Ubuntu Server). Can I do this. Or is the dualboot technologie limited to 2 OS? So I actually want a "triple boot".
I plan to install a debian in dualboot with ubuntu (that I'm currently using). I would like to use the btrfs file system.
I know that for a single OS installed, I need to have a /boot partition (I don't think grub is able to load a btrfs partition). In my case the grub (v1.98) would stay on the ubuntu partition, not the debian one. So do I still need to have a different partition for /boot and the system ?
I want to dualboot my HP laptop with Windows 7 and Ubuntu. The problem is that the harddrive had 4 primary partitions. So i had to delete the Recovery and HP TOOLS partions. I did that after creating my system recovry CDS. The "install alongside another operating system" option showed up. And i was really happy for about 1 minute until i discovered that it said Windows Vista loader! So now i have this:
sda 640GB harddrive sda1 Windows 7 loader sda2 Windows Vista loader
And when im trying to install a dualboot the Windows 7 loader dosent show up! It wants to install Vista loader but i dont have that operating system. I have read that 7 and Vista sometimes gets mixed up in GRUB can this be the case here? Is it safe for me to install Vista loader with Ubuntu 10.10?
I have a Dell XPS 420 with Ubuntu 10.10 (2.6.35-23-generic x86_64). My internet used to work (out of the box) without any problems, but after install of Windows Vista (Home Ed. 32bit), I am unable to use the internet in Ubuntu. The network card is a Linksys WMP600N Wireless-N PCI Adapter. In Windows it works without problems.
In ubuntu, the network manager indicates that I am connected to the network, and I have an IP address in the 192.168.* range. I am able to ping the router, but unable to ping outside addresses. I have not changed anything, but still my wireless connections has stopped working.
I did a fresh install of SuSE 11.4 (WIN7 TOO) and changed my Larger HD1 to the first HD. I was installing and got this error first: the boot loader is installed on a partition that does not lie entirely below 128GB The system might not boot if BIOS supports only lba24 (result is error during install grub mbr) status loc dev/sdb6
I continued with the install and then got:
Yast2 error occured while installing GRUB ver 0.97 (640k lower/3072k upper memory) [minimal bash-like lineediting is supported? for the first word, TAB lists possible command completition anywhere else TAB lists possible completion of a device/filename] grub setup --stage2=/boot/grub/stage2 --force4-lba (hd0,5) (hd0,5) Error 25 disk read error grub> quit
I just installed 10.04 to the second hard drive on my system, and stupidly installed the new grub to the first drive, which has my standard 9.10 OS on it. Now I cannot boot into my original system. All of the files across both disks are still intact and mountable. I'm not new to linux in general, but I'm not exactly knowledgeable, either...
I just installed the newest version of Xubuntu using the LiveCD, I chose to install it alongside my current installation of Windows 7, everything went well it seemed, but now when I choose Windows 7 under the GRUB menu it just restarts my system and then takes me back to the grub menu, Xubuntu works fine though and boots fine, I tried sudo update-grub, didn't fix it.Heres the boot info from a script I found, but being rather poor when it comes to diagnosing Linux, I figured it'd be best to post this and see
Code: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ==============================
I installed Fedora 13 on a separate partition and it deleted all of my openSUSE entries in grub. Or the boot menu, whichever is correct. From another thread, I found these commands and tried it:
grub root (hd0,3) setup (hd0) quit reboot
hd0,3 contained one of my openSUSE installs. Everything went well and grub accepted all of these commands except quit. So I used esc and rebooted. The reboot brought up the grub shell again. I could find no way to boot anything. Then I used the 'repair installation' option from the 11.2 dvd and installed a new boot loader for /dev/sda2 which contains 11.2.
This was successful, so I went to the YaST bootloader tool and added /dev/sda3 (Milestone 5) and /dev/sda4 (Fedora) and rebooted. But these two partitions still boot into grub instead of loading the correct kernel.
I am currently rebuilding a couple laptops and a desktop to dual boot Windows and Suse 11.2. Windows is installed on partition 1. On the laptops, the build goes fine and dual boot with grub is OK. No issues. But on the desktop, the exact same build (after all the on-line updates, etc) fails with "Operating system not found" on the final (and first) boot. It seems that the Suse 11.2 build is somehow resetting the active partition and the boot does not see grub or Windows. When I reset partition #1 back to "active, only Windows loads. So I guess I need to fix this by reinstalling grub. Or use the Windows boot loader.
(1) Where is grub located on my system?
(2) What partiton is the Linux master Boot record If I wanted to use the Windows boot loader and do the following command to grab the 512 bytes I need:
dd if=/dev/sna? of=grub.bin bs=512 count=1
My partition layout is below. This is output from gdisk.exe in DOS7. It's an 80gig drive.
I have a single boot system that was working great until this morning when it locked up. I was working as I always do when the system stopped responding completely. CTRL+F1 did not work to allow me into the back so I could log in and see what was happening.
CTRL+SHIFT+SysRq did not recover the system or interrupt what ever was causing the lock up.
SSH from another system failed as the client did not respond
So I had to do a hard boot and when I did I got this:
GRUB Loading stage1.5.
GRUB loading, please wait... Error 17
Again this is a single boot system no Windows other than in VMWare inside the install. It is a multi drive with RAID set up workstation that I have at work. The short of it I am sole IT support as our companies ITS will not support Linux. In 5 years of operations with Linux at work this is my first issue, and I can't figure it out. I already tried the PartedMagic solution (ref = Re-Install Grub Quickly with Parted Magic) and that didn't work.
I re-installed the system completely even going to the extent to change my partition scheme just to make sure that wasn't the problem (which doesn't make sense as the system had been running for 46 days non-stop without a problem). Upon reboot after performing a complete security update I got the Error 17 message again.
Most of the filesystem tools and partition programs featured by Parted Magic include man pages. To read a manual page, simply type man and the name of the tool. (Examples: 'man ntfsprogs' or 'man fdisk')
I would like to recover my grub installation in a dual boot system. if there is an easy way to recover grub using flash disk? If yes is your suggestion opensuse developed? (currently running 11.3) . It would be nice also to have some gui just to make things easier. If not I assume that then the only option is the boot from dvd. Is that right?
I installed CentOS 5.5 last night using the DVD ISO (from a USB drive thanks to the Universal USB Installer). I selected the Server and Virtualization packages, and finished the install all the way through. At the end, the installer asked me to remove any installation media and reboot the system. After rebooting, the system hangs on a blank screen with a blinking cursor in the top left corner that does not accept text. This is before the GRUB screen appears. For partitioning, I created a 4GB swap partition on sdb and a 16GB ext3 partition on sda, mounted at /, with the remaining free space on sdb mounted at /storage.
Does anyone know why this system is hanging before the GRUB menu?
I noticed that after making my build in suse studio my system freezes immediately after GRUB ( Normal or Failsafe) boot splash screen. I also noticed that this happens only with the specified kernel below. I'm not sure when using Kernel 2.6.37, one had the same problem. I never used it. The original kernel 2.6.34 had no problems such as the one I have described. My systems has no further problems only that it takes several restarts to go past the "Freeze". Below is a list of my system specs:
openSUSE 11.3 Kernel-pae 22.214.171.124-4.1 from Kernel Stable. GRUB 0.97-174.1 from openSUSE 11.4 Upstart 0.6.5-33.1 xorg-x11-server 7.6_1.9.3-142.1 from X11:xorg 11.3 repo.
The GRUB from openSUSE 11.4 has been very stable and non-problematic. I will be buying an Intel core i5-2500K in a few months that's why I need the latest kernel and XOrg-X11-server. What could be causing the freezing?
I'm running Karmic Server with GRUB2 on a Dell XPS 420. Everything was running fine until I changed 2 BIOS settings in an attempt to make my Virtual Box guests run faster. I turned on SpeedStep and Virtualization, rebooted, and I was slapped in the face with a grub error 15. I can't, in my wildest dreams, imagine how these two settings could cause a problem for GRUB, but they have. To make matters worse, I've set my server up to use Luks encrypted LVMs on soft-RAID. From what I can gather, it seems my only hope is to reinstall GRUB. So, I've tried to follow the Live CD instructions outlined in the following article (adding the necessary steps to mount my RAID volumes and LVMs). [URL]
If I try mounting the root lvm as 'dev/vg-root' on /mnt and the boot partition as 'dev/md0' on /mnt/boot, when I try to run the command $sudo grub-install --root-directory=/mnt/ /dev/md0, I get an errors: grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea. grub-setup: error: Embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.
Somewhere in my troubleshooting, I also tried mounting the root lvm as 'dev/mapper/vg-root'. This results in the grub-install error: $sudo grub-install --root-directory=/mnt/ /dev/md0 Invalid device 'dev/md0'
Obviously, neither case fixes the problem. I've been searching and troubleshooting for several hours this evening, and I must have my system operational by Monday morning. That means if I don't have a solution by pretty early tomorrow morning...I'm screwed. A full rebuild will by my only option.
It started when I wanted to dual boot Windows 7 and Opensuse off of my netbook (No DVD/CD drive) I tried install suse from an external hard drive and I botched it. I ended up erasing EVERYTHING off of my internal netbook hard drive. Windows and all.
Well, I had a couple of other computers so I studied up and eventually successfully installed OpenSUSE 11.2 on my external hard drive (11.3 being the one that I accidentally erased everything with, so kinda scared of it) and now I want to install openSUSE 11.2 on my internal netbook hard drive.
I can not use disks
I can not use a flash drive (For some reason, even if I make it bootable, it will not load up, this could be because it's actually a 8GB microSD card that is placed in a USB card reader.)
I can not use an external hard drive because that's what I'm running suse off of.
I've tried reading up on how to install suse on another drive off of the hard drive and I've gotten as far as whenever I boot up the netbook with the suse external hard drive connected it will ask to boot into OpenSUSE, the Fail Safe, or to install OpenSuse. When I select to install it it gives me the Error 18 Unknown File system.
I've tried formatting the internal hard drive twice. One as NTFS and again as EXT4. Neither seems to effect it other than when it's ext4 I can open it and it contains a Lost and Found folder.
When I interrupt the boot sequence by pressing c and going to the terminal and I use the root (hd +TAB command it tells me I have a hd0 and a hd1. The hd1 only has 1 partition which is ext4, which I'm assuming hd1 is the internal hard drive (I'm not sure how to check) and the hd0 is the external hard drive, which has three partitions. One with an unknown file system and two with ext4. When I try to enter the set up from the terminal it gives me the same error for any thing I put it (e.g. root (hd0,0) gives the same error as root (hd0,1), or root (hd0,2) and root (hd1,0)
Something like it cannot locate these two files I'm assuming it needs to boot. If anyone finds this relevant I'll retry it and post the files its missing.
I've been searching for awhile and can't find any threads that can solve my problem. From other threads, however, I have noticed that I should probably include my menu.lst, listed below
I have also ran the boot info script and received the RESULTS.txt file it generates. Listed below
My Server runs "fine", then I type init 6 for rebooting or some cron job initiates Init 6 and my system stops in grub at: GRUB loading stage1.5. Error 18 After another Ctrl+Alt+Del the system boots as if anything happened. this is why I doubt that it's an issue of too big HDD or BIOS.
I am trying to restore my system to Ubuntu 10.10, using a system backup made with REMASTERSYS. When I reboot, I get the message: GRUB error:15 I found many threads discussing this issue, most notably here: [URL]
Is it possible to install GRUB in the MBR of the only bootable disk in the system, but load configuration and images from another disk?Basically I want to install GRUB on /dev/sda, but menu and images will be under /dev/sdb2.Note: /dev/sdb is not bootable.