LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-04-2011, 10:36 PM   #1
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Rep: Reputation: 0
Question XP & Vista partition wont boot after installing Ubuntu 11.04 beta


Hi ...
This is Mahesh...

I installed Windows Xp & Vista

upto here both OSes are worked

the i wanted to experience ubuntu 11.04

in partitions...i select manual partitions and
25 gb to / in ext4
5 gb to swap
then click install now

after some time this error msg appears

Unable to install grub loader in /dev/sda
executing 'grub-install/dev/sda' failed
This is a Fatal error


&

Bootloader install failed
sorry an error occured and it was not possible to install bootloader at specified location
choose a different location to install on:
continue without a bootloader
cancel the installation



i tried changing the different device to install bootloader on....
but nothing works

then i select continue without a bootloader

installation completes

but now i'm unable to boot into either xp or vista
it only shows linux bootmenu

all windows partitions are visible in ubuntu except XP

please help me out from this problem
i want to run triple boot
 
Old 07-04-2011, 11:31 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,700

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
Quote:
all windows partitions are visible in ubuntu except XP
Does that mean you are able to boot Ubuntu? Did you get the error message below during the actual installation?

Quote:
executing 'grub-install/dev/sda' failed
If you can boot Ubuntu from the hard drive or the installation CD, do so and open a terminal from the Application menu and enter this command:

sudo fdisk -l (lower case Letter L in the command) and post the output which is your drve/partition information. Also look in the /boot/grub directory if you can boot your Ubuntu installation and post the contents of the grub.cfg file. If you cannot boot Ubuntu on the drive but can boot only from the CD, post back.
 
Old 07-04-2011, 11:48 PM   #3
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Post

ThanX for responding

Quote:
Originally Posted by yancek View Post
Does that mean you are able to boot Ubuntu? Did you get the error message below during the actual installation?



If you can boot Ubuntu from the hard drive or the installation CD, do so and open a terminal from the Application menu and enter this command:

sudo fdisk -l (lower case Letter L in the command) and post the output which is your drve/partition information. Also look in the /boot/grub directory if you can boot your Ubuntu installation and post the contents of the grub.cfg file. If you cannot boot Ubuntu on the drive but can boot only from the CD, post back.
i can boot in to Ubuntu

Output for sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a273c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3264 26218048+ 7 HPFS/NTFS
/dev/sda2 3265 60802 462167425+ f W95 Ext'd (LBA)
/dev/sda5 3265 7180 31455238+ 7 HPFS/NTFS
/dev/sda6 7181 11096 31455238+ 7 HPFS/NTFS
/dev/sda7 11097 50259 314576766 7 HPFS/NTFS
/dev/sda8 50260 56786 52428096 7 HPFS/NTFS
/dev/sda9 56787 60148 26999808 83 Linux
/dev/sda10 60148 60646 3998720 82 Linux swap / Solaris
/dev/sda11 60646 60802 1251328 83 Linux


contents of the grub.cfg file


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos9)'
search --no-floppy --fs-uuid --set=root 0628eb0f-f7ab-4880-bd0c-11c5ae9da28c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos11)'
search --no-floppy --fs-uuid --set=root a3333ab3-9556-486d-af19-abcf99ac8512
set locale_dir=($root)/grub/locale
set lang=en_IN
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
set matches_file=${prefix}/gfxblacklist.txt
set class_match=3
if lua ${prefix}/hwmatch.lua; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-5-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos11)'
search --no-floppy --fs-uuid --set=root a3333ab3-9556-486d-af19-abcf99ac8512
linux /vmlinuz-2.6.38-5-generic root=UUID=0628eb0f-f7ab-4880-bd0c-11c5ae9da28c ro quiet splash vt.handoff=7
initrd /initrd.img-2.6.38-5-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-5-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos11)'
search --no-floppy --fs-uuid --set=root a3333ab3-9556-486d-af19-abcf99ac8512
echo 'Loading Linux 2.6.38-5-generic ...'
linux /vmlinuz-2.6.38-5-generic root=UUID=0628eb0f-f7ab-4880-bd0c-11c5ae9da28c ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.38-5-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos11)'
search --no-floppy --fs-uuid --set=root a3333ab3-9556-486d-af19-abcf99ac8512
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos11)'
search --no-floppy --fs-uuid --set=root a3333ab3-9556-486d-af19-abcf99ac8512
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# 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
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
 
Old 07-05-2011, 12:54 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
grub too far into disk can't be beyond 128G.

Edited from this point

Sorry I didn't notice that you are able to boot Ubuntu.
Using disk utility or mount commands mount all of the ntfs partitions and issue the command
Quote:
sudo update-grub
or
Quote:
update-grub
and it will make entries for your wins partitions provided that they aren't damaged or overwritten.

Last edited by EDDY1; 07-05-2011 at 01:05 AM.
 
Old 07-05-2011, 01:02 AM   #5
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Post ThanX for Responding

Quote:
Originally Posted by EDDY1 View Post
grub too far into disk can't be beyond 128G
i dont understand as im new to linux
 
Old 07-05-2011, 01:03 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
I edited my last post

Also if ubuntu is bootable grub installed already.
 
Old 07-05-2011, 01:05 AM   #7
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
grub too far into disk can't be beyond 128G.

Sorry I didn't notice that you are able to boot Ubuntu.
Using disk utility or mount commands mount all of the ntfs partitions and issue the command

or
and it will make entries for your wins partitions provided that they aren't damaged or overwritten.
sudo update-grub
/usr/sbin/grub-probe: error: cannot stat `aufs'.
 
Old 07-05-2011, 01:09 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Also the space between install and /dev is missing
wrong
Quote:
grub-install/dev/sda
right
Quote:
grub-install /dev/sda
 
Old 07-05-2011, 01:16 AM   #9
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Post

Quote:
Originally Posted by EDDY1 View Post
Also the space between install and /dev is missing
wrong

right
sudo update-grub

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-5-generic
Found initrd image: /boot/initrd.img-2.6.38-5-generic
Found memtest86+ image: /memtest86+.bin
done
 
Old 07-05-2011, 01:18 AM   #10
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
grub-install /dev/sda
rm: cannot remove `/boot/grub/915resolution.mod': Permission denied
 
Old 07-05-2011, 01:18 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Did either show up?
Your grub is installed if youcan do sudo update-grub

Last edited by EDDY1; 07-05-2011 at 01:19 AM.
 
Old 07-05-2011, 01:21 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Do you have disk utility under Applications>>System?
 
Old 07-05-2011, 01:22 AM   #13
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Boot your Ubuntu LiveCD and go to

bootinfoscript.sourceforge.net

Follow the instructions and reply with the results posted within tags (highlight text and select # above.)
 
Old 07-05-2011, 01:23 AM   #14
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,421

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Try mounting all of your partitions thru file manager Places on Menu bar.
 
Old 07-05-2011, 01:34 AM   #15
bheemamahesh
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Post

Quote:
Originally Posted by EDDY1 View Post
Do you have disk utility under Applications>>System?
had disk utility

and tried mounting all the partitions
all are mounted except the drive which contains xp and it shows as unknown
 
  


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
Lost partition on ubuntu and vista dual boot on vista reinstall, Testdisk no succes pulkittomar Linux - Laptop and Netbook 9 11-24-2010 02:03 AM
This can't be right.....installing Ubuntu & vista tomlin Linux - Newbie 11 02-13-2009 12:07 PM
Installed Ubuntu on a system with Vista and XP, now wont boot into Linux. help! asilentmurmur Ubuntu 5 11-26-2008 07:06 AM
Installing Dual Boot Ubuntu/Vista hellfreeze Linux - General 11 05-05-2008 09:05 PM
Bad partition after installing Ubuntu over Vista cadiolis Linux - General 3 02-26-2008 02:46 AM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration