Quantcast

Maximum PC

It is currently Wed Aug 20, 2014 11:56 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Daul Booting Help
PostPosted: Sun Jul 18, 2010 7:41 pm 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
Hello,

I have recently installed Ubuntu 10.04 because I wanted to see the new features and stuff. I wanted to dual boot Ubuntu and Windows XP. I installed Ubuntu and it worked fine and all but I can't boot into windows because grub does not appear before an OS boots. Windows XP is also not an option because I tried updating GRUB via Terminal and it did not find my Windows installation. If this helps; During installation I had to delete an older windows installation to install Ubuntu. I also tried adding windows to the GRUB menu from a site. Here is what happens when i type in the command sudo update-grub

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
“Adding Windowsâ€


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 6:01 am 
8086
8086

Joined: Sat Sep 29, 2007 5:18 pm
Posts: 80
Do your windows partitions show up when you boot into Ubuntu under the places menu? What option did you choose when you installed Ubuntu? It should have detected that xp was already on the drive. It kinda sounds like you deleted the wrong/all windows installation when you installed Ubuntu.

You can hold down the shift key when you boot your computer to bring up the GRUB menu.


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 6:31 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
This would be easier to just have you post what your grub.lst looks like and the results of an fdisk -l


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 9:34 am 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
My windows Partition does show up in Ubuntu.
When i use fdisk -l it does not display anything in the terminal and there is no
grub.lst


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 11:29 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
oh sorry...you probably need to do a sudo fdisk -l

As an example with mine...

title windows 1
rootnoverify (hd0,0)
chainloader +1

In your case, it's important see what's currently in your menu.lst.

The fdisk -l will not only tell you that the partition was there, but also where exactly it's at so you know what to put in the parenthesis so it points to the right place to boot from.


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 2:29 pm 
8086
8086

Joined: Thu Mar 29, 2007 3:41 pm
Posts: 56
Just gotta add. If you want an easy solution Download Acronis Disk Director 11 Home. I have Win7. Win XP PRO, and Ubunto all installed. It has this program in it called Acronis OS Selector. It is so easy to use and it does it corectly. And you even learn from it. By seeing what it did to easily install.

http://www.acronis.com/homecomputing/pr ... kdirector/

There's the link....dont worry they have a DEMO version to check out. The free one's like GAG are hard to understand plus Win XP does not play with a MBR made from a Linux program. Hope this helps


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 2:37 pm 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
Here is what shows up when I use sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0xa0a0a0a0

Device Boot Start End Blocks Id System
/dev/sda1 65375 121480 450668544 83 Linux
/dev/sda2 * 2 65374 525108592 f W95 Ext'd (LBA)
/dev/sda3 121480 121602 975872 82 Linux swap / Solaris
/dev/sda5 2 65374 525108591 7 HPFS/NTFS

Partition table entries are not in disk order



craazziee8- I don't think you should advertise products on this forum


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 2:42 pm 
8086
8086

Joined: Thu Mar 29, 2007 3:41 pm
Posts: 56
:?: :?: :?: :?:
I dont work for them and I wasnt advertising I was answering your question. :roll:


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 2:42 pm 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24222
Location: Granite Heaven
His link is fine and that product would actually help you with your problem.

If you see a post that you think is suspect, please alert a moderator .. we'll take care of it if necessary. Thanks. :)


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 2:48 pm 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
I'm sorry.
But the program won't work for me because I'm Using Linux and I can't get onto windows.


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 6:14 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
So I guess it bears to ask...are you seeing a windows choice for windows?


Top
  Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2010 8:21 pm 
Million Club - 5 Plus*
Million Club - 5 Plus*
User avatar

Joined: Sun Sep 12, 2004 6:37 pm
Posts: 4745
Location: In the monkey's litterbox
chippy121 wrote:
My windows Partition does show up in Ubuntu.
When i use fdisk -l it does not display anything in the terminal and there is no
grub.lst


What is contained in /boot/grub/grub.cfg ?

(Ubuntu 10.04 uses GRUB2 by default IIRC)

This is a snippet of my grub.cfg:
Code:
menuentry "Windows 7 Ultimate" {
        chainloader (hd0,1)+1
}
menuentry "Arch Linux (kernel26)" {
        insmod jfs
        set root=(hd0,3)
        search --no-floppy --fs-uuid --set 04f65c67-3aa5-49cc-aa00-5f8a6a3c7f96
        linux   /boot/vmlinuz26 root=/dev/sda3 ro
        initrd /boot/kernel26.img
}


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 7:26 am 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
Here is my grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
  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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
set locale_dir=($root)/boot/grub/locale
set lang=en
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   linux   /boot/vmlinuz-2.6.32-23-generic root=UUID=e4a7ffb5-931a-4f22-9bd1-e78d5d988954 ro   quiet splash
   initrd   /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   echo   'Loading Linux 2.6.32-23-generic ...'
   linux   /boot/vmlinuz-2.6.32-23-generic root=UUID=e4a7ffb5-931a-4f22-9bd1-e78d5d988954 ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   linux   /boot/vmlinuz-2.6.32-21-generic root=UUID=e4a7ffb5-931a-4f22-9bd1-e78d5d988954 ro   quiet splash
   initrd   /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   echo   'Loading Linux 2.6.32-21-generic ...'
   linux   /boot/vmlinuz-2.6.32-21-generic root=UUID=e4a7ffb5-931a-4f22-9bd1-e78d5d988954 ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows XP″ {
set root=(hd0,0)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod ext2
   set root='(hd0,1)'
   search --no-floppy --fs-uuid --set e4a7ffb5-931a-4f22-9bd1-e78d5d988954
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### 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 ###

I don't know if windows is a choice because I can't get GRUB to show up during boot. I hold the Shift key down but nothing happens. It just boots up normally.
I tried using the commend sudo update-grub and this is what happens
[code]phillip@phillip-desktop:~$ sudo update-grub
[sudo] password for phillip:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
“Adding Windowsâ€


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 9:07 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
You have this as your windows entry...

Code:
menuentry “Windows XP″ {
set root=(hd0,0)
chainloader +1


If that option isn't working I'm thinking you need to change root=(hd0,0) to root=(hd0,4).

Truthfully, I'm sort of puzzled how you ended up with the partitioning you posted above with an extended partition at the beginning where it is.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 9:16 am 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
But how can I get GRUB to display before an OS boots? I tried holding down shift as Ubuntu boots but nothing happens beside Ubuntu booting up to the login screen.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 9:24 am 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24222
Location: Granite Heaven
Honestly, for all the trouble that this is causing you, I would just blow away the entire drive and repartition it properly with Windows and Ubuntu.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 12:34 pm 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
I would do that but I don't have an extra HDD to backup my data. And I don't have the money to buy an extra drive.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 2:28 pm 
Million Club - 5 Plus*
Million Club - 5 Plus*
User avatar

Joined: Sun Sep 12, 2004 6:37 pm
Posts: 4745
Location: In the monkey's litterbox
There should be some options in /etc/grub.d/default that you can change.

I rolled my own grub.cfg for grub2, so I'm only guessing.

The main issue is that there's a set timeout=-1 right at the end of the 00_header section


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 3:00 pm 
8086
8086
User avatar

Joined: Sun Jul 18, 2010 7:06 pm
Posts: 42
I got GRUB to show before Ubuntu boots and there is no Windows XP option.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2010 5:00 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Oct 27, 2004 12:43 pm
Posts: 4171
Location: Richmond, TX
Have you booted off the WinXP installation disk and tried to repair?


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group