Ubuntu :: Configuring Grub2 To Boot Freebsd?
Jan 17, 2011I'm having trouble configuring grub2 to boot freebsd. I know how to do it in grub, but grub2 is giving me grief.
View 3 RepliesI'm having trouble configuring grub2 to boot freebsd. I know how to do it in grub, but grub2 is giving me grief.
View 3 RepliesI 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):
Quote:
menuentry "FreeBSD" {
insmod loopback
insmod iso9660
set isofile="~/iso/PCBSD8.0-x86-DVD.iso"
loopback loop (hd0,1)$isofile
}
Is it correct... and enough info?
wanted to try out FreeBSD but I want to boot it from an ISO. I put my iso file on my first hd 3rd partition in /boot/iso/FreeBSD-8.1-RELEASE-amd64-dvd1.iso. But I can't seem find anything to boot freebsd this way. Is it possible and if so how. This is what I kinda got but its not working.
Code:
menuentry "FreeBSD1" {
insmod loopback
[code]...
I've just installed FreeBSD 8.1 on /dev/sda4 (FreeBSD slice), without installing the boot loader from FreeBSD (I've selected None when prompted for boot loader in sysinstall). Now I want to use my existing Grub2 from already installed Ubuntu 10.10 to boot FreeBSD also.
After some reading, I've added to the end of /etc/grub.d/40_custom:
After running sudo update-grub, grup.cfg file shows my new entry. The problem is that after restart, I don't see the new entry in the grub menu.
Another question, If i used chainloader +1, that means I need to have the FreeBSD bootloader installed also on /dev/sda4 right? For chainloading booloaders?
I didn't get to that step, I first want to see the entry in the menu.
Any idea what I might be missing/misdoing? (I also checked for blank spaces in the menuentry like the wiki for grub2 says)
Earlier today, I tried to install FreeBSD. If anyone here has done this, I think I went wrong at the part where it asked if I wanted to edit the Master Boot Record. In any case, now when I turn the computer on, it boots into FreeBSD instead of into GRUB. Now I have no access to Ubuntu or Windows, and I have no internet on FreeBSD. How can I fix the MBR so that it boots into GRUB instead of FreeBSD? I want my Ubuntu back...
View 2 Replies View Relatedi 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
[Code]....
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)?
View 2 Replies View RelatedI recently got a netbook and setup as dual boot between win7 starter and 9.10 (64bit). Win 7 starter is not impressive so i want to nuke it and give the space all to my /USR partion. I am comfortable working with Gparted and assume that i can launch using my gparted live usb and delete the windows partion and then resize the /usr partion.
what changes do i need to make w/ Grub2? I would prefer not to see the Grub menu at all and have it load right the main kernel if possible. Also, if this is possible is there a way to get to the Grub menu during boot should i need to select a different kernel?
After installing karmic with Grub2 I am unable to boot into Archlinux partition. Grub2 has removed the last line of the Archlinux boot stanza! It used to read:-
[Code]....
Following the Grub2 tutorials I have tried editing /etc/grub.d/40_custom as follows:-
[Code]....
But no luck. Only way into Archlinux is to get into the edit shell and manually add the missing line and remove other stuff not needed. I have spent hours trying to resolve this issue and I am fairly p----d off
I was yesterday evening experimenting inserting a script into /boot/grub/grub.cfg. Well I broke grub.cfg and had to try to boot from a grub2 prompt.I have separate /boot and / partitions on /dev/sda1 and /dev/sda2 respectively.Working out the correct syntax for the boot to work was a little complicated, so I thought it would be useful to post the correct procedure here, in case anyone else has the same set up that I do (separate /boot and / partitions)At the grub prompt code:
grub> set prefix=(hd0,1)/grub
grub> insmod linux
grub> set root=(hd0,2)
[code].....
I'm as big a fan of Linux as Linus Torvalds himself but it's things like this that help to keep Linux from becoming mainstream. I mean, how would I ever explain the need for the following procedure to a non-techie type, recent or prospective Ubuntu convert? The following is not a question, as I have finally resolved the issue but is more of a rant, I guess you could say. The reasons that I decided to post it are:
1) To hopefully help someone else experiencing this issue.
2) To point out the need for significant improvement in the area of editing partitions under Ubuntu Linux.
3) To vent my spleen.
[Code]...
I've set up a triple boot system (Ubuntu Karmic, Windows Vista and OSX86 -- a patched OS X which works on a PC) on a Dell 9200 (C2D 2.13 GHz, 4GB RAM, nVidia G210). I sue Grub2 as the bootloader and update-grub picks up OS X and it boots without any problem.
However, although when booting OS X using its own Darwin bootloader, I can apply the boot option "Graphics Mode"="1680x1050x32" to ensure that I get the screen resolution that I want, when OS X boots from Grub2, the only resolution available is 1024x768 which is disappointing. I have tried adding gfxmode=1650x1050x32 to the OS X section of /boot/grub/grub.cfg in Ubuntu but this does nothing.
I installed Ubuntu a few months ago on my Dell inspiron 1318. All works really well, however my only only problem with the setup is the boot selection screen. Is there a way to put Vindoz in the first spot instead of Ubuntu? I use them about 50-50 of the time but would still prefer windows as default because my wife uses that with her accounting software and she goes nuts when she turns it on and it goes to Linux.
View 3 Replies View Relatedconfigure my Apatche server to start at Boot Up. I started 'Start Up Application' under > 'System' but didn't know what to do then.How to make Apatche configured to be used over LAN. Btw i have it already up and running and i can accesses the web pages through my browser.
View 3 Replies View RelatedI had Ubuntu 9.10 installed on my laptop. A while ago I dual installed Fedora 12 on the laptop & now I can't enter Ubuntu. I don't get an option to select the OS at start up, Fedora loads automatically. Can anyone help me configuring my GRUB? This is my grub.conf file in fedora -
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
[Code]....
Also, the Ubuntu installation is 64bit, whereas the Fedora installation is 32bit, don't think that should cause any problems, but I want to be sure.
I wanted to install ubuntu 11.04 alongside win7 on my notebook (with no optical drive). I created 2 primary partitions (one for win7 [ntfs] one for ubuntu [ext4]) and 2 logical partitions (one for swap one for general use for storage[ntfs]) by running ubuntu from my USB Flash disk and using gparted. First, I installed win7 without having any problem, then ubuntu also without having any (apparent) problem (I installed boot loader on MBR: the default setting). After the ubuntu installation is over, I was instructed to restart my computer as usual and win7 started without asking me which OS to boot. When I run ubuntu from my Flash disk and run gparted and selected the boot drive as the partition on which ubuntu was installed, I got the error saying "missing operating system". I suppose GRUB is misconfigured and that is causing the problem because nothing went wrong during the installation processes. How to configure GRUB by running ubuntu from my Flash disk. BTW win7 is working just fine.
View 4 Replies View RelatedI've been using lilo to dual boot linux/windows and I'm trying to add another linux distribution/partition. So far my lilo config looks like this :
other = /dev/sda
label = Windows
table = /dev/sda1
image = /boot/vmlinuz
root = /dev/sda4
label = Linux
read-only
I have installed another linux partition in /dev/sda2 which suggested to install grub with the following configuration :root (hd0,1) kernel /boot/vmlinuz26 root=/dev/sda2 ro initrd /boot/kernel26.img. Since I wanted to be sure that at I would be able to boot in at least one of my linux I didn't intall grub. I'd like to know how I should change my lilo config to be able to boot in my second linux partition.
[Code]...
Just a quick question as I re-familiarize myself with apt-get again. So far, have had no luck finding what I am trying to do (back to the man page) Basically, after doing a 'apt-get update' command, was it possible to see what packages have newer versions and can be upgraded?
For example, I am working with a system that has BASE 1.4.3 installed, and I know there is a newer version out (1.4.4), but want to make sure that is in the repository. Does apt-get have something similar to portmaster in FreeBSD? Where it tells you what version you have installed, and what version is available to download?
Before I add FreeBSD to my laptop. Right now it's happily dual booting with 10.04 and 7
I used to use this great guide. [url]
Of course because of (the hated) GRUB2 it is now useless.
I'm having an odd dual-boot problem. Briefly, I can't boot Windows XP from its entry on the GRUB2 menu. If I set the disk order in BIOS so that the machine boots off the drive with Windows XP, XP starts normally. However, if I boot off the Ubuntu drive, which brings up the GRUB2 menu, choosing the "Windows 7 loader" option (why it says Windows 7 when there's only Windows XP is another question!) just makes my system reboot.
It appears there's some problem with the way GRUB2 attempts to start Windows XP. I'm also wondering why GRUB2 thinks it sees the Windows 7 loader. There shouldn't be any Windows 7 anything anywhere. I once had a Windows 7 RC install on the same disk as Windows XP, but I wiped the Windows 7 system partition and reallocated its space as just another NTFS partition. FWIW, GRUB2 is installed on the MBR of the disk containing my Ubuntu install. Windows XP has a different drive all to itself.
I upgraded a while back to Windows 7. I run two separate HDDs, with debian on sda and windows on sdb.Everything worked fine, up until i upgraded to windows 7. The installer forced me to unplug sda and make sdb primary. After installing I repositioned the HDDs and was stuck with a "NTLDR is Missing" messageAfter removing the search -fs--uuid tag from grub.cfg, Windows 7 booted for a good 0.5 sec and then rebooted. All that flashed was the "Starting Windows" page. I see similar bugs reported in the launchpad, but nothing that directly parallels this Here's my windows entry in grub.cfg:
Code:
menuentry "Microsoft Windows 7 Ultimate (on /dev/sdb1)" {
insmod ntfs
[code]....
I've installed Xubuntu 10.10 on a very new EeePC 1201HA. The netbook came preconfigured from the OEM with the disk split into two Windows partitions of about the same size, one with Windows 7 starter. I removed the second partition (Which was just empty) and have installed a series of different distros since then, to try and gauge their support for the 1201HA hardware. I finally settled on Xubuntu, which can support most of the laptop's features with some tweaks.
However, after this last install, and a Grub config change needed to make the framebuffer work on this hardware, I'm unable to boot Windows 7.Grub shows it on the menu normally, but when I select the Windows 7 entry, I get the message 'Reboot and select proper Boot device or Insert Boot Media in selected Boot device and press a key,' which I understand isn't from the OS but rather a BIOS message which implies there is no loader.
I've tried using the Windows 7 system restore to do everything short of rewriting the Windows bootloader to the MBR (Which would, of course, remove Grub and thus not solve my problem, as I couldn't load Ubuntu from it). I attempted to fix the boot sector on the partition with the system restore tools, to no avail. And because this is a netbook with no optical drive, I'm unable to reinstall from a disk.
GRUB2 won't boot. It hangs just after the 'Boot from CD' thing in my BIOS.I've had 1.97 working on my PC about 24 hours ago, but I decided to start afresh and go for Xubuntu 10.10.I'll post the PC specs in the morning, but in the meantime, does anyone know how to fix this?It's going to be a Xubuntu only system, and I've tried to repair the GRUB files via the Live CD and here.
View 4 Replies View RelatedSo I have a really old (about 10 years) desktop PC manufactured by Packard Bell, and would like to get Lubuntu 10.10 running on it. I had previously burnt a CD with it, but boot time was incredibly slow on the machine and installation of Lubuntu crashed my system. As a result, I created a LiveUSB (as you do).
When I entered my CMOS, I discovered the BIOS on my machine isn't able to boot from USB, and I wasn't able to find a BIOS update for my AMIBIOS chip on the American Megatrends website. So I booted my GParted Live CD and created an ext4 partition at /dev/sda3, which I proceeded to install GRUB2 onto via the commands:
Code:
$ sudo su
# mkdir /mnt/grub/
# mount /dev/sda3 /mnt/grub/
# grub-isntall --no-floppy --root-directory=/mnt/grub /dev/sda
This, as planned, succeeded; I can now get into a GRUB2 prompt when my machine boots...! The only problem is, GRUB2 won't detect my USB...or any device other than my hard drive
So, is there any way I can get GRUB2 to find my USB?
P.S. The USB works fine on my laptop, which does support USB booting. I can also boot the USB on my laptop via its GRUB2 command line, using:
Code:
grub> set root='(hd1,1)'
grub> chainloader +1
grub> boot
Sometime in the next few weeks the office I just started working in wants me to switch their file server over to Ubuntu, from FreeBSD. I am a little scared of doing this, seeing as how I came into this job with no documentation of the network/hardware that I will be primarily working with. Does anyone have any useful tips/links that would be relevant to my task? So far, I have copied over the following files from the FreeBSD server:
/usr/local/etc/smb.conf
/usr/local/etc/smbldap-tools/smbldap_bind.conf
/usr/local/etc/smbldap-tools/smbldap.conf
/usr/local/etc/ldap.conf
/usr/local/etc/ldap.secret
I've made an Ubuntu samba server before, so I was kind of off-put by those file locations on the FreeBSD server.
How to remove OS's from the GRUB boot menu, and also, how can I change the default booter from Ubuntu to a different OS and edit timeout?
View 2 Replies View RelatedRight, I've made some progress in regards to this. Moblin is now on the GRUB2 boot menu thanks to a sudo update-grub. But for some strange reason, it comes up with this the scenario in the first image when I go into its entry.
I tried doing some stuff to the /etc/default/grub, but that didn't even help. The second image shows the contents of /etc/default/grub.
I would really like Moblin to work. I am so close to getting it to work, yet so far because I can't even boot into it
I've read the various Grub2 posts and even the guide, but unfortunately for me I can't seem to come up with an answer to my problem. I installed Ubuntu 9.10 on a new hard drive on a friends laptop, but I have problems with the system hanging on the Grub2 bootup.I'll post the screen
recordfail=1
if [ -n ${have_grubenv} ]; then save-env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no floppy --fs-uuid --set ac1b1d46-bac1-4140--953e-70a8a61be8b0
linux /boot/vmlinuz-2.6.31-14-generic root=UUI=ac1b1d46-bac1-4140-953e-70a8a61be8b0 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
If I hold down the left shift and then press E to edit and remove the search --no floppy line entirely then press ctrl-x the system boots just fine. I then opened up a terminal and did sudo update-grub to try that but it didn't fix it. Is this a problem in my bios looking for a floppy, I tried with the boot from floppy enabled and disabled (but always as the 3rd boot option) the floppy is not installed. Is there anyway to edit the file and save it so it will boot up? I was trying to research that and could not come up with it.
I have recently been unable to boot into windows xp, which is on a drive separate from my linux installation. When I select the windows installation, the computer starts back at the bios screen and returns to grub endlessly. I am running an updated 9.10. The linux will boot fine; however the most recent kernel does not show up on the list of available options, which may indicate something. I have searched the forum and found nothing that helps. There are plenty of posts asking if you have stopped using windows altogether and other non tech related posts though.
The results of sudo fdisk -l are below:
On Grub legacy i used a menu entry to boot from a DVD since the bios on my pc doesn't recognize my DVD burner.... So before on the old grub i can just added this menu entry and it all worked...title DVDroot(hd0,0)kernel /boot/grub/memdisk.bininitrdboot/grub/sbootmgr.dskthen grub 2 came along and that all changed..on the 40_custom file i added this
menuentry "Boot DVD Drive" {
set root=(hd0,0)
linux /boot/grub/memdisk.bin
[code]....