PDA

View Full Version : [ubuntu] Dual booting woes



niko876
March 7th, 2010, 06:44 AM
So I am trying to dual boot between Windows XP and Ubuntu. XP was originally on the system and then I added another hard drive and installed Ubuntu on the 2nd hard drive. As of right now Ubuntu is the Primary Master and XP is the Primary Slave. I can boot to Ubuntu using GRUB, but I cannot boot to XP using GRUB. Everytime I try to boot XP it gives me the "error:no such device ####"

I ran the boot_info_script032.sh and here are my results>


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: vfat
Boot sector type: -
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xe030e030

Partition Boot Start End Size Id System

/dev/sda1 130,351,410 312,576,704 182,225,295 83 Linux
/dev/sda2 * 16,065 130,351,409 130,335,345 f W95 Ext d (LBA)
/dev/sda5 16,128 125,853,209 125,837,082 b W95 FAT32
/dev/sda6 125,853,273 130,351,409 4,498,137 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xe4651a0a

Partition Boot Start End Size Id System

/dev/sdb1 * 63 78,156,224 78,156,162 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 7de7e091-6d56-49ad-87e2-e24e810c2029 ext4
/dev/sda5 C159-9E07 vfat XP Backup
/dev/sda6 8ec1cde5-61cc-4fc1-a493-a5c6835bfb4b swap
/dev/sdb1 11DE0901D11F73E1 ntfs Larz

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sr0 /media/cdrom0 iso9660 (ro,nosuid,nodev,utf8,user=trish)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7de7e091-6d56-49ad-87e2-e24e810c2029
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
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7de7e091-6d56-49ad-87e2-e24e810c2029
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=7de7e091-6d56-49ad-87e2-e24e810c2029 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7de7e091-6d56-49ad-87e2-e24e810c2029
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=7de7e091-6d56-49ad-87e2-e24e810c2029 ro single
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7de7e091-6d56-49ad-87e2-e24e810c2029
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=7de7e091-6d56-49ad-87e2-e24e810c2029 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7de7e091-6d56-49ad-87e2-e24e810c2029
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=7de7e091-6d56-49ad-87e2-e24e810c2029 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sdb1)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set 11de0901d11f73e1
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=7de7e091-6d56-49ad-87e2-e24e810c2029 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=8ec1cde5-61cc-4fc1-a493-a5c6835bfb4b none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

=================== sda1: Location of files loaded by Grub: ===================


79.3GB: boot/grub/core.img
67.0GB: boot/grub/grub.cfg
67.3GB: boot/initrd.img-2.6.31-14-generic
67.5GB: boot/initrd.img-2.6.31-20-generic
67.2GB: boot/vmlinuz-2.6.31-14-generic
67.4GB: boot/vmlinuz-2.6.31-20-generic
67.5GB: initrd.img
67.3GB: initrd.img.old
67.4GB: vmlinuz
67.2GB: vmlinuz.old

================================ sdb1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn


UPDATE-

Okay so I made some good strides. I can now boot into XP. My bios setting had my primary slave turned off. Once I turned it on, I am able to boot into XP. Now my only problem is that when I boot into XP I always get some kind of error message. I will tool with that myself. This is an Ubuntu forum, not an XP forum.