LinuxQuestions.org
Register a domain and help support LQ
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 06-02-2011, 12:42 AM   #1
flux9842
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Setting up Grub to multiboot


I am a new user of Ubuntu and I am having problems setting up GRUB to multiboot Windows 7, Windows Vista, and Ubuntu 11.04. Following this guide http://erickoo.wordpress.com/2009/06...-karmic-koala/

I got to the point where I need to save the file called '11_Windows' However, in the terminal after trying to save it. (ctrl + x, yes to the save dialogue, then pressing enter) I come across an error that says ' [ Error writing /ect/grub.d/11_Windows: No such file or directory ] '

I have spent about an hour trying to find round about ways to create/ save this file and none of them have worked. If someone could tell me what I am doing wrong or what I need to do, it would be greatly appreciated.
 
Old 06-02-2011, 12:55 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
That would be /etc/grub.d/...
With current versions of Ubuntu, a simple "update-grub" should do all that for you.

What's the problem ?.
 
Old 06-02-2011, 01:16 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by flux9842 View Post
I am a new user of Ubuntu and I am having problems setting up GRUB to multiboot Windows 7, Windows Vista, and Ubuntu 11.04. ...
The first thing you should do after installing Ubuntu is to run:
Code:
sudo update-grub
Hopefully, this will add Windows 7 and Vista to your /boot/grub/grub.cfg file so you can boot into Windows.
If that does not help, see this tutorial for creating custom boot entries in the /etc/grub.d/ directory in grub2: https://help.ubuntu.com/community/Gr...Menu%20Entries
NOTE: I have never needed to use the first 2 lines:
Code:
#!/bin/sh
exec tail -n +3 $0
in any of my custom boot entries for grub2. However, I have seen other people report that their custom boot entries did not work unless they had those 2 lines at the beginning of their custom boot file. So try it with them.
For reference, here is the custom boot file that I used for booting WindowsXP on /dev/sda1:
Code:
echo "Adding WindowsXP on /dev/sda1" >&2
cat << EOF
menuentry "WindowsXP on /dev/sda1" {
        set root=(hd0,1)
        chainloader +1
}
EOF
Write back if you need more help. Also post the output of
Code:
sudo fdisk -l
so we can see where your operating systems are installed to which partitions.
 
  


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
need help setting up multiboot system vspellen Linux - Software 3 01-29-2009 05:58 AM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 02:50 PM
Setting up users in a multiboot environment. claytonjohnroby Linux - Distributions 2 10-30-2006 07:31 AM
grub multiboot help firephenix405 Linux - Newbie 2 09-10-2006 10:51 PM
GRUB multiboot zokik Linux - General 7 06-25-2003 07:41 AM


All times are GMT -5. The time now is 02:16 AM.

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