General :: Chainloading From Grub2 To Sys On A USB Drive / Boot Error?
Mar 23, 2011
Alright, what I thought would be a simple task has me tied in knots.
I wanted to make a multiboot USB flash drive that I could easily manipulate to switch to various distros easily. My plans were:
1. Partition my 8GB drive to one large first partition (5GB) so that windows could access it. (P.S. GParted didn't partition correctly, needed to use fdisk. THIS MIGHT BE IMPORTANT IN SOLVING THE PROBLEM BECAUSE THERE MIGHT BE A BLOCK ERROR). I then made an extended partition with 5 500MB logical partitions.
2. Install Grub2 to MBR from Ubuntu
3. Expand ISO's of varios distros (Acronis Recovery, Puppy linux, etc.)
to the partitions, and create syslinux.cfg files for each (from the isolinux.cfg files that were already there)
4. Install syslinux to each partition's boot sector
Code:
#syslinux /dev/sdb5...
5. make grub.cfg on /dev/sdb1 chainload each partition.
THE GRAND PROBLEM:
Grub2 loads, but when selecting what I want to boot, I get the error
Boot error
which is syslinux, not grub2. So I know it's chainloading, but syslinux doesn't seem to find ldlinux.sys.
P.S. I'm not asking for other ways to make a multiboot drive, I know I can just direct boot from Grub2, but I want to be able to pass the boot to the boot loaders on the other logical partitions.
View 7 Replies
ADVERTISEMENT
Dec 20, 2010
I multi-boot Windows XP and 5 Linux distros on a single hard drive. Some of the distros come and go but I keep at least two that are my daily use distros. My boot loader is grub1 located on a ext3 formatted distro. I have installed a distro that requests the partition be formatted ext4, which I did. I have been trying to edit my grub1 menu.lst so that I can chainload the ext4 distro get errors or it goes to the command line with the last word being Grub. My question is, can grub1 ext3 chainload a grub2 ext4 distro?
Here is a sample of my menu.lst
Code:
title MEPIS at sda7, newest kernel
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 nomce quiet splash vga=789
initrd /boot/initrd.img
boot
[Code]...
Mepis is the location of my menu.lst and is ext3 on sda7 and aptosid is the ext4 distro that I am trying to boot on sda9 and it uses grub2.
View 3 Replies
View Related
Nov 24, 2010
Don't know if I should have posted in Ubuntu specific section but since it involves grub2 and a quirk in my bios, I have attempted to multiboot 3 Windows versions and the problem I had was intalling a second Ubuntu. (Don't ask!) I had success multibooting with grub legacy on an older computer but this computer has a tricky mb which won't let me install grub to the second drive on an IDE port. What I mean by this is that since I already had boot files to the older drive in mbr- it won't allow me to install to mbr of the other drive in IDE port even if set first in bios boot order, my old computer allowed me to do so, exept perhaps its because 2 HDD were SCSI... (I have other HDD installed in RAID 0 on the other sata ports supported by mb (fakeraid) but I will use these for video editing as scratch disks later. One other HDD used for data is on the Raid port but not in an array).
I succeeded in installing Ubuntu desktop only after realising that I had to first switch my disk order in bios- otherwise the system would just hang. U. Desktop grub had sucessfully found Win bootloader links to both XP and Vista. I then installed Win 7 and used easy BCD and grub2 boot entry to link back to my Ubuntu Desktop grub 2 menu.
The problem occured when installing Ubuntu Studio ( for which I created a separate /boot partition) and I decided to install grub2 to mbr since it had correctly detected all my OSes! But then it seems it never installed correctly to the mbr. I still had Win 7 BCD bootloader in MBR! I tried to link easy BCD boot entry to the /boot drive but that didn't work and I ended up having to reinstall Win7 because I had overrid the BCD with faulty neogrub mapping entries- which I then removed and kept the orginal neogrub that still points to Ubuntu Desktop grub menu.
I also now realise that because I installed Ubuntu Desktop before I switched the HDD boot order in bios- U. Desktop's grub.cfg sees root of Desktop grub differently than neogrub BCD does root=(hd4,7) vs multiboot kludge (hd3,6) and at first I tried to install grub in the wrong hdds and partitions- I based mapping on neogrub's to find /Boot (hd3,2) and (hd3, 1) which is wrong!
What I am attempting to do now is to chainload grub2 from my Ubuntu studio located in /Boot with what I thought was the right mapping but still no success:
menuentry 'Chainloader' {
insmod chain
set root=(hd4,2)
chainloader +1
}
yielded error: hd 4,2 cannot get C/H/S values press any key to continue, also when in terminal in Ubuntu Desktop in
grub> find /grub/core.img
Error 15: File not found
I will attach Boot_info_script; at this point I am too tired and afraid that I will keep on installing grub to the wrong drive!
Note: I somehow got a problem loading into XP after all these failed attempts and a system 32 file seems to have gotten lost-haven"t attempted to fix yet. Just wondering in passing what happens if I chainloaded into Windows by error- if that could have corrupted it? Right now 3 out of 5 OS are bootable. I hope I can repair it without messing up my mbr again. Another issue is that some devices are on busy IRQs and then suddenly its resolved and my onboard LAN suddenly stops working at times so I don't know if any of this could cause XP to get stuck at loading screen.
View 2 Replies
View Related
Feb 1, 2011
A little background: my primary install is fedora 9, I'm migrating to 14, and I need to change some partitioning (but not the F9, which is first on the drive). Because I installed a newer ubuntu a while back, I've been using ubuntu's grub2. That ubuntu partition needs to be moved, so I re-installed the grub 1 from F9 onto the MBR so the F9 doesn't depend on anything else.
This is when I learned grub 1 does not support booting ext4 partitions (which ubuntu uses). However, fedora claims that you can install grub 2 and have it chainloaded from grub 1, and in fact yum install adds a line to your existing grub 1 config to do so. That seemed like a nice solution since then all I would have to do is copy some grub.conf from the ubuntu partition into the F9 grub 2.
However, chainloading grub 2 does not seem to work very well. At all. I get to the grub 2 menu, but any option I choose -- including loading the F9 partition on which both grub 1 and 2 are installed, using the default config created by the installer, leads to an "unrecognized command" error, as if grub 1 was crapping out on a grub 2 config.
Anyone else had this problem? Better yet, has anyone done this successfully with any fedora version? I can backup ubuntu and copy it back in after I re-work my partitions, but while I'd prefer not to have to use grub 2 on the MBR, I'd still like to be able to boot ubuntu.
View 14 Replies
View Related
Jun 4, 2010
if it is possible to boot windows without the chainload option. I don't have xp on the first partition and I don't want to load xp bootloader on the first partition because it will overwrite grub2. All I want to do is boot xp directly from grub, is this not possible? Can't I just load the kernel like I do with linux? I've never had luck with getting grub2 to load xp, P.S. grub version is 1.97 from ubuntu 9.1 install
View 9 Replies
View Related
Jan 4, 2010
I'm having problems getting TC to load grub2 1.97b4. When I hit ESC from the TC boot prompt, I get "no bootable partitions found".
I also booted into Ubuntu Live cd, mounted my LVM dm-crypted volume and tried to reinstall grub2 to my nonencrypted /boot under /dev/sda3 and TC still wont boot. Then I set the boot flag on /dev/sda3 and it still won't boot.
These are the commands I used to install grub2 to my /boot partition. Atleast that's what I think it did.
update-grub
grub-install /dev/sda3
grub-install --recheck /dev/sda3
View 3 Replies
View Related
Jun 15, 2011
I use openSuSE and want to try Ubuntu.This is the layout of the partitions:
Code:
sda1 /boot (SuSE)
...
[code]...
View 12 Replies
View Related
Mar 5, 2011
I am still fighting with getting the right configuration in my grub file to chainload the second linux OS on my computer.
Computer:
2 hard drives (sata)
2 OS's (CentOS,Ubuntu)
CentOS is in and running fine. It owns the MBR and was in place before I added the Ubuntu OS. Ubuntu was added to the free space of the second hard drive in partition 5 and its grub was installed there. So I thought this would work for a grub stanza.
title Ubuntu (10.10)
root (hd1,4)
chainloader +1
View 9 Replies
View Related
Mar 6, 2011
This is in response to Alan's request to: open another thread, to document your progress in achieving the aimed-for dual-boot system? After giving up on the problems described in:[URL]..
View 2 Replies
View Related
May 3, 2010
I just installed Ubuntu 10.04 LTS on an external hard drive (USB connected) and I can no longer boot my Windows XP(SP3) from my internal C Drive. Grub gives me the list of boot choices, but when I choose the C drive, I just get these error messages:
GEOM ERROR
For Realtek RTL8139(X)/8130/810X PCI fast ethernet controller v2.13 (020326)
Client MAC ADDR: 00 13 D3 07 FD F5 GUID: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
PXE-E53: No boot filename received
PXE-NOF: Exiting PXE ROM
(The version of Grub is 1.98-lubuntu5). I don't have a Windows System CD to boot from, but is there something I can do from within Ubuntu itself?
View 9 Replies
View Related
Dec 13, 2009
I had my BIOS complaing that there were no OS. (worked since releaseday of 11.2).
partition setup:
sda1 : primary : swap
sda2 : primary : ext3 : Kubuntu
sda3 : primary : ext3 : opensuse (flagged as bootable)
sda5 : logical
sda6 : logical
opensuses GRUB is primary and Kubuntus is chainloaded.
The problem occurred after I tried to boot kubuntu for the first time since I installed opensuse. Kubuntu didn't boot. so I probably set up chainloading wrong. No big deal, this I can fix.
The big problem was that after trying to boot Kubuntu no OS was marked as "Boot" in MBR. This is VERY strange. somehow the boot-flag is removed!
After setting the boot-flag (with a live-CD) everything works again. I can reproduce this.
I've tried to find answers but could'nt find any.
Is GRUB supposed to remove the boot-flag when chainloading? have I found a bug?
View 9 Replies
View Related
Apr 30, 2010
After upgrading to 10.04 from 9.10 Win7 wouldn't startup any more. So I tried this HowTo: [URL] to restore Grub2. But now each time I boot up I get this two lines: error file not found grub rescue> I have NO idea what to do.
[Code]...
View 9 Replies
View Related
Jul 2, 2011
I have Lucid installed on a computer. I added a second drive, installed Windows 7. Windows 7 boots fine if it is the only drive connected, or it is selected as the boot drive in the BIOS. I booted into Lucid, ran 'sudo update-grub' and it found the Windows 7 install on the second disk. When I try to use that Grub entry to boot Windows 7, I get this error screen:
Code:
Windows Boot Manager Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert your Windows installation disk and restart your computer.
2. Choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have this disk, contact your system administrator or computer manufacturer for assistance.
File: BootBCD
Status: 0xc0000225
Info: An error occurred while attempting to read the boot configuration data.
I seem to remember in the Grub 1.x days there was a map command that would 'swap' the drives so Windows would think it was the boot drive, but the Grub2 autogenerated command doesn't have anything like that.how to get Grub2 to boot Windows 7?
View 4 Replies
View Related
Jun 2, 2011
I have a Dell PowerEdge SC1425 with two SCSI-disks, that I have tried installing Debian Squeeze on. This machine has previously been running Lenny (with grub 1), and the upgrade was done by booting a live-cd, mounting the root partition and moving everything in / to /oldroot/, then booting the netinstall (from USB), selecting expert install and setting up everything (not formatting the partition).
Both disks have identical partition tables:
/dev/sda1 7 56196 de Dell Utility
/dev/sda2 8 250 1951897+ fd Linux raid autodetect
/dev/sda3 * 251 9726 76115970 fd Linux raid autodetect
/dev/sda1 and /dev/sdb1 contain a Dell Utility, that I have left in place.
/dev/sda2 and /dev/sdb2 are members of a Raid-1 for swap.
/dev/sda3 and /dev/sdb3 are members of a Raid-1 for / formatted with reiserfs.
After installation, grub loads, but fails with the following message:
GRUB loading.
Welcome to GRUB!
error: no such disk.
Entering rescue mode...
grub rescue>
Doing "ls" shows:
(md0) (hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
I can do the following to get grub to boot:
set root=(hd0,3)
set prefix=(hd0,3)/boot/grub
insmod normal
normal
This will bring me to the grub menu, and the system boots.
It appears that grub has only found md0, which I believe is the swap partition, because ls (md0)/ returns error: unknown filesystem. I have installed grub to both sda, sdb and md1, and tried dpkg-reconfigure grub-pc and dpkg-reconfigure mdadm, as well as update-grub.
I manually added (md1) /dev/md1
to /boot/grub/device.map, but still no result.
I have run the boot_info_script.sh, but unfortunately I cannot attach the RESULTS.txt, because the forum aparently does not allow the txt-extension. Instead I have placed it here: [URL]. I am tempted to go back to grub-legacy, but it seems I am quite close to getting the system working with grub2.
View 6 Replies
View Related
Jan 9, 2011
I have a Windows Vista-Ubuntu 11.04 dual-boot. However, I have lost the ability to boot Windows Vista. I can select Windows in the GRUB menu, but GRUB says
Quote:
error: symbol not found: 'grub_err_printed_errors'
I have repeatedly searched Google for any help, but have found nothing that applies to my situation. I need Windows because I have an iPod Touch with a tethered jailbreak and can't use it right now.
View 8 Replies
View Related
May 16, 2011
we have an oracle application server on red hat 4.6 upon booting it comes up with error: attempting boot from hard drive (c GRUB)
View 2 Replies
View Related
Mar 7, 2010
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
[Code]....
View 3 Replies
View Related
May 17, 2010
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 Related
Apr 14, 2010
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.
View 3 Replies
View Related
Mar 20, 2010
I have minor problem with upgrading a hard drive. I am running an old pentium lll with two hard drives. On the first hard drive I have two partitions of around 90GB each. On the first partition is installed winXP and on the second partition I have Suse 10.3, both booted by grub and living happily side by side. My second hard drive (which is formatted for windows is only 4GB.
My problem arises when I try to replace the 4GB with a 80Gb hard drive. When I disconnect the 4GB drive the system fails to boot up and complains with error 21.
View 8 Replies
View Related
Jul 6, 2010
I have mandriva 2007 install on my desktop. I tried to update to grub2. When I run the ./configure I got the following error message.
This script, last modified 2009-06-10, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from [url]and [url]
If the version you run (./config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system.
View 4 Replies
View Related
Feb 5, 2011
So I install Ubuntu 10.10 on a multi-drive, dual boot with windows 7 computer. At almost the end of the install, I see "running grub-install sda" or whatever it is. sda is my windows drive.So rather than asking where to install the bootloader or give you the option like it used to, it just did it to my "first" drive.
What the hell? Now my Windows MBR is gone. I like to maintain that so if my linux drive dies I can still boot into windows via the old windows boot loader.Possible to move Grub2 to my other drive and repair windows 7 drive MBR?
View 3 Replies
View Related
Dec 30, 2010
The reason I ask is I have not tried on bsd, solaris or a few others.
View 1 Replies
View Related
Jan 30, 2010
I had Windows 7 installed on my system, then I installed Debian testing with grub2 as its boot manager.Initially I couldn't see windows entry in grub at all, so I ran:aptitude install os-prober kcpuload update-grub Now I can see the entry, but when I select it I get only Win7 system restore, instead of the the real thing. Any ides how to make it work?
EDIT: I tried the suggested approach to add a new file to /etc/grub.d, which generated an entry in grub.cfg, but it does not appear in the grub menu on boot :(
I have this:
grzes:/home/ga# cat /etc/grub.d/11_Windows
#! /bin/sh -e
echo Adding Windows >&2
cat << EOF
menuentry "Windows 7″ {
[Code]...
View 1 Replies
View Related
Mar 20, 2010
So, did anyone know this?
I dont remember seeing ti anywhere I accidently installed grub2 to my usb aand it actually worked and boots all my distros off fat32 usb
I though grub2 could only do ext2/3,etc
View 1 Replies
View Related
Feb 9, 2011
I'm using debian testing with grub2. Is there a way to stop the FS check at boot (something like ctrl-c) after the check has started and continue with the boot process as usual?.
View 9 Replies
View Related
Feb 2, 2010
I'm trying to boot my Fedora 12 partition, but am failing miserably, when I try to boot Fedora 12 I get "ERROR: NOT AN ASSIGNMENT"
my 40_custom file is as follows:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
[code]....
Note that I tried this using the entry that is currently commented out and I had the same result. Does anyone know what is wrong? The entry that is currently uncommented came directly from the grub entry created by fedora itself (before I installed ubuntu).
View 4 Replies
View Related
May 4, 2011
I switched over from Ubuntu because I realized Ubuntu sucks now (lol), but anyways... Now I'm trying to get Grub2 to boot up properly, but this "xputs" error pops up and drops me to the recovery prompt. I tried the grub-install dev/sda and all it did was recognize my Windows 7 OS (as Vista) and added it to the bootloader list and didn't fix the "xputs" issue.
I heard that doing a chroot is the most effective solution. Forgive me, but I don't know what "chroot" means or how effective it is. I can specify more information about where the OS is if needed. I have the boot flag set to the Debian OS at the hd(0,5) or sda5 I think, and Windows is at sda1 (I think). I just want to make sure I can fix this without damaging Windows, and I'll try to get more information.
Right now, I can only get into Windows or Debian with UBCD and Grub2 Super Disk and I know that sometimes Parted Magic could orderly mount the disks differently, so I don't know if it was sdaX or sdbX, but probably sdaX. I'll check again.
View 1 Replies
View Related
Nov 1, 2010
I am running a dual boot system with windows 7 and Ubuntu. Both have run smoothly on my machine (Core 2 quad core on Gigabyte board) I recently upgraded to 10.10 from 10.04 via the update manager within 10.04. Following the upgrade the initial boot failed at the login screen ( i simply got the purple colored screen with a white box in the center of it). Instead of trying to figure out what went wrong, I simply re-installed 10.10 from live CD on top of the upgraded Ubuntu that was failing at the login screen. The live CD install seemed to fix everything for the most part ( I did notice some quickly flashing text right before the login screen. I think it was an error message but it was too fast to read)
My problem now is that I am trying to remove some of my old kernels from the Grub2 boot screen and I cant. I have read many posts on how to remove the old kernels, but my system is proving to be difficult. The old kernels definitely show during boot, but whenever I go into Synaptic they are not there. I have downloaded Ubuntu Tweak, and they do not show in it either. I have read the information at [URL] I went to http://www.fixthecode.com/remove-hug...sts-in-ubuntu/ and thought this would fix my problem but I keep getting an error: "awk: 1: unexpected character 0xe2" when i try to run: "dpkg -l | grep ^ii | grep 2.6.3x-xx | awk -F{print $2} I am running kernel 2.6.35-22 The kernels i want to remove are 2.6.32-23 and 2.6.32-24.
View 7 Replies
View Related
Sep 13, 2009
Here is how I created a Grub2 boot-cd with a (grub.cfg) menu:
mkdir /tmp/cdroot
mkdir /tmp/cdroot/boot
mkdir /tmp/cdroot/boot/grub
cp /boot/grub/grub.cfg /tmp/cdroot/boot/grub
cd /tmp
[code]....
NOTE: The above proceedure assumes you already have a grub.cfg file. If you don't, create one in the /tmp/cdroot/boot/grub directory
View 6 Replies
View Related