PDA

View Full Version : [ubuntu] Multiboot problem win7 winxp ubuntu 10.10 beta



m_zeid
September 17th, 2010, 03:39 PM
Hallo there):P,
this is my first post here at these forums.

I have used Ubuntu 8.x before side by side with win XP with absolutely no problems, today I have a windows 7 working great, but it was not enough for me so I've installed winXP on another NTFS partition, and then installed the Ubuntu 8, but the problem is that grub didn't detect windows 7 only detected Ubuntu and win xp ( and win XP under the name "windows Vista" !!).
I did rename the win XP thing, not big thing;), but there still the main problem of windows seven, it's not detected yet.
So what I have done is downloading Ubuntu 10.10 beta and repeated the same thing after deleting the previous partition that Ubuntu 8 was on and created new one and used it.
But the problem stays the same.

I have 80 GB - all one partition - windows 7
and 1 TB - 359 GB -storage
-26 GB - windows XP
-26 GB - Ubuntu 10.10
- ~4 or 5 GB - swap
-443 GB - storage

I know it's not organized enough but I couldn't do better using win7 storage management tool

So what should I do to make windows 7 detected by grab and bootable, and I really don't want to format any drive, specially win7.

Any help from you guys is appreciated :D.

Rubi1200
September 17th, 2010, 03:45 PM
Have you tried running
sudo update-grub in Ubuntu?

Also, please post the contents of /boot/grub/grub.cfg (you will have to open this as root, but do NOT edit the file. I just want to see the contents; copy and paste the contents here).

m_zeid
September 17th, 2010, 04:43 PM
thanks for the reply,
yes I have tried that and it gives me :

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-19-generic
Found initrd image: /boot/initrd.img-2.6.35-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Found Windows 7 (loader) on /dev/sda1
done


which it is the same

---------
contents of grub.cfg :


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
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.35-19-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=f8e6e36f-5059-40d4-a806-5cf2db6c67a5 ro quiet splash
initrd /boot/initrd.img-2.6.35-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
echo 'Loading Linux 2.6.35-19-generic ...'
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=f8e6e36f-5059-40d4-a806-5cf2db6c67a5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-19-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set f8728fed728faec6
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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

m_zeid
September 17th, 2010, 04:49 PM
btw, with ubuntu 8 when i try to edit grub menu list with this command "gksudo gedit /boot/grub/menu.lst" it used to work perfectly , but now the file open but it looks like it's empty !!

Rubi1200
September 17th, 2010, 05:04 PM
Have you tried booting into Windows after running the command I gave you?

The reason /boot/grub/menu.lst comes back empty is because that was for older versions of GRUB. From version 9.10 onwards, Ubuntu uses GRUB2 which stores its files in a different way.

Back to the point, your cfg file looks okay and it seems as if you should be able to boot into Windows.

Give it a try. If it does not work, we can discuss other options.

m_zeid
September 17th, 2010, 05:27 PM
Have you tried booting into Windows after running the command I gave you?
yes, but it stills the same story :(


The reason /boot/grub/menu.lst comes back empty is because that was for older versions of GRUB. From version 9.10 onwards, Ubuntu uses GRUB2 which stores its files in a different way.


Ok :) it's good to know, 10x for the info


Back to the point, your cfg file looks okay and it seems as if you should be able to boot into Windows.


I tried to boot to windows, there is an option wich is "Windows 7 (loader)" only and there is no one for XP, but when I choose this one XP whose boots up :S

is it possible that win7 boot files corrupt ?

Rubi1200
September 17th, 2010, 05:34 PM
Ok, please boot the computer with the Ubuntu CD and choose the option to try in live mode.

Then post the results of the bootscript linked to at the bottom of my post.

If there is a problem with the Windows boot file it should show in the results.

m_zeid
September 17th, 2010, 06:10 PM
Ok, please boot the computer with the Ubuntu CD and choose the option to try in live mode.

Then post the results of the bootscript linked to at the bottom of my post.

If there is a problem with the Windows boot file it should show in the results.

bro first of all your effort is extremely appreciated thats a sure thing.

secondly, the Ubuntu cd is not a live cd , I've installed Ubuntu by text options with old blue background :S
anyway there is no live cd or "try Ubuntu without changing your system". oh is this normal ?

I still have the ubuntu 8 with its old grub, can I use it ?
or can I run the script with the installed OS ?

Rubi1200
September 17th, 2010, 06:13 PM
You can run the script in the current Ubuntu also or use the older CD; all we need right now are the results.

Thanks.

m_zeid
September 17th, 2010, 06:16 PM
I did it with the installed OS, here is the 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 #6 for (,msdos6)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

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

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:

sdb3: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sdb6: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu maverick (development
branch)
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb4: __________________________________________________ _______________________

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

=========================== 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 End Size Id System

/dev/sda1 * 63 156,280,319 156,280,257 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 752,841,916 752,841,854 7 HPFS/NTFS
/dev/sdb2 752,842,752 804,042,751 51,200,000 7 HPFS/NTFS
/dev/sdb3 804,044,798 865,003,859 60,959,062 f W95 Ext d (LBA)
/dev/sdb5 855,252,468 865,003,859 9,751,392 82 Linux swap / Solaris
/dev/sdb6 804,044,800 855,250,943 51,206,144 83 Linux
/dev/sdb4 1,023,999,165 1,953,520,064 929,520,900 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/mapper/cryptswap1 a2451645-6146-4666-a503-5264e4565a7a swap
/dev/sda1 F8728FED728FAEC6 ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 6C443D38443D05FC ntfs New Volume
/dev/sdb2 B8D41F1DD41EDD86 ntfs
/dev/sdb3: PTTYPE="dos"
/dev/sdb4 90B4080EB407F58E ntfs New Volume
/dev/sdb6 f8e6e36f-5059-40d4-a806-5cf2db6c67a5 ext4 ubuntu
/dev/sdb: PTTYPE="dos"

=============================== "ls -R /dev/mapper/" output: ===============================
/dev/mapper:
control
cryptswap1
cryptswap1_unformatted

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

Device Mount_Point Type Options

/dev/sdb6 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sr2 /media/Ubuntu 10.10 i386 iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, iocharset=utf8,mode=0400,dmode=0500)
/dev/sdb4 /media/New Volume fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


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

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(1)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(1)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

=========================== sdb6/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
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.35-19-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=f8e6e36f-5059-40d4-a806-5cf2db6c67a5 ro quiet splash
initrd /boot/initrd.img-2.6.35-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
echo 'Loading Linux 2.6.35-19-generic ...'
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=f8e6e36f-5059-40d4-a806-5cf2db6c67a5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-19-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos6)'
search --no-floppy --fs-uuid --set f8e6e36f-5059-40d4-a806-5cf2db6c67a5
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set f8728fed728faec6
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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sdb6/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/sdb6 during installation
UUID=f8e6e36f-5059-40d4-a806-5cf2db6c67a5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
#UUID=b1bfc901-ebd9-4db6-81f6-486ec2aef3fb none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0

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


418.3GB: boot/grub/core.img
435.6GB: boot/grub/grub.cfg
412.4GB: boot/initrd.img-2.6.35-19-generic
418.2GB: boot/vmlinuz-2.6.35-19-generic
412.4GB: initrd.img
418.2GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sdb3

00000000 06 41 23 ce 01 b5 1b cd 6d 93 58 e4 9a f2 8f 41 |.A#.....m.X....A|
00000010 51 2c 63 ab 9e 46 43 9d 7c 01 f9 55 6c 21 9e f1 |Q,c..FC.|..Ul!..|
00000020 da 95 60 27 79 6b eb b1 3f e7 7b ce 78 51 04 85 |..`'yk..?.{.xQ..|
00000030 45 30 b9 55 57 44 4e 8d 29 ed f4 bc bd 73 2f 70 |E0.UWDN.)....s/p|
00000040 14 c4 16 1a 96 cd bc a4 60 15 6c ad 41 d1 17 ff |........`.l.A...|
00000050 7c 89 8c 27 64 fc f0 e9 c0 51 07 a8 45 fe a3 ea ||..'d....Q..E...|
00000060 3d 65 b1 7c 33 63 82 18 31 8f ce 1f 70 53 d5 a9 |=e.|3c..1...pS..|
00000070 fd 65 82 7a 3b 06 27 79 ca 7c e2 2f e3 a5 e9 f5 |.e.z;.'y.|./....|
00000080 66 9e 94 23 f4 61 9a bc 86 de 98 6f 3e 4f 14 52 |f..#.a.....o>O.R|
00000090 77 1f 04 2f 99 44 4f 7f 34 dd f1 ae 3c 0d 8a 98 |w../.DO.4...<...|
000000a0 03 80 7b dc 50 3e f4 13 21 89 15 7a d8 d3 5e c8 |..{.P>..!..z..^.|
000000b0 50 e2 66 33 c6 da 57 b9 57 13 14 db 59 4f 81 b8 |P.f3..W.W...YO..|
000000c0 a6 18 49 ae 11 41 64 1a 8d 30 94 e0 a3 20 14 14 |..I..Ad..0... ..|
000000d0 60 4c 0b 06 54 f3 f1 fa 78 46 08 c0 95 de 3a be |`L..T...xF....:.|
000000e0 c3 33 ef 3e 33 0a 03 06 69 17 b0 e0 ec 65 4f 85 |.3.>3...i....eO.|
000000f0 30 4c 18 21 c0 0d 12 55 33 a4 8a c7 e3 fa 25 dd |0L.!...U3.....%.|
00000100 2f 1a 2b 17 df 9e 3c 68 0b 30 48 38 1a 08 18 40 |/.+...<h.0H8...@|
00000110 72 e2 f2 fa 5f df 97 dd 7f 55 d8 3a 2f b0 09 a8 |r..._....U.:/...|
00000120 18 0f be ab 4d 7e 06 61 4c 16 06 1f 52 e0 52 84 |....M~.aL...R.R.|
00000130 2f a9 f7 76 0a 4b 95 1d 2e 85 d8 23 53 20 cc e2 |/..v.K.....#S ..|
00000140 99 97 c4 c6 73 87 04 61 d8 43 08 14 78 af 57 38 |....s..a.C..x.W8|
00000150 24 97 c1 da 3a e1 f8 95 4b 1e 10 cb e8 ed 11 fa |$...:...K.......|
00000160 4e 24 de 19 9b 57 e1 d7 bb 21 3a bd fa 69 b3 27 |N$...W...!:..i.'|
00000170 be b5 1c 2e d3 5d e8 7f a7 1a a7 85 5d ef 3e e7 |.....]......].>.|
00000180 36 e9 be fb b2 58 77 bd 3d 34 31 59 f3 c9 98 34 |6....Xw.=41Y...4|
00000190 79 7d a0 a2 f3 95 2b 06 35 14 9a 5c c7 fa fd 3a |y}....+.5..\...:|
000001a0 33 0c 0e 01 60 c0 16 ad e5 ff 87 88 51 96 bd ef |3...`.......Q...|
000001b0 02 9b c3 94 24 3d 24 12 e3 ee 59 0f 98 56 00 fe |....$=$...Y..V..|
000001c0 ff ff 82 fe ff ff f6 5d 0d 03 60 cb 94 00 00 fe |.......]..`.....|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 58 0d 03 00 00 |...........X....|
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

m_zeid
September 17th, 2010, 06:22 PM
if "a" means the first hdd and "b" means the second one, then I think taht XP is on sdb2 and seven is on sda1

Rubi1200
September 17th, 2010, 06:34 PM
There are a few things here that I am unsure about, but you seem to have somehow deleted (?) the swap partition on sdb5.

I will get back to this.

m_zeid
September 17th, 2010, 06:41 PM
mmm no I didn't,

I can simply open system monitor and I can see that its status 0% usage of 4.6 GB

OK you take your time.

Rubi1200
September 17th, 2010, 08:09 PM
Have you tried changing the boot order in BIOS to see if that affects anything?

wilee-nilee
September 17th, 2010, 09:05 PM
Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for (,msdos6)/boot/grub.

As of now grub is looking for partition 6 in sda there isn't one. Grub generally is best when placed in the MBR of the HD that Ubuntu or Linux is in.

From a live Lucid, Karmic, or Maverick cd. Here is the commands link.
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD


sudo mount /dev/sdb6 /mnt
then

sudo grub-install --root-directory=/mnt/ /dev/sdb

So this installs grub to sdb so put that HD first to be read in bios. If you want to reload the MS bootloader to sda so that if you wanted you could just boot that HD with a key prompt or having it first in bios, let us know

I am assuming this will all work I see GRLDR reference. This is a standard way of loading grub and mounting the right stuff. If you can take a look at the link it defaults to the commands.

Edit; Just run

sudo update-grub when you boot back into Ubuntu after the commands.

wilee-nilee
September 17th, 2010, 09:26 PM
Additionally I am seeing the boot ini of XP along with the W7 boot set in sda1 but none of the other XP partitions show the associated files.

Windows will if XP then W7 installed will show a MS boot with a choice of either OS. If you install XP after it wont automatically include the W7 boot.

drs305
September 17th, 2010, 10:31 PM
m_zeid, welcome to the Ubuntu forums!

Ubuntu is running, correct? And XP as well, except it's misidentified in the menu?

I think that the boot info script is a bit misleading in identifying sda and sdb. Everything except the bootinfo script header identifies Ubuntu on sdb. If Ubuntu is booting, then G2 is installed on the same drive as the Ubuntu install. In the results, the script shows Ubuntu mounted on sdb6.

I don't know what might cause the script to reverse the header data of the RESULTS.txt. Personally, I'd leave things alone for now as Ubuntu is working normally.

If you want to explore, and possibly break things, you might look at /boot/grub/devicemap (if it exists) to see if hd0 and hd1 are identified correctly. If there isn't a devicemap, you can create one with

sudo grub-mkdevicemap
sudo update-grub

and then run the script again while running a normal install.

The boot issue appears to be a Windows issue. I'm not familiar enough with Windows to know exactly how XP and W7 interact, so I can't offer much about how to get them both to live peacefully together. As wilee-nilee observed, there is only one set of Windows boot files. I don't know if a second set is missing or if the two just aren't melded correctly. There should be some threads dealing with this by now.

wilee-nilee
September 17th, 2010, 10:40 PM
Thanks drs305, I had noticed the inconsistencies in the script, your help is always appreciated.

m_zeid
September 18th, 2010, 06:08 PM
Have you tried changing the boot order in BIOS to see if that affects anything?

sorry for the late reply,

yes I did, but didn't fix anything

Rubi1200
September 18th, 2010, 06:20 PM
sorry for the late reply,

yes I did, but didn't fix anything
Hi,
please take a look at the posts above by wilee-nilee and drs305.

m_zeid
September 18th, 2010, 06:21 PM
Oh man , thnx for the replies,
I will read them and try them immediately

but before I want to tell you I have did so I booted successfully into win7 but lost winXP

I have noticed that I can view boot.ini file in win7 drive so I tried editing it to add winXP, and VIOLA!! it changed as I did to it, so what is now obvious that grub2 was detecting the boot loader from win7 and that was redirecting me in someway into XP and grub2 is not detecting winXP, unfortunately my editing didn't work well so I tried using windows 7 dvd to fix windows automatically, by that now when I select windows 7 from grub win7 opens and not XP. as for now the SCARY problem was gone coz win7 whats matter coz of the softwares installed in it :D, now for the xp thing its just for education purposes.

now I will try what you have said

btw, sorry for the bad english :(

Rubi1200
September 18th, 2010, 06:33 PM
Good luck and let us know if you need more help.

By the way, your English is good; we have not had to ask you to explain yourself :)

m_zeid
September 18th, 2010, 06:44 PM
Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for (,msdos6)/boot/grub.

As of now grub is looking for partition 6 in sda there isn't one. Grub generally is best when placed in the MBR of the HD that Ubuntu or Linux is in.

From a live Lucid, Karmic, or Maverick cd. Here is the commands link.
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD


sudo mount /dev/sdb6 /mntthen

sudo grub-install --root-directory=/mnt/ /dev/sdbSo this installs grub to sdb so put that HD first to be read in bios. If you want to reload the MS bootloader to sda so that if you wanted you could just boot that HD with a key prompt or having it first in bios, let us know

I am assuming this will all work I see GRLDR reference. This is a standard way of loading grub and mounting the right stuff. If you can take a look at the link it defaults to the commands.

Edit; Just run

sudo update-grub when you boot back into Ubuntu after the commands.

thanks I will try that after trying another thing that I'm willing to do , not related to Ubuntu( formating and reinstalling winXP and THEN fixing win7), coz as how microsoft thinks we must install newer versions after the older ones pifffffffffffs !!


Additionally I am seeing the boot ini of XP along with the W7 boot set in sda1 but none of the other XP partitions show the associated files.

Windows will if XP then W7 installed will show a MS boot with a choice of either OS. If you install XP after it wont automatically include the W7 boot.

maybe what I want to do can fix this, maybe there is a problem with winxp installation or in the cd< I will try another cd.


m_zeid, welcome to the Ubuntu forums!

Ubuntu is running, correct? And XP as well, except it's misidentified in the menu?

I think that the boot info script is a bit misleading in identifying sda and sdb. Everything except the bootinfo script header identifies Ubuntu on sdb. If Ubuntu is booting, then G2 is installed on the same drive as the Ubuntu install. In the results, the script shows Ubuntu mounted on sdb6.

I don't know what might cause the script to reverse the header data of the RESULTS.txt. Personally, I'd leave things alone for now as Ubuntu is working normally.

If you want to explore, and possibly break things, you might look at /boot/grub/devicemap (if it exists) to see if hd0 and hd1 are identified correctly. If there isn't a devicemap, you can create one with

sudo grub-mkdevicemap
sudo update-grub
and then run the script again while running a normal install.

The boot issue appears to be a Windows issue. I'm not familiar enough with Windows to know exactly how XP and W7 interact, so I can't offer much about how to get them both to live peacefully together. As wilee-nilee observed, there is only one set of Windows boot files. I don't know if a second set is missing or if the two just aren't melded correctly. There should be some threads dealing with this by now.

Thanks for the welcome ;)
I can assure for you that it is installed in MBR as the installation instructions recommended
As I can see that the problem is soooo odd, and maybe I can't fis it manually, so I will reinstall XP then fixing seven and finally fixing Ubuntu, can I fix Ubuntu with the option "rescue existing system" something like that ??


Thanks drs305, I had noticed the inconsistencies in the script, your help is always appreciated.

Thanks for you, ALL of you Rubi1200,wilee-nilee, and drs305.

m_zeid
September 18th, 2010, 06:46 PM
Good luck and let us know if you need more help.

By the way, your English is good; we have not had to ask you to explain yourself :)
:P:P, well thats good news :P :guitar:

Rubi1200
September 18th, 2010, 06:59 PM
You are more than welcome :)

If you think this issue is resolved please mark the thread Solved using the Thread Tools near the top of the page.

Good luck and don't forget to drop by even if you don't have a specific question.

m_zeid
September 18th, 2010, 07:31 PM
thats a sure thing my friend :D

I really really like Ubuntu especially this new version and 90% when I finish from the unfinished bit-torrent downloads in win7 I will never ask about it again also I'll recommend this for my friends in college ;)

but wait who said I'm done here?! :P I have a new thread from here:

http://ubuntuforums.org/showthread.php?p=9861218#post9861218