The following outlines how to install and use Grub2 in Fedora. It will be an ongoing How-To as more of the tools involved are added upstream
Small History... I came over from Canonical/Ubuntu and was surprised to see that Grub2 was not that widely used or even developed..
I found this blog posting from Hedayat Vatankhah at his blogsite and this is what I did to replace the Ubuntu Grub2 with Fedora grub2 with the os-prober that Hedayat ported to Fedora and installing grub2
I installed Fedora 15, which was my first real departure from Debian based Linux OSs. I absolutely love the new Gnome 3, and was able to configure F15 to work as I wanted it to. On rebooting I realized that there was no boot loader screen, that F15 just booted and didn't give me a choice as to which OS I wanted to use. Eventually I was able to configure grub to let me see the boot loader and added my old boot loader as a choice. This worked well, maybe not a perfect solution, but it worked. This weekend I installed LMDE (Linux Mint Debian Edition) to another HDD. LMDE uses grub2 and after the install F15 was not recognized.
Two questions: Is there a way for grub2 to see F15? or Can F15 be installed using grub2? I really don't mind re-installing from scratch.
I posted recently about some problems with grub2(http://forums.fedoraforum.org/showthread.php?t=254100) I ran grub-install, it installed fine and when I rebooted it worked, only I was presented with a command line with the message that "Minimal command-line editing is still supported etc". I'm dual-booting with Windows and F13 and I couldn't boot into either of them so I had to reinstall F13 and replace grub. How do I install grub2 while still being able to boot into Windows or F13?
I want to load grub2 from grub4dos.I want to load directly the grub2 core. I know how to load first 512 bytes from some patition by chainloader and load grub2, but what I need is to load directly grub2 core without passing by bootstriping code (first 512 bytes).So, my first boot manager is grub4dos, then I can load grub2 and later I load Ubuntu. But I think I have to edit --set-root What I dont know is how.
In hdd 0,7 (sda8) I have Ubuntu 10.10 and /boot/grub/core.img is in sda8 (hd0.7)
I tried this way:
Code: title grub2 find --set-root /boot/grub/core.img kernel /boot/grub/core.img
I have been running ONLY linux (ubuntu) on my computer for years now. However, a friend sucked me back into the world of MMO's (angry fist @ RIFT). So, I decided to pick up a new disc, slap windows 7 on it and now want to dual boot.Basically I had to do some disc juggling to get windows to play nice. So my windows drive is now first, then my Ubuntu drive second.Its been a while so I'm wondering how involved / what would be the steps to get grub2 to chainload into windows7 (in my head I want to say I'm going to boot into the live cd, mount the windows disc and reinstall the loader to the windows drive since its the first disc in the chain?)
i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again. i cant boot to windows 7.
Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.
sudo 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: 0x3c3a81f5
I went through so many post but I haven't found the proper answer yet hope you have an Idea1. Grub2 saves only Linux OS as last selected no Windows OS2.It is possible to boot into a cdrom (drive)?
I finally took the plunge and let my debian squeeze install update from grub 1 to grub2. I am not sure if it is working correctly. When it first rebooted I saw it chain load from the grub 1. It went to another screen that said grub 2 and it hung there for awhile and then displayed "fd0 not found" or something like that. Then it jumped to the new grub2 menu screen and booted the os. I went ahead and ran the command "upgrade-from-grub-legacy" and choose all harddrives.
It displayed this:
GRUB Legacy has been removed, but its configuration files have been preserved, since this script cannot determine if they contain valuable information. If you would like to remove the configuration files as well, use the following command:
I have been using linux for a few years but I am merely an end-user and many things are still beyond me. I have a machine booting XP and Ubuntu 9.10 with grub2. I would like to try Debian as an installed os, and I have used the netinstall and put Debian on sda6.
During the installation I was asked where to put grub...as I did not want to mess up the mbr which has grub 2 I choose to install Debian's grub to itself on /dev/sda6 ...maybe because of the usb-netinstall menu.lst eneded up with (hd 1,5) I changed to 0,5.
Anyway the problem is...after running update-grub from Ubuntu's grub2, Debian shows up, but will not boot. It seems to go most of the way through loading the kernel then Hangs at, "Begin: waiting for root files..."
I want to install FreeBSD (PC-BSD) alongside Ubuntu 10.04 and Windows 7. I do not have a CD or a DVD or a USB key to burn the .iso, so I was thinking instead of using Grub2 to launch it.
I created an empty partition where FreeBSD will be installed (see screnshot below).
Now, where should I locate the .iso file? On my root partition? On my home partition? On the new partition (ZFS formatted)? Does it matter?
How should I set up my Grub2? I was thinking of adding this to /etc/grub.d/40_custom (if the partition where the .iso is located is /Home):
Right I had to uninstall windows xp and install windows 7 to play more games! I use windows to play games and that is it. I have restored grub before and I even double checked with this guide: [URL]
I have two hard drives sda - 320gb with windows sdb - 100gb /home -12 gb / -480gb (NTFS) shared
However after reinstalling grub it still boots into windows! I will boot into windows properly then shut it down cos its coming up with windows was not shut down properly and if that doesn't work it has then been shutdown properly and I will install grub again.
I would like to make an Ubuntu 10.10 Bootable USB Stick, but before starting that I would like to know the following details please
1. Do I have to install Grub2 in the USB Stick also for Ubuntu 10.10? 2. Install I first Grub2 in the USB Stick, before installing Ubuntu 10.10 or viceversa? 3. How big shout it be the volume of the USB Key to install there both, Ubuntu 10.10 and Grub2?
I tried to install grub2 in partition, not in MBR.I have installed grub4dos in MBR, and I prefer to install grub2 in sda6.sda6 is ext3 formated and has Debian squeeze installed on it.
I have created a system using four 2Tb hdd. Three are members of a soft-raid mirrored (RAID1) with a hot spare and the fourth hdd is a lvm hard drive separate from the RAID setup. All hdd are gpt partitioned.
The RAID is setup as /dev/md0 for mirrored /boot partations (non-lvm) and the /dev/md1 is lvm with various logical volumes within for swap space, root, home, etc.
When grub installs, it says it installed to /dev/sda but it will not reboot and complains that "No boot loader . . ."
I have used the supergrubdisk image to get the machine started and it finds the kernel but "grub-install /dev/sda" reports success and yet, computer will not start with "No boot loader . . ." (Currently, because it is running, I cannot restart to get the complete complaint phrase as md1 is syncing. Thought I'd let it finish the sync operation while I search for answers.)
I have installed and re-installed several times trying various settings. My question has become, when setting up gpt and reserving the first gigabyte for grub, users cannot set the boot flag for the partition. As I have tried gparted and well as the normal Debian partitioner, both will NOT let you set the "boot flag" to that partition. So, as a novice (to Debian) I am assuming that "boot flag" does not matter.
Other readings indicate that yes, you do not need a "boot flag" partition. "Boot flag" is only for a Windows partition. This is a Debian only server, no windows OS.
I have been running Ubuntu 10.04 for a while now without any issues. I have also been dual booting with grub2 for a while now, only issues being crappy customization. But anyways I had my grub2 splash all set up the way i liked, with a nice background and everything. I run every update Ubuntu wants and have never had an issue until recently.
On June 3rd I ran an update that Ubuntu requested, it installed a new kernel (-2.6.32-22) and requested a restart, as usual. after restarting, my grub splash is gone. I thought no biggie ill just run `update-grub` as i have before and it will fix everything...nope I get the error message `head: cannot open `/boot/grub/video.lst' for reading: No such file or directory` right where the "image found" message is supposed to be.
recently i had a crush on my computer caused by a power surge, had to reinstall the os since i couldnt boot.
the installation went clean and everything is working very well since but i am having a strange issue with grub - its missing ?
when i boot the computer start with default kernel and no grub menu is visual for me to choose from.
i tried to purge and reinstall grub2 grub-common and grub-pc packages, tried various things found on the grub2 faq pages including booting from livecd and reinstalling.
it appears as grub is installed correctly but its not running at boot ? dunno ?
i'm using ubuntu 10.04.1 LTS x64 on intel E2180 with 2gb ram.
i really dont know what else to try or what can be the cause for this ?
ps: here is fdisk -l Disk /dev/sda: 123.5 GB, 123522416640 bytes 255 heads, 63 sectors/track, 15017 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes
I've been having issues with mythbuntu since the last few upgrades, so I decided to go for a fresh install. Since I had a free partition (from a deleted Windows install that I moved to a dedicated box), I decided to leave the old root partition as a backup and reinstall to the new partition.If it works, I may use dd in the future to clone the partition as an easy backup solution before upgrades.
The install went fine but now GRUB2 detects both the old (now non-functional) install, as well as the new functional install.More annoyingly than that, it shows the defunct install first in the list, with the correct install at the end. Even odder, the correct install is auto-named with the partition name (sda5) of the old install, even though it's the one booting to the new partition (sda3).How can I get Grub2 to ignore the old install (or to be precise, NOT auto-detect other OS)? Or at least show the functional install first.
I just installed lubuntu 10.10 onto my desktop and while on my first bootup I had the option to boot windows through grub, it's disappeared from the boot menu since then.When I installed I created a partition for lubuntu and installed onto that. I can still access and see my windows partition.
As I now have a 120Gb SSD in an efi-capable laptop, I'd like to re-install 11.04. I'd like to format the SSD as gpt and make it bootable with efi. And I'd like to use grub2 as the bootloader.
Can anybody walk me through this? I'm pretty new to Ubuntu, though I've used several other distros for a number of years. When I last installed 11.04, I don't remember seeing options for gpt, for example. And I don't know how get things booting with efi.
I have been asked to install Ubuntu 10.04 onto a friends machine but appear to be having some very basic problems. I think it may be related to the Grub 2. I do not consider myself a newbie but I am very inexperienced with Grub 2. I know a lot of the tricks of Grub Legacy, but this is driving me daft. It should be simple; a new hard drive, 500GB SATA, has been put into the computer, there are no other hard disks installed and the drive went in as empty.
Ubuntu booted fine into live CD mode without any issues, all of the hardware appeared to be working properly. I then installed it onto the machine, taking up the entire disk as per my friends request. When the installation finished everything seemed as normal, but upon startup I am greeted with a grub rescue prompt. Upon a bit of internet research I discovered that it may be simply that the 500GB is simply too big and that a seperate partition should be made for /boot.
This was done however now I do not even get to the grub rescue prompt after checking the DVD drive for bootable media the computer simply sits at a blinking cursor. I have made sure that grub 2 was installed and setup to look for the /boot partition but these all check out and I am still stuck with the same problem. I am considering simply installing 8.04 LTS and then updating and that should solve my issue of Grub 2, but I know that is avoiding the problem and I will need to learn about Grub 2 at some point.
I just did a new install of Ubuntu 10.04 (64 bit) on a system with multiple older versions of Ubuntu already installed. There was a dpkg error during the install with no useful information provided, otherwise the install completed normally. When I rebooted, the old grub2 ran and presented my old boot menu. When I mounted the 10.04 partition to see what was there, I found that /boot/grub/ was empty and /boot/initrd.img was missing. The other boot files were present.
I have been searching in preparation to install 10.04.1 with 2 installations of Windows,already installed.(Win 7 then Vista) I have left room at the end of the drive for Ubuntu. When I get to the stage to select the boot options and click on advanced, what should I select?
For reasons long and unique, I want to disable UUID in my recent Ubuntu 10.4 install, and use the old fashioned /dev/sda1 /dev/sdb3 etc. method. I had this "all fixed" under GRUB (pre-2) on Ubuntu 8.04 and it has served well and bug free for years. (Warning: I use old stable hardware - others may have disasters.) But with GRUB2, the task seems more complicated. (This guide me make the backups I haven't done since the fresh install 2 weeks ago.)
Is the following process complete, necessary, and accurate... Edit the file /etc/default/grub to remove the # in the line... #GRUB_DISABLE_LINUX_UUID="true" ... making sure to add the two " if missing .....
Copy nearly the entire /boot/grub/grub.cfg file into /etc/grub.d/40_custom and then... Comment out every line that says... search --no-floppy --fs-uuid --set (etc.)
Change every line that says... linux /boot/vmlinuz-2.x.yy-zz-generic root=UUID=(etc.) into... linux /boot/vmlinuz-2.x.yy-zz-generic root=/dev/sda1 Edit /etc/fstab and change every instance of UUID=(etc.) to the appropriate drive and partition e.g. /dev/sda1
edit /etc/initramfs-tools/conf.d/resume and change RESUME=UUID=(etc.) into RESUME=/dev/sda1 Run update-grub
Do all the above, every time I do a kernel upgrade. (Is it important to do all the above before or after rebooting for an upgrade?) Am I correct, succinct, and complete in the above process? Any mistakes? Any omissions?
I need is to retain an entry in GRUB2 for a second disk, which has it's own GRUB2, which I want to keep intact, and not have removed when re-installing the GRUB2 on the 1st disk...
Working on a quad boot system. Two Karmic installs (I find I tend to hork one every once in a while by playing too much, so having a backup around is nice), windows 7, and Snow Leopard. I got everything up and running, except I had Leopard installed instead of snow leopard. At that time, I had the following:
Grub2 detected everything just fine, made a real nice grub.cfg file and away I went.Now, I've made a change. Snow Leopard required GUID partitions and I had my stuff all set up as MBR and was /not/ about to reformat and start over. So I added a second drive, sdb.
Now, I can boot to that drive independently. Fine.I can boot to sda just fine and go to either Ubuntu install or windows just fine. Great. Grub2 finds Mac OSX on /dev/sdb2. Awesome (sdb1 is a fat32 bootloader for hackintosh reasons). It not only doesn't update grub.cfg, it leaves the old /dev/sda2 listing for my old Leopard install ... whose partition I deleted. It isn't visible anymore.
Code:
> sudo update-grub Generating grub.cfg ... Found Debian background: radar.png
[code]....
But nothing after Ubuntu 9.10 on /dev/sda6 shows up in grub.cfg? I'm at a loss. Any ideas how to get it to populate? I'd rather not hack grub.cfg and have to rebuild it by hand every once in a while especially as grub was fine with finding it.