PDA

View Full Version : [ubuntu] New 10.04 install on seperate Win XP disk.



liner
May 6th, 2010, 08:26 PM
Greetings,

I have a Win XP system that was working fine, with three volumes. I installed 10.04 on its own disk and have been happily using it for a few days. GRUB does show that I am able to select the XP volume as a boot option. I tired that today and got a blank screen with a flashing underline cursor.

Tried the Windows recovery console fixboot. No Go.

Tried testdisk and it shows all fine. Still no XP.

Ran the boot info script, here are the results. I am not able to interpret what to do next. Any help would be appreciated.



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
=> No boot loader is installed in the MBR of /dev/sdc

sda1: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 95
Boot files/dirs: /IO.SYS /MSDOS.SYS /COMMAND.COM

sdb2: __________________________________________________ _______________________

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 /wubildr.mbr
/ubuntu/winboot/wubildr.mbr /wubildr
/ubuntu/winboot/wubildr

sdc1: __________________________________________________ _______________________

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

sdc2: __________________________________________________ _______________________

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

sdc5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders, total 234375000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 234,372,284 234,372,222 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 63 80,324 80,262 de Dell Utility
/dev/sdb2 * 80,325 156,232,124 156,151,800 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 300.1 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 2,048 580,067,327 580,065,280 83 Linux
/dev/sdc2 580,069,374 586,072,063 6,002,690 5 Extended
/dev/sdc5 580,069,376 586,072,063 6,002,688 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 02DCA537DCA5263F ntfs Other Drive
/dev/sda: PTTYPE="dos"
/dev/sdb1 07D4-0114 vfat DellUtility
/dev/sdb2 36C4E0DEC4E0A0FB ntfs
/dev/sdb: PTTYPE="dos"
/dev/sdc1 c69324e3-11d6-4a2b-b08a-f564bb656b2f ext4
/dev/sdc2: PTTYPE="dos"
/dev/sdc5 36805982-4315-4621-8244-5f4de4d5bd8c swap
/dev/sdc: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sdc1 / ext4 (rw,errors=remount-ro)
/dev/sr0 /media/XPSP1a_ENG_PRO iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, iocharset=utf8,mode=0400,dmode=0500)
/dev/sda1 /media/Other Drive fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb2 /media/36C4E0DEC4E0A0FB fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


================================ sdb2/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
C:\wubildr.mbr = "Ubuntu"

=========================== sdc1/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 $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='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
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='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c69324e3-11d6-4a2b-b08a-f564bb656b2f ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c69324e3-11d6-4a2b-b08a-f564bb656b2f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c69324e3-11d6-4a2b-b08a-f564bb656b2f 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='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c69324e3-11d6-4a2b-b08a-f564bb656b2f 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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c69324e3-11d6-4a2b-b08a-f564bb656b2f
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb2)" {
insmod ntfs
set root='(hd1,2)'
search --no-floppy --fs-uuid --set 36c4e0dec4e0a0fb
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 ###

=============================== sdc1/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 nodev,noexec,nosuid 0 0
/dev/sdc1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
UUID=36805982-4315-4621-8244-5f4de4d5bd8c none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


146.1GB: boot/grub/core.img
152.7GB: boot/grub/grub.cfg
146.1GB: boot/initrd.img-2.6.32-21-generic
146.3GB: boot/initrd.img-2.6.32-22-generic
146.1GB: boot/vmlinuz-2.6.32-21-generic
146.2GB: boot/vmlinuz-2.6.32-22-generic
146.3GB: initrd.img
146.1GB: initrd.img.old
146.2GB: vmlinuz
146.1GB: vmlinuz.old

oldfred
May 7th, 2010, 12:04 AM
Do you boot ok into Ubuntu? I see grub in sda but you install in sdc. I have the same thing except mine is in sdc7 and mine works even though the script says same drive (sda). I so not know if it is script or grub2 issue.

I prefer to have the boot loader on the same drive as the Ubuntu install. Or install grub to sdc and set that to boot in BIOS.

You seem to have reordered drives. Boot.ini says it is drive 0 but you have it in drive 1. You can reorder drives so the second drive is first or do windows repairs so it knows its on sdb or in windows drive 1.
multi(0)disk(0)rdisk(0)partition(2

If you are in your install on sdc1:
reinstall from working (not liveCD) system - first find Ubuntu drive:
sudo fdisk -l
if it's "/dev/sda" then just run:
sudo grub-install /dev/sda
If that returns any errors run:
sudo grub-install --recheck /dev/sda
Then:
sudo update-grub

IF you move drives around you may also change the Ubuntu drive from sdc and then have to reinstall grub from the liveCD.

Install from LiveCD:
Find linux partition change sdc1 to partition found and drive sdc to drive found:
sudo fdisk -l
sudo mkdir /mnt/sdc1
sudo mount /dev/sdc1 /mnt
sudo grub-install --root-directory=/mnt /dev/sdc
sudo grub-install --recheck --root-directory=/mnt /dev/sdc

liner
May 10th, 2010, 01:43 AM
Thanks Oldfred, your suggestions worked and then something really bad :evil: happened to the XP installation (caused by anti-virus software) so I started over. One thing I left out was that the drive I was installing Ubuntu on was on the SATA bus. This may or may not have caused issues on my first try. Regardless, thanks, and I did remove one of the IDE drives and fiddled with the BIOS settings for the SATA bus.

After a complete reinstall of everything, all is well and Grub is working fine.