PDA

View Full Version : [ubuntu] can't access win XP after i installing ubuntu 10.04



emanhossny
July 11th, 2011, 09:02 PM
Hello All,
I have win XP installed on my PC, then i formated partition to install ubuntu on it. after installing ubuntu on the formated partition, i can't access win xp. when i start the pc, the ubuntu is loaded without asking me which os to load.
I installed boot_info_script.sh & its results are as follows: (plz, can anyone help me in this problem)

Boot Info Script 0.60 from 17 May 2011


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

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 7 for /boot/grub.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

File system: vfat
Boot sector type: Windows XP: FAT32
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63. But according to the info from fdisk,
sda5 starts at sector 19535103. "63" and "2048" are
quite common values for the starting sector of a
logical partition and they only need to be fixed when
you want to boot Windows from a logical partition.
Operating System: Windows XP
Boot files:

sda6: __________________________________________________ ________________________

File system: vfat
Boot sector type: -
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda7: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 19,535,039 19,534,977 82 Linux swap / Solaris
/dev/sda2 19,535,101 156,296,384 136,761,284 f W95 Extended (LBA)
/dev/sda5 19,535,103 68,372,639 48,837,537 b W95 FAT32
/dev/sda6 68,372,703 117,210,239 48,837,537 b W95 FAT32
/dev/sda7 117,210,303 156,296,384 39,086,082 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 424e9c2e-3695-468f-896b-92b02e1a5da2 swap
/dev/sda5 9C3D-1020 vfat
/dev/sda6 71BF-6595 vfat DISK1_VOL3
/dev/sda7 91185524-0a0d-43c6-a6de-5d435b7b4955 ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda5 /media/9C3D-1020 vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sda6 /media/DISK1_VOL3 vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sda7 / ext4 (rw,errors=remount-ro)


=========================== 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 91185524-0a0d-43c6-a6de-5d435b7b4955
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 91185524-0a0d-43c6-a6de-5d435b7b4955
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-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 91185524-0a0d-43c6-a6de-5d435b7b4955
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=91185524-0a0d-43c6-a6de-5d435b7b4955 ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-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 91185524-0a0d-43c6-a6de-5d435b7b4955
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=91185524-0a0d-43c6-a6de-5d435b7b4955 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-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 91185524-0a0d-43c6-a6de-5d435b7b4955
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 91185524-0a0d-43c6-a6de-5d435b7b4955
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 ###
--------------------------------------------------------------------------------

=============================== 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=91185524-0a0d-43c6-a6de-5d435b7b4955 / ext4 errors=remount-ro 0 1
/dev/sda1 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

60.262366772 = 64.706223616 boot/grub/core.img 1
60.262370586 = 64.706227712 boot/grub/grub.cfg 1
56.312018871 = 60.464569856 boot/initrd.img-2.6.32-28-generic 2
60.243449688 = 64.685911552 boot/vmlinuz-2.6.32-28-generic 1
56.312018871 = 60.464569856 initrd.img 2
60.243449688 = 64.685911552 vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 6c 56 b7 63 53 b3 60 4c b0 54 3b ac 34 31 95 17 |lV.cS.`L.T;.41..|
00000010 2f 6f 27 48 61 49 69 7b 5f 80 99 68 8c a3 69 8f |/o'HaIi{_..h..i.|
00000020 a3 69 8e a3 68 8e a4 67 8c a2 62 8b a2 5f 88 a0 |.i..h..g..b.._..|
00000030 57 7f 99 4f 79 90 4e 72 8d 45 6a 87 3c 60 81 35 |W..Oy.Nr.Ej.<`.5|
00000040 5d 7d 3d 60 7b 45 61 79 45 60 78 44 5f 77 43 5d |]}=`{EayE`xD_wC]|
00000050 74 44 5d 71 42 58 6a 37 49 57 23 33 3a 10 1b 20 |tD]qBXj7IW#3:.. |
00000060 0c 17 1d 12 1a 24 1b 24 3b 1c 2f 5c 15 30 70 0f |.....$.$;./\.0p.|
00000070 2a 73 0f 27 72 0b 25 75 0c 27 75 0c 27 78 0d 28 |*s.'r.%u.'u.'x.(|
00000080 79 0d 28 7d 0e 29 7d 18 27 52 0e 0e 10 00 00 00 |y.(}.)}.'R......|
00000090 01 06 03 0d 11 0e 11 17 13 13 19 16 12 18 15 0c |................|
000000a0 11 0d 03 08 05 65 66 65 ff ff ff ff ff ff ff ff |.....efe........|
000000b0 ff ff ff ff ff ff ff 5c 5c 5d 00 80 00 00 80 00 |.......\\]......|
000000c0 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 |................|
000000d0 80 00 00 80 00 00 80 00 00 80 00 00 80 00 ff ff |................|
000000e0 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 |................|
000000f0 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 80 |................|
00000100 00 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 |................|
00000110 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 |................|
00000120 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 80 |................|
00000130 00 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 |................|
00000140 00 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 |................|
00000150 80 00 00 80 00 00 80 00 00 80 00 00 80 00 00 80 |................|
00000160 00 00 80 00 00 80 00 00 80 00 bd bd bd 6a 6a 6b |.............jjk|
00000170 9f 9f a1 ff ff ff ff ff ff ff ff ff e4 e4 e4 8d |................|
00000180 8c 84 4f 4f 43 4c 4d 3f 4c 4c 3e 4c 4c 3d 4a 4b |..OOCLM?LL>LL=JK|
00000190 3b 48 48 3b 48 48 3b 48 47 3b 47 48 3a 48 49 3a |;HH;HH;HG;GH:HI:|
000001a0 49 48 39 46 46 38 44 45 35 43 43 34 46 47 35 4e |IH9FF8DE5CC4FG5N|
000001b0 4e 3b 54 53 3f 5c 57 46 62 5d 47 64 61 4a 00 fe |N;TS?\WFb]GdaJ..|
000001c0 ff ff 0b fe ff ff 02 00 00 00 a1 33 e9 02 00 fe |...........3....|
000001d0 ff ff 05 fe ff ff a3 33 e9 02 e0 33 e9 02 00 00 |.......3...3....|
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

Quackers
July 11th, 2011, 10:25 PM
Where was Windows installed?
It looks like it may be in sda5 now, which is a logical partition. That may have worked previously with sda1 as a system reserved (boot) partition, but it appears that sda1 is now a swap partition so Windows won't now boot from a logical partition.
What partitioning have you done since (or just before) you installed 10.04?

emanhossny
July 12th, 2011, 07:10 PM
yes, my windows is installed on sda5 which is a logical partition. is it mean that it can't appear in the dual boot?
actually the partitions of my pc b4 i installing ubuntu are:
sda1 which is formated as nstf
sda5 which contains windows Xp
sda6 formated as fat32
sad7 formated as fat32, then b4 i install the ubuntu, i formated it as EXT4 & during the installation process i used sda1 for swaping.

Quackers
July 12th, 2011, 07:22 PM
I'm only guessing here but as you do not appear to have any Windows boot files I suspect that they may have been in sda1 originally. Windows won't normally boot from a logical partition unless its boot files are in a separate primary partition.
See what suggestions others can come up with during the day, but you should be able to access Windows through the Places menu in Ubuntu and you can then backup anything you need. It may be an option to re-install XP and start again.

oldfred
July 12th, 2011, 10:51 PM
Quacker & windows official Microtsoft suggestion is that windows boots only from a primary partition. If you were booting a copy of windows in sda5 you had to have the boot files in sda1-sda4 or a primary partition. And that is usually the best way.

But some old timers here, Herman and meierfra. (from bootscript) documented ways to boot windows from a logical if you want to. Not supported by Windows but it may work.

How to fix XP when the boot files are missing & info on windows in logical partitions- meierfra.
http://ubuntuforums.org/showthread.php?t=813628
missing boot files meieifra - post 10
http://ubuntuforums.org/showthread.php?t=1241394
Herman on booting XP in logical
http://ubuntuforums.org/showthread.php?p=4701367#post4701367
Vista Win7 missing boot files meieifra. More info on Herman's post
http://ubuntuforums.org/showthread.php?t=813628#4
meierfra. - How to fix XP when the boot files are missing
http://ubuntuforums.org/showthread.php?t=813628