grub2 is the second revision of the GRand Unified Bootloader. It partly resides in the master boot record, so it is launched by the BIOS. It is able to read most filesystems, and its main job is to read the kernel and initramfs from a disk in order to place them into memory and launch the kernel.
16
votes
3answers
2k views
FreeNAS grub2 booting ISO
I've got usb-keys setup to multi-boot different Linux images. I wouldn't mind adding FreeNAS, and there's a doc with samples to add to grub.cfg
menuentry "FreeNAS-8.0.4-RELEASE-x64" {
insmod ufs2
...
12
votes
3answers
16k views
Debian/Grub2: Moving root partition to new drive?
Does anybody have a suggestion for how to move the root partition to a new drive and set up grub2 to boot on that drive? I seem to have no luck instructing grub-mkconfig what it is I want to do (e.g. ...
9
votes
3answers
2k views
How do I begin with building a Linux system from scratch?
I tried to make an operating system with my on custom built kernel. It didn't work out too well. I am using Ubuntu and have downloaded Linux 3.2.7 from kernel.org . I am not trying to change the ...
9
votes
2answers
370 views
What are these commands for?
Yesterday I had to install a Windows with its Grub override.
Well, it's not the first time I had to fix Grub, so I used LiveCD, mounted the root partition (I don't have boot, just / and home) and ran ...
9
votes
1answer
5k views
Can GRUB2 share the EFI system partition with Windows?
I have an existing Windows 7 GPT installation, which already has a EFI System partition.
I am now trying to install a Linux on a separate harddisk, which is also GPT formatted. I did not find any ...
8
votes
1answer
4k views
grub error “superfluous RAID member” on update-grub
My system (wheezy/sid: 2.6.32-5-amd64 #1 SMP x86_64 GNU/Linux) is running fine - I'm just wondering what some messages mean.
I have two mdraid arrays running up on my system. Here's cat /proc/mdstat:
...
6
votes
2answers
3k views
How to check on which drives grub2 has actually installed an MBR?
I'm on a Debian/Squeeze system (with a history going back to at least Woody) which was upgraded to grub2 as part of the Squeeze upgrade. All works well, but I'm about to mess with the disk ...
6
votes
1answer
969 views
Where can I learn more about how to use the GRUB `ntldr` command (module?)
I recently stumbled across the GRUB ntldr module.
Apparently one of the things it can be used for is as an alternative to chainloader to boot the NT >= 6.0 versions of Windows as in the example ...
6
votes
2answers
4k views
Is Grub installed to all the MBR of a RAID array by default by the Debian Installer?
If I use the Debian Stable (Squeeze) Installer to install Debian, booting from a RAID1 pair of drives, does it write grub to the MBR of both drives - if not, how should I best protect against a drive ...
6
votes
2answers
194 views
Determine what program is in my MBR code
I've done a lot of partitioning / dual booting on my Macbook Pro. Right now I have Mac OS X installed along with Ubuntu 12.04, with Grub installed on the Ubuntu partition.
I am wondering - what is ...
6
votes
1answer
893 views
EFI boot to Linux on a MacBook Pro
8,3 MacBook Pro 2011, running Ubuntu 11.10 amd64.
Here's the situation. Screen backlight and a few other things only work if booting in EFI, so I need to boot Ubuntu in EFI to get things working.
...
5
votes
1answer
5k views
How do I add PC BSD / FreeBSD to Grub 2 boot loader?
I have Ubuntu 10.04 installed as my primary operating system, and I installed PC BSD in a different partition: /dev/sda4 without installing it's boot loader. I figured out that I need to edit ...
5
votes
3answers
461 views
Two EFI disks with Grub2
I bought two SSD disks and as usual I though that installing Windows on a completely separate disk would be the easiest solution, but I can't find any tutorials for dual booting with grub2 (efi). All ...
5
votes
2answers
2k views
Poor TTY resolution with nVidia driver
The resolution of the TTY1-6 is poor ~ 640×480
Ubuntu 11.10 | Grub2 | nVidia | NVIDIA GT215 Board
I went through the process on this site and after the edit the GRUB menu appears in the correct ...
4
votes
2answers
134 views
What preparations should I make before reinstalling windows?
Since Windows still does not offer means to skip rewriting the MBR, what can I do before reinstalling Windows to get Grub2 back into the MBR as easy as possible? (I'll also appreciate it if the answer ...
4
votes
1answer
48 views
GRUB2 chainloader: Why doesn't this work?
I'm trying to create a multiboot USB flash drive by using GRUB2 to chainload different partitions on the drive. It's not working. I do not want advice on how to create a multiboot flash drive; I know ...
4
votes
2answers
166 views
Grub 'incompatible license' error
The other day, I was using a laptop for general desktop use when its keyboard began to act up. Most of the keys on the keyboard's right side stopped working entirely and key combinations such as Ctrlu ...
4
votes
1answer
969 views
Choose at GRUB menu whether NVidia driver should be used
For some games, I need the nvidia-current driver, but when it's enabled, I can't get my work done as it messes up everything.
So is there a way I can get two options in my GRUB menu? One wich will ...
4
votes
1answer
95 views
What is the proper way of sharing the /usr subdirectory?
What parts of the /usr subdirectory are usually shared in common practice without introducing any system instabilities? My intent is to share share-able parts of the /usr subdirectory among VM's of ...
4
votes
2answers
1k views
How to manually manage grub.cfg for Grub2?
I am setting up my system. The features of it are:
GPT partition table (not sure how important this is)
Triple boot - Gentoo, Debian and Mint.
Custom kernel (kernel git repo) shared amounst distros.
...
4
votes
1answer
154 views
Why does the Linux installation fail on this machine?
I have tried to install Ubuntu and ArchLinux on the machine and the installation went fine but the boot process fails with both system. In the case of Arch the boot doesn't even start. In the case of ...
4
votes
2answers
2k views
Iso booting with grub2
I am using Linux Mint 10, and it is installed on sda8.
I edited /etc/grub.d/40_custom:
#!/bin/sh
echo "Adding 40_custom.">&2
exec tail -n +3 $0
# This file provides an easy way to add custom ...
4
votes
3answers
503 views
Is there an easier way to manipulate GRUB 2 entries?
Using GRUB 2 is harder than GRUB 1 for these use cases:
It looks like if I want to reorder GRUB 2 menu entries appear in the selection window, I have to rename the files in "/etc/grub.d/" directory.
...
4
votes
1answer
583 views
How to add an iso image to grub2?
I read grub2 allows booting from an ISO image (at least for most live-cds). How can I add such an entry to my grub configuration? Please mention all files to modify and all commands to run since I ...
4
votes
1answer
98 views
System boots only with CD inserted
I have a weird problem lately:
My system only boots if either a CD is inserted (any CD, not a specific CD(*)) or if I enter UEFI-BIOS before boot.
Otherwise, grub2 would start but afterwards the ...
4
votes
1answer
750 views
How can I boot the PC-BSD live DVD-ISO IMAGE directly via GRUB2?
Via the loopback command, GRUB2 allows to directly boot an ISO file.
Now, I've configured the according menuentry to boot the PC-BSD Live DVD ISO, but when I try to boot it, the FreeBSD bootstrap ...
4
votes
1answer
999 views
Booting a file system image from a HDD using GRUB2 with persistence
How do I preserve changes I make to files when running an operating system that is booted - using GRUB2 - from a file that contains a file system.
I managed to get GRUB2 to boot an image file that ...
3
votes
4answers
125 views
GRUB installed with every OS. Which one is actually in use?
When you have multiple Linux OS's on the same computer, each installation has its own installation of GRUB, and the most recent installation is usually the one that is used when booting up. The issue ...
3
votes
1answer
128 views
update-grub in grml
I converted a machine from a single disk to mdadm RAID1. I did this nearly like it's described in Raid1 on a running system.
Before, I tried to make the same changes not within the running system, ...
3
votes
2answers
5k views
Can GRUB font size be customised?
I would like to reduce the size of the font of GRUB boot loader. Is it possible and so how?
3
votes
2answers
3k views
Does Grub2 support putting /boot on a RAID5 partition?
It looks like currently most OS installers insist on putting /boot on a non-RAID partition (or the kind of RAID1 partition that "looks like" a non-RAID partition), even the installers that support ...
3
votes
2answers
137 views
How do I make sure grub is only installed once?
I currently have Windows on one partition, and Ubuntu on another. I'd like to install Quimo, and possibly Mint and/or Lubuntu as well.
How do I make sure that only Ubuntu has Grub, and that the ...
3
votes
2answers
118 views
Why can GRUB2 only remember 4 bits?
For fun and laziness, I've got 20 entries in my GRUB2 menu. To get to the bottom one quickly, I tap down-arrow a couple of times during the GRUB loading screen. I can press the key 15 times (+/- 1, ...
3
votes
1answer
39 views
Grub2, boot into existing OS option?
I've got Grub2 installed on a USB stick, and I want to add an entry to the grub.cfg that will boot in to another bootloader e.g. grub on the main harddrive.
Like how the Windows 7 install disk will ...
3
votes
1answer
52 views
Use boot parameter to perform certain actions after boot
I'm asking myself if I can use Grub 2 to tell the Operating System which actions to perform after boot.
Background:
I have a HTPC with Debian Wheezy installed. Sometimes I want to use the System as a ...
3
votes
2answers
2k views
How do you dual boot Debian and FreeBSD using GRUB2?
I've been trying to install FreeBSD alongside my Debian installation in a single partition. All examples readily present on the Internet had shortcomings:
Some required chainloading the FreeBSD ...
3
votes
2answers
2k views
How do you install Grub2 on a USB stick?
How do you install Grub2 on a bootable USB stick?
Somewhere I've heard that Grub2 can boot directly from ".iso" images,
so I'm hoping Grub2 will make it easy to drag-and-drop several "liveCD" iso ...
3
votes
3answers
645 views
How to change Grub 2 default permanently?
Fedora now uses Grub 2. Whenever it does a kernel upgrade, it loses my default boot option (Windows). How can I fix this?
I resent Grub 2 over this, because the old Grub respected my choices.
3
votes
1answer
248 views
GRUB on MBR of Windows-only internal drive, with distros on external drive
I think what I want to do is long and convoluted; then again, it might be somewhat easy, and I'm just overthinking it.
Here's the setup I want to achieve:
The internal drive (sda) is one giant ...
3
votes
1answer
325 views
BURG menu error
I installed Ubuntu 10.10 recently and installed BURG (bootloader based on GRUB). However, the boot menu seems to have swapped Vista and Windows Recovery mode; so to go to Vista I need to select the ...
3
votes
1answer
407 views
Grub 2 installed on-partition - how to not embed it
My friend installed ArchLinux on a MacBook Pro alongside Mac OSX and Windows to try it. He's power user, so I only needed to help with the bootloader. Arch Linux's described installation of GRUB did ...
3
votes
1answer
916 views
installing grub 2 on mdadm, which device?
when installing grub(2) to mdadm devices are you supposed to install it to /dev/sdX or /dev/mdX?
3
votes
0answers
41 views
getting the message “out of partition” after installing grub2. What is happening?
I recently moved a partition with a complete Linux install except /home to a new disk (with DD).
Everything went fine, I can mount the partition, browse it... perfect.
Next step: install grub to ...
3
votes
1answer
97 views
Can the grub2 bootloader replace Windows bootloader partition?
I'm dual-booting Windows and Kali Linux on my laptop, using grub2 as the bootloader.
Can I remove the partition Windows 7 creates for the bootloader? It is the 100MB partition labeled "System ...
3
votes
1answer
181 views
Arch linux : pacman does not work when chrooting
I have Ubuntu installed on my computer. I decided to install Arch linux, but I skipped the part about Grub installation as it is already installed. Seeing that Arch does not show up in Grub's menu ...
3
votes
0answers
4k views
Enabling IOMMU in the kernel for graphics card pass-through
Short question:
How can I turn on the intel_iommu setting in the Linux kernel? I run a Debian host, using the grub2 bootloader. Documentation I've seen says to edit /boot/grub/menu.lst, which seems ...
3
votes
1answer
993 views
Full disc encryption with GRUB2
Does anyone know of a good Howto on how to fully encrypt a HDD (even the /boot!) with GRUB2?
Is it possible using fedora 14 or ubuntu 10.04?
3
votes
3answers
512 views
Failure to recover grub2 after installing arch-linux
I am currently installing and and re-installing Arch Linux for learning purposes. As I don't have a secondary machine, I have to do it on my main one. The thing is - I couldn't find a way to avoid ...
3
votes
3answers
4k views
Grub2 RAID /boot
I'm using Gentoo on my HomeServer. My HDDs are raid1 mirrored with mdadm.
My problem is how to boot the /boot partition correct?
/dev/md1 consists of /dev/sdc2 & /dev/sdd2 mounted on /boot
In ...
2
votes
4answers
155 views
Fedora won't boot after installing Nvidia drivers
I followed this tutorial about Nvidia drivers installation and I accidentally forget to do 5th point (disabling nouveau drivers), so now I can't boot my system. I know I am idiot but is there anything ...