Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-01-2011, 11:42 PM   #1
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

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-01-2011, 11:55 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,653

Rep: Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453
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, 12:16 AM   #3
Senior Member
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
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:
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:
NOTE: I have never needed to use the first 2 lines:
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:
echo "Adding WindowsXP on /dev/sda1" >&2
cat << EOF
menuentry "WindowsXP on /dev/sda1" {
        set root=(hd0,1)
        chainloader +1
Write back if you need more help. Also post the output of
sudo fdisk -l
so we can see where your operating systems are installed to which partitions.


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

All times are GMT -5. The time now is 10:26 AM.

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