PDA

View Full Version : [ubuntu] XP / Ubuntu dual boot problem



vaughan65
October 4th, 2010, 10:58 PM
My PC originally loaded with Win XP SP3.

I then loaded Ubuntu 10.4, into a new partition.

On boot, I get a screen headed GNU GRUB version 1.98-1Ububtu7

This offers various Ubuntu choices,
two memory tests,
and the Win XP (on /dev/sda1)

When I choose Ubuntu - no problem.

When I choose the Win XP the system hangs - suggesting it isn't really on /dev/sda1,.

Any advice as to the way forward please?

andrewthomas
October 5th, 2010, 12:33 AM
Go to

http://bootinfoscript.sourceforge.net/

follow the instructions and post reply with results

vaughan65
October 5th, 2010, 08:50 AM
Here is the info you asked for:

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 #6 for /boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: Unknown
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 2048.
Operating System:
Boot files/dirs:

sda6: __________________________________________________ _______________________

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

sda7: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 175,027,002 175,026,940 7 HPFS/NTFS
/dev/sda2 175,030,270 488,396,799 313,366,530 5 Extended
/dev/sda5 257,253,376 488,396,799 231,143,424 bc Acronis BackUp
/dev/sda6 175,030,272 253,788,159 78,757,888 83 Linux
/dev/sda7 253,790,208 257,249,279 3,459,072 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 D63051F73051DED5 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 AB7B-6809 vfat ACRONIS SZ
/dev/sda6 516bfe9c-ab30-40d7-b992-e56135a575fa ext4
/dev/sda7 2119c688-b3aa-4944-a190-5fcd527b5621 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda6 / ext4 (rw,errors=remount-ro)


================================ sda1/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 Professional" /fastdetect /NoExecute=OptIn

=========================== sda6/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='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa 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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa 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='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d63051f73051ded5
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 ###

=============================== sda6/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
# / was on /dev/sda6 during installation
UUID=516bfe9c-ab30-40d7-b992-e56135a575fa / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=2119c688-b3aa-4944-a190-5fcd527b5621 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


119.8GB: boot/grub/core.img
126.4GB: boot/grub/grub.cfg
119.8GB: boot/initrd.img-2.6.32-21-generic
119.9GB: boot/initrd.img-2.6.32-24-generic
89.7GB: boot/vmlinuz-2.6.32-21-generic
119.9GB: boot/vmlinuz-2.6.32-24-generic
119.9GB: initrd.img
119.8GB: initrd.img.old
119.9GB: vmlinuz
89.7GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 7d 6b cb ae 4b 04 f2 a2 8f 04 64 96 f6 aa 8b 37 |}k..K.....d....7|
00000010 a6 cc 0b 98 21 94 bb e3 6b 30 03 8e 80 8e ff 00 |....!...k0......|
00000020 53 4d 8d 9e 14 51 2b 0c 00 4e 4e 71 81 d6 b3 9b |SM...Q+..NNq....|
00000030 36 7b 32 cd 8c 96 9a a6 7e c3 77 6f 2e 08 0c c8 |6{2.....~.wo....|
00000040 72 a1 8f a9 ed 55 d4 3c b2 c9 18 03 31 12 18 1f |r....U.<....1...|
00000050 d4 d6 17 d4 c9 b2 6f b2 86 0a e3 07 1f 51 9a e8 |......o......Q..|
00000060 ec ac ed b7 c0 41 65 2e 53 1c 90 43 71 ce 7f 9d |.....Ae.S..Cq...|
00000070 75 65 cf de 65 42 5b 9f 6e fc 32 d2 a4 9a db 4e |ue..eB[.n.2....N|
00000080 89 22 8e e6 e8 b0 70 c0 87 de 87 0a 07 04 f4 e7 |."....p.........|
00000090 a7 35 fd 91 7f c1 26 bc 3d 71 a0 f8 65 d5 63 56 |.5....&.=q..e.cV|
000000a0 59 44 46 79 14 37 19 53 85 72 7b 93 d0 d6 d8 89 |YDFy.7.S.r{.....|
000000b0 3e e6 f8 18 f3 4b 73 57 fe 0a 35 e3 cb ed 3e 24 |>....KsW..5...>$|
000000c0 b3 d0 6e 22 8a 6c 47 16 e2 59 87 9e b9 6e 48 e8 |..n".lG..Y...nH.|
000000d0 30 39 af ca 1f 86 bf 12 3e 20 69 5e 27 87 51 d3 |09......> i^'.Q.|
000000e0 b5 08 65 69 e4 45 95 58 34 7b 97 b8 07 27 f0 ae |..ei.E.X4{...'..|
000000f0 0a f5 2f 27 a9 d9 2a 27 f4 2b fb 1f 78 d3 5a d6 |../'..*'.+..x.Z.|
00000100 e3 b7 b9 d6 ad d8 33 15 ea c5 b6 0f 42 7b 93 5f |......3.....B{._|
00000110 a6 50 36 e5 07 8f ad 75 e0 5d d6 e7 16 64 94 5a |.P6....u.]...d.Z|
00000120 5d c4 2d 87 ed eb 9a 59 08 3d 3a e2 bb e0 f4 67 |].-....Y.=:....g|
00000130 9b 2d d9 59 90 13 96 eb d4 d4 3b 3c ce 16 a4 43 |.-.Y......;<...C|
00000140 e1 8c aa fc dd 45 3c 6e 04 6d 02 80 2d 46 b9 03 |.....E<n.m..-F..|
00000150 39 f7 ab 71 01 d3 b8 c7 5a 0b 8b ba 2d 91 f2 f5 |9..q....Z...-...|
00000160 fb bc d4 5b 9b 03 9e 95 51 45 d3 ea 4e 0e 00 39 |...[....QE..N..9|
00000170 aa 9a 85 e2 db c2 64 c8 3b 01 63 ec 07 24 d1 6f |......d.;.c..$.o|
00000180 32 8f c9 ef db 0f fe 0a 1d e1 cf 85 76 b7 5e 06 |2...........v.^.|
00000190 f0 29 6b dd 66 fe 39 10 3c 61 9b 63 12 54 60 8e |.)k.f.9.<a.c.T`.|
000001a0 9c f7 af 93 bf 66 2f d8 d3 e2 0f ed 09 e2 64 f8 |.....f/.......d.|
000001b0 ab f1 bb 50 bd 92 19 64 69 55 ee 8c ae 04 00 1a |...P...diU......|
000001c0 fb ff bc 5a ca ff 02 a0 e6 04 00 f8 c6 0d 00 fe |...Z............|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 c0 b1 04 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

Mark Phelps
October 5th, 2010, 06:12 PM
Hate to say this, and in all fairness, it is a guess ... but I see that you have Acronis Security Zone installed, and from the little I recall, that modified the MBR as a byproduct of its installation.

When you installed Ubuntu, IT too, modified the MBR.

IF that modification wiped out or, in some way, corrupted the changes that Acronis SZ did, you may no longer be able to boot XP.

IF you have an XP installation CD, you could boot from that, replace the current MBR with an XP-based MBR, and while that is likely to then allow you to boot XP, it will probably render Acronis SZ unusable.

But, I don't personally use Acronis SZ, so I am guessing at what happened here.

vaughan65
October 8th, 2010, 10:44 AM
The Acronis data was out of date, so I deleted its partition.

I then reinstalled Win XP, which then appeared to be the only boot option - no grub etc, which seemed logical.

Then from WinXP, I reinstalled Ubuntu.

I am now back to square One - except that I have two Ubuntu choices on the grub window, as well as the WinXP choice. Unfortunately the WinXP choice hangs.

Would be grateful for more help, please?

Vaughan

Here is the new RESULTS data:

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 #7 for /boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

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

sda7: __________________________________________________ _______________________

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

sda8: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 137,559,970 137,559,908 7 HPFS/NTFS
/dev/sda2 175,030,270 488,396,799 313,366,530 5 Extended
/dev/sda5 175,030,272 253,788,159 78,757,888 83 Linux
/dev/sda6 253,790,208 257,249,279 3,459,072 82 Linux swap / Solaris
/dev/sda7 257,251,328 478,914,559 221,663,232 83 Linux
/dev/sda8 478,916,608 488,396,799 9,480,192 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 D63051F73051DED5 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 516bfe9c-ab30-40d7-b992-e56135a575fa ext4
/dev/sda6 2119c688-b3aa-4944-a190-5fcd527b5621 swap
/dev/sda7 e1914285-000e-4e60-9fd0-133c8b8da83b ext4
/dev/sda8 63b04d9a-f5d2-4a31-b5bf-bd27133d8c34 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro)


================================ sda1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINOCT 6
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINOCT6="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn

=========================== sda5/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='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa 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,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa 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='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
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/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d63051f73051ded5
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 ###

=============================== sda5/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
# / was on /dev/sda6 during installation
UUID=516bfe9c-ab30-40d7-b992-e56135a575fa / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=2119c688-b3aa-4944-a190-5fcd527b5621 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


119.8GB: boot/grub/core.img
126.4GB: boot/grub/grub.cfg
119.8GB: boot/initrd.img-2.6.32-21-generic
119.9GB: boot/initrd.img-2.6.32-24-generic
89.7GB: boot/vmlinuz-2.6.32-21-generic
119.9GB: boot/vmlinuz-2.6.32-24-generic
119.9GB: initrd.img
119.8GB: initrd.img.old
119.9GB: vmlinuz
89.7GB: vmlinuz.old

=========================== sda7/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='(hd0,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
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,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
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-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=e1914285-000e-4e60-9fd0-133c8b8da83b ro quiet splash
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
echo 'Loading Linux 2.6.32-25-generic ...'
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=e1914285-000e-4e60-9fd0-133c8b8da83b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-25-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,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e1914285-000e-4e60-9fd0-133c8b8da83b 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,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=e1914285-000e-4e60-9fd0-133c8b8da83b 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='(hd0,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set e1914285-000e-4e60-9fd0-133c8b8da83b
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/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d63051f73051ded5
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro single
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda5)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 516bfe9c-ab30-40d7-b992-e56135a575fa
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=516bfe9c-ab30-40d7-b992-e56135a575fa ro single
initrd /boot/initrd.img-2.6.32-21-generic
}
### 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 ###

=============================== sda7/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
# / was on /dev/sda7 during installation
UUID=e1914285-000e-4e60-9fd0-133c8b8da83b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=63b04d9a-f5d2-4a31-b5bf-bd27133d8c34 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


232.7GB: boot/grub/core.img
134.4GB: boot/grub/grub.cfg
132.0GB: boot/initrd.img-2.6.32-21-generic
232.8GB: boot/initrd.img-2.6.32-25-generic
232.7GB: boot/vmlinuz-2.6.32-21-generic
232.7GB: boot/vmlinuz-2.6.32-25-generic
232.8GB: initrd.img
132.0GB: initrd.img.old
232.7GB: vmlinuz
232.7GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 7d 6b cb ae 4b 04 f2 a2 8f 04 64 96 f6 aa 8b 37 |}k..K.....d....7|
00000010 a6 cc 0b 98 21 94 bb e3 6b 30 03 8e 80 8e ff 00 |....!...k0......|
00000020 53 4d 8d 9e 14 51 2b 0c 00 4e 4e 71 81 d6 b3 9b |SM...Q+..NNq....|
00000030 36 7b 32 cd 8c 96 9a a6 7e c3 77 6f 2e 08 0c c8 |6{2.....~.wo....|
00000040 72 a1 8f a9 ed 55 d4 3c b2 c9 18 03 31 12 18 1f |r....U.<....1...|
00000050 d4 d6 17 d4 c9 b2 6f b2 86 0a e3 07 1f 51 9a e8 |......o......Q..|
00000060 ec ac ed b7 c0 41 65 2e 53 1c 90 43 71 ce 7f 9d |.....Ae.S..Cq...|
00000070 75 65 cf de 65 42 5b 9f 6e fc 32 d2 a4 9a db 4e |ue..eB[.n.2....N|
00000080 89 22 8e e6 e8 b0 70 c0 87 de 87 0a 07 04 f4 e7 |."....p.........|
00000090 a7 35 fd 91 7f c1 26 bc 3d 71 a0 f8 65 d5 63 56 |.5....&.=q..e.cV|
000000a0 59 44 46 79 14 37 19 53 85 72 7b 93 d0 d6 d8 89 |YDFy.7.S.r{.....|
000000b0 3e e6 f8 18 f3 4b 73 57 fe 0a 35 e3 cb ed 3e 24 |>....KsW..5...>$|
000000c0 b3 d0 6e 22 8a 6c 47 16 e2 59 87 9e b9 6e 48 e8 |..n".lG..Y...nH.|
000000d0 30 39 af ca 1f 86 bf 12 3e 20 69 5e 27 87 51 d3 |09......> i^'.Q.|
000000e0 b5 08 65 69 e4 45 95 58 34 7b 97 b8 07 27 f0 ae |..ei.E.X4{...'..|
000000f0 0a f5 2f 27 a9 d9 2a 27 f4 2b fb 1f 78 d3 5a d6 |../'..*'.+..x.Z.|
00000100 e3 b7 b9 d6 ad d8 33 15 ea c5 b6 0f 42 7b 93 5f |......3.....B{._|
00000110 a6 50 36 e5 07 8f ad 75 e0 5d d6 e7 16 64 94 5a |.P6....u.]...d.Z|
00000120 5d c4 2d 87 ed eb 9a 59 08 3d 3a e2 bb e0 f4 67 |].-....Y.=:....g|
00000130 9b 2d d9 59 90 13 96 eb d4 d4 3b 3c ce 16 a4 43 |.-.Y......;<...C|
00000140 e1 8c aa fc dd 45 3c 6e 04 6d 02 80 2d 46 b9 03 |.....E<n.m..-F..|
00000150 39 f7 ab 71 01 d3 b8 c7 5a 0b 8b ba 2d 91 f2 f5 |9..q....Z...-...|
00000160 fb bc d4 5b 9b 03 9e 95 51 45 d3 ea 4e 0e 00 39 |...[....QE..N..9|
00000170 aa 9a 85 e2 db c2 64 c8 3b 01 63 ec 07 24 d1 6f |......d.;.c..$.o|
00000180 32 8f c9 ef db 0f fe 0a 1d e1 cf 85 76 b7 5e 06 |2...........v.^.|
00000190 f0 29 6b dd 66 fe 39 10 3c 61 9b 63 12 54 60 8e |.)k.f.9.<a.c.T`.|
000001a0 9c f7 af 93 bf 66 2f d8 d3 e2 0f ed 09 e2 64 f8 |.....f/.......d.|
000001b0 ab f1 bb 50 bd 92 19 64 69 55 ee 8c ae 04 00 21 |...P...diU.....!|
000001c0 d3 ff 83 94 df ff 02 00 00 00 00 c0 b1 04 00 fe |................|
000001d0 ff ff 05 fe ff ff 02 c0 b1 04 00 d0 34 00 00 00 |............4...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

Mark Phelps
October 8th, 2010, 01:42 PM
Did you try booting into XP before you reinstalled Ubuntu?

Sorry, don't see anything wrong with the GRUB entries for XP.

Did notice that you have two sets of Ubuntu installed -- in two sets of partitions. Did you intend to do that?

vaughan65
October 8th, 2010, 04:16 PM
Yes, I did try booting into XP before installing Ubuntu, and that was OK.

I didn't intend to have two copies of Ubuntu - not at all sure how that happened. They both work OK though.

However the Grub window has about a dozen entries to choose from - too many - how would I edit that? I am quite happy to delete one of the Ubuntu partitions if there is a safe way to do that.

Meanwhile I still don't have an XP I can log into :-(

Vaughan

vaughan65
October 8th, 2010, 10:50 PM
Maybe this photo of the Grub window will help?

oldfred
October 9th, 2010, 05:09 AM
WE can try repairing the XP partition:

Description of the Windows XP Recovery Console for advanced users
http://support.microsoft.com/kb/314058/
To run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM, follow these steps:
1. Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer.

Click to select any options that are required to start the computer from the CD-ROM drive if you are prompted.
2. When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
3. If you have a dual-boot or multiple-boot computer, select the installation that you must access from the Recovery Console.
4. When you are prompted, type the Administrator password. If the administrator password is blank, just press ENTER.
5. At the command prompt, type this commands one at a time.

FIXMBR C: <-- Do not run if you still want grub in the MBR, if you do run you will have to reinstall grub to the MBR.
FIXBOOT C:
COPY [CDDRIVE]:\I386\NTLDR C:\
COPY [CDDRIVE]:\I386\NTDETECT.COM C:\
or:
Can you boot into Ubuntu? If so you can mount your Windows drive and navigate to C:\windows\ServicePackFiles\i386 folder and copy
ntdetect.com and ntldr to root of C:\.

BOOTCFG /rebuild
http://support.microsoft.com/kb/291980
http://pcsupport.about.com/od/fixtheproblem/ht/repairbootini.htm

vaughan65
October 9th, 2010, 11:00 PM
Thanks oldfred,
Sorry to report that it (repairing the XP partition) made absolutely no difference.
I can boot into any of the Ubuntu choices from the grub menu, but the XP just hangs.
What next I wonder?

oldfred
October 10th, 2010, 10:21 PM
Your first boot.ini which seems more typical:

[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="Micro soft Windows XP Professional" /fastdetect /NoExecute=OptIn

Your newer boot.ini

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINOCT 6
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINOCT6="Micro soft Windows XP Professional" /fastdetect /NoExecute=OptIn

Did windows install to \WINOCT6 rather than the \windows. Did you run the bootcfg to rebuild boot.ini?

vaughan65
October 11th, 2010, 08:49 AM
When I reinstalled XP, I placed it in WINOCT6 so as to avoid deleting stuff which is on WINDOWS. Prior to reinstalling UBUNTU, I was able to boot into either of these installations.

I did run bootcfg to rebuild the boot.ini.

vaughan65
October 12th, 2010, 10:11 AM
file:///tmp/moz-screenshot.pngI used "testdisk" - here is the result which seems to contain significant info...

Vaughan