LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2012, 12:30 AM   #1
hypnopanda
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Question Can't understand why chainloader doesn't work.


I've been trying for quite some time to make my Acer ZG5 netbook boot the multiple operating systems I have installed on it. I even bought the Linux Genius Guide, Vol. 2 simply because it had what I thought were the ultimate instructions on multibooting a Windows XP partition with several Linux OS's using a chainloader. All of the Linux OS's (except the first one on the extended Linux partition) have been installed with their respective boot-loaders on there own partition (not the master boot record), as directed by the Linux Genius Guide instructions. I went into the /etc/grub.d/40_custom file and entered something like this (with each linux name different):

menuentry "AV Linux Loader" {
set root=(hd0,7)
chainloader +1
}

As well as the other linux entries, I have an entry for Windows:

menuentry "Windows XP Loader" {
set root=(hd0,7)
chainloader +1
}

I have done this for each OS installed.

I also did a sudo chmod -x /etc/grub.d/30_os-prober as instructed by the article in order to disable the os-prober of grub2 that, according to the article in the Genius Guide magazine, "actually adds unbootable boot menus because it detects the root FS for other operating systems in an incorrect way."

Anyhow, the net result is that I can only boot the first of 6 Linux operating systems on an extended partition and the Windows XP partition, but none of the other Linux operating systems.

Does anyone out there have any good advice?
 
Old 02-15-2012, 01:35 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Quote:
set root=(hd0,7)
Unless I'm sorely mistaken, set root should point to the root partition of each OS, and not all pointing to the same partition.

Example:
set root=(hd0,1)

set root=(hd0,2)

and so on, substituting the actual partition numbers for each OS.
 
Old 02-15-2012, 01:56 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,953

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I'm not even going to try and guess what your system now looks like.
Go here, do as it says, post the output.
 
Old 02-15-2012, 12:36 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,600

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
It appears that your system is set up somewhat similar to mine - I've got WinXP, three versions of Fedora, and two versions of Ubuntu on my ZG5. My system is set up with legacy grub (grub-0.97) in the MBR pointing to a separate boot partition with the rest of the grub files. Each installaed distro has grub2 in its partition. The chainload stanzas look something like this one:
Code:
title=Fedora 16 LXDE sda10
     rootnoverify (hd0,9)
     chainloader +1
Note that the rootnoverify line in each points to each distro's partition.

If you're using grub2 as your bootloader, the syntax will be a little different; more like this (and I'm guessing here, I don't have my multi-distro desktop PC handy:
Code:
menuentry "Fedora 16 LXDE" --class fedora --class-gnu-linux --class os {
	insmod part_msdos
	set root='(hd0,msdos10)'
	search --no-floppy --fs-uuid --set=root be9788df-c302-4e22-8ed2-53a314c
	chainloader +1
 
Old 02-15-2012, 03:51 PM   #5
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Rep: Reputation: 166Reputation: 166
sorry I can't help u with your issue, but here's my advice. forget about it. make your boot partition with grub legacy instead. it is just so much simpler and easy to edit as needed.
 
Old 02-16-2012, 09:34 PM   #6
hypnopanda
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
To BigRigDriver - Thanks for noticing that both menu entries are pointing to the same partition. However, that was the result of a typo and not what I actually did (I copied the first XP entry and forgot to change the partition number along with the OS name just for the LQ thread).

To RockDoctor and Knightron - Thanks for the detailed advice. Very nice of your both. I'm going to give your ideas a try and post my results soon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 02:10 AM
Seventy niner who doesn't understand anything. billgant LinuxQuestions.org Member Intro 6 12-11-2006 09:58 PM
Why doesn't linux understand my commands crazyjedi Linux - Newbie 3 03-10-2006 08:35 PM
i want others to understand my handy-work rblampain Programming 3 10-31-2004 02:15 AM
my linux box doesn't understand... thepeeratt Linux - Security 5 11-21-2003 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration