Results 1 to 10 of 25
Here's the specs: XP is on sda1, Ubuntu 10.10 is on sdb1. I have tried all sorts of configurations in grub.cfg, mainly using the custom entry files and update grub, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-29-2010 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
Can't boot Xp with GRUB2
Here's the specs: XP is on sda1, Ubuntu 10.10 is on sdb1. I have tried all sorts of configurations in grub.cfg, mainly using the custom entry files and update grub, and have tried installing grub2 to each drive. No matter what I try I am getting the ntoskrnl.exe missing or corrupt error. With grub2 installed on sdb I can set BIOS to boot from sda and get into XP, but no matter where grub2 is installed I can't get into XP from there.
Default grub.cfg:
fdisk -l:Code:# # 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 part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-24-generic ...' linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-22-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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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 part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 984c09bb4c0994e2 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 ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ###
blkid:Code:Disk /dev/sda: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000001 Device Boot Start End Blocks Id System /dev/sda1 * 1 9729 78148161 7 HPFS/NTFS Disk /dev/sdb: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000277bd Device Boot Start End Blocks Id System /dev/sdb1 1 9329 74927104 83 Linux /dev/sdb2 9329 9730 3226625 5 Extended /dev/sdb5 9329 9730 3226624 82 Linux swap / Solaris
In all cases I can boot to Ubuntu. Any ideas?Code:/dev/sda1: UUID="984C09BB4C0994E2" TYPE="ntfs" /dev/sdb1: UUID="68cd72c4-54c6-43df-af2c-361d82883dc0" TYPE="ext4" /dev/sdb5: UUID="c2bb4908-a334-405c-8074-33cc81843ecc" TYPE="swap"
Last edited by isom; 12-29-2010 at 03:53 PM. Reason: Left out information.
- 12-29-2010 #2Just Joined!
- Join Date
- Dec 2010
- Posts
- 33
Try a different boot loader?
Backup your MBR with something like Ptedit from a boot disc/disk, or a Linux capable program.
Then use something like Grub4Dos. It supports the syntax from legacy Grub, but also has the equivalents of options supported by Grub2.
For instance, the single XP entry equivalent in the menu.lst would like similar to this:
Or... to play it safely if the only Windows you have installed is XP:Code:title "Microsoft Windows XP Professional (on /dev/sda1)" root (hd0,0) makeactive chainloader +1
Code:title "Microsoft Windows XP Professional (on /dev/sda1)" find --set-root /ntldr makeactive chainloader /ntldr
- 12-29-2010 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
I have switched to grub .97 and get error 13.
menu.lst:
grub is installed on /dev/sdb.Code:# menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-legacy-doc/. ## default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0 ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 3 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) #hiddenmenu # Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # # examples # # title Windows 95/98/NT/2000 # root (hd0,0) # makeactive # chainloader +1 # # title Linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=68cd72c4-54c6-43df-af2c-361d82883dc0 ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt= ## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true ## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## title Ubuntu 10.10, kernel 2.6.35-24-generic uuid 68cd72c4-54c6-43df-af2c-361d82883dc0 kernel /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-24-generic title Ubuntu 10.10, kernel 2.6.35-24-generic (recovery mode) uuid 68cd72c4-54c6-43df-af2c-361d82883dc0 kernel /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single initrd /boot/initrd.img-2.6.35-24-generic title Ubuntu 10.10, kernel 2.6.35-22-generic uuid 68cd72c4-54c6-43df-af2c-361d82883dc0 kernel /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic title Ubuntu 10.10, kernel 2.6.35-22-generic (recovery mode) uuid 68cd72c4-54c6-43df-af2c-361d82883dc0 kernel /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single initrd /boot/initrd.img-2.6.35-22-generic title Ubuntu 10.10, memtest86+ uuid 68cd72c4-54c6-43df-af2c-361d82883dc0 kernel /boot/memtest86+.bin title Windows XP root (hd0,0) makeactive chainloader +1 ### END DEBIAN AUTOMAGIC KERNELS LIST
- 12-30-2010 #4Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
I've reverted back to grub-pc. Here's bootinfoscript.
I'm back to the ntoskrnl.exe error again.Code:Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Windows is installed in the MBR of /dev/sda => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for (,msdos1)/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 sdb1: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Ubuntu 10.10 Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sdb2: _________________________________________________________________________ File system: Extended Partition Boot sector type: Unknown Boot sector info: sdb5: _________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ Disk /dev/sda: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders, total 156312576 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,296,384 156,296,322 7 HPFS/NTFS Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders, total 156312576 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 * 2,048 149,856,255 149,854,208 83 Linux /dev/sdb2 149,858,302 156,311,551 6,453,250 5 Extended /dev/sdb5 149,858,304 156,311,551 6,453,248 82 Linux swap / Solaris blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/sda1 984C09BB4C0994E2 ntfs /dev/sda: PTTYPE="dos" /dev/sdb1 68cd72c4-54c6-43df-af2c-361d82883dc0 ext4 /dev/sdb2: PTTYPE="dos" /dev/sdb5 c2bb4908-a334-405c-8074-33cc81843ecc swap /dev/sdb: PTTYPE="dos" ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options /dev/sdb1 / ext4 (rw,errors=remount-ro,commit=0) /dev/sr0 /media/WIN_XPPRO iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500) ================================ sda1/boot.ini: ================================ [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn =========================== sdb1/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 part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-24-generic ...' linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-22-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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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 part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 984c09bb4c0994e2 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 ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### =============================== sdb1/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/sdb1 during installation UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 / ext4 errors=remount-ro 0 1 # swap was on /dev/sdb5 during installation UUID=c2bb4908-a334-405c-8074-33cc81843ecc none swap sw 0 0 =================== sdb1: Location of files loaded by Grub: =================== 60.2GB: boot/grub/core.img 39.0GB: boot/grub/grub.cfg 6.2GB: boot/initrd.img-2.6.35-22-generic 6.2GB: boot/initrd.img-2.6.35-24-generic 60.2GB: boot/vmlinuz-2.6.35-22-generic 60.2GB: boot/vmlinuz-2.6.35-24-generic 6.2GB: initrd.img 6.2GB: initrd.img.old 60.2GB: vmlinuz 60.2GB: vmlinuz.old =========================== Unknown MBRs/Boot Sectors/etc ======================= Unknown BootLoader on sdb2 00000000 45 e0 50 ff 75 08 e8 7d fd ff ff 0f b6 c0 0b d8 |E.P.u..}........| 00000010 89 5d d8 eb 09 88 45 df 0f be c0 89 45 d8 03 75 |.]....E.....E..u| 00000020 d8 89 75 c0 8b 45 08 83 78 6c 08 74 0e a1 b4 64 |..u..E..xl.t...d| 00000030 47 00 3b f0 72 05 66 c7 00 00 00 66 8b 45 cc 66 |G.;.r.f....f.E.f| 00000040 89 06 8b 45 e0 8b 4d 08 89 41 68 eb 34 8b 45 ec |...E..M..Ah.4.E.| 00000050 ff 30 8d 85 70 ff ff ff 50 e8 d5 fa ff ff c3 8b |.0..p...P.......| 00000060 65 e8 8b 45 08 8b 48 68 89 8d 7c ff ff ff 6a 01 |e..E..Hh..|...j.| 00000070 6a 01 50 6a 00 8d 85 70 ff ff ff 50 e8 6c 30 fd |j.Pj...p...P.l0.| 00000080 ff 83 4d fc ff b0 01 e8 01 ac fe ff c2 08 00 8b |..M.............| 00000090 4c 24 04 33 c0 40 d3 e0 48 23 44 24 08 75 04 8b |L$.3.@..H#D$.u..| 000000a0 44 24 08 8b d0 c1 ea 10 6a 10 59 75 04 33 c9 8b |D$......j.Yu.3..| 000000b0 d0 f7 c2 00 ff ff ff 74 03 83 c1 08 d3 e8 8a 80 |.......t........| 000000c0 d0 ae 42 00 02 c1 c2 08 00 56 33 d2 8b f1 e8 64 |..B......V3....d| 000000d0 68 fc ff 85 c0 75 17 8b 04 b5 c0 4a 47 00 8b 40 |h....u.....JG..@| 000000e0 0c 33 d2 42 8b ce d3 e2 09 15 a4 cf 46 00 5e c3 |.3.B........F.^.| 000000f0 53 ff 15 68 06 40 00 8b 54 24 08 8a 4c 24 0c 81 |S..h.@..T$..L$..| 00000100 c2 67 01 00 00 8a 1a 88 0a 8a c8 e8 a1 bf fc ff |.g..............| 00000110 8a c3 5b c2 08 00 f6 05 dd e6 46 00 04 74 05 e9 |..[.......F..t..| 00000120 f9 b8 10 00 c3 55 8b ec 83 ec 40 80 3d 71 3f 47 |.....U....@.=q?G| 00000130 00 00 53 56 74 39 57 6a 10 59 33 c0 8d 7d c0 f3 |..SVt9Wj.Y3..}..| 00000140 ab be 7c 3f 47 00 8b ce ff 15 9c 05 40 00 8a d8 |..|?G.......@...| 00000150 8d 45 c0 50 e8 b9 ea 10 00 8d 45 c0 50 e8 53 ee |.E.P......E.P.S.| 00000160 10 00 8a d3 8b ce ff 15 98 05 40 00 5f eb 29 f6 |..........@._.).| 00000170 05 dd e6 46 00 80 74 20 be 7c 3f 47 00 8b ce ff |...F..t .|?G....| 00000180 15 9c 05 40 00 6a 00 8a d8 e8 33 ed 10 00 8a d3 |...@.j....3.....| 00000190 8b ce ff 15 98 05 40 00 5e 5b c9 c3 55 8b ec 83 |......@.^[..U...| 000001a0 ec 48 8b 4d 14 83 f9 05 57 75 0a b8 bb 00 00 c0 |.H.M....Wu......| 000001b0 e9 c4 00 00 00 53 56 8b 75 0c 85 f6 0f 85 00 fe |.....SV.u.......| 000001c0 ff ff 82 fe ff ff 02 00 00 00 00 78 62 00 00 00 |...........xb...| 000001d0 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
- 01-01-2011 #5Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
...bump...
- 01-01-2011 #6Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 358
I do not see any thing that jumps out as bad.
That still is the case ? With the linux hdd connected ?I can set BIOS to boot from sda and get into XP
I have read , but do not remember were, some versions of grub 2 had problems booting into XP with:
May try when you get the grub MENU pressing 'Esc' and get into the 'edit mode' for XP and remove above line and see what happens.search --no-floppy --fs-uuid --set 984c09bb4c0994e2
- 01-02-2011 #7Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
Yes.That still is the case ? With the linux hdd connected ?
I tried that, still no luck. When I went back to grub-pc I put it on the XP drive, sda. I have been trying different entries for the chainloader section (chainloader (hd0)+1, chainloader (hd0,msdos1)+1, and some other random thoughts) but nothing works so far. One thing that interested me was when I tried "chainloader (hd0)/Windows/System32/<tab>" from grub command line, ntoskrnl.exe wasn't there, but it seemed like all the other files were. Surely this is something simple. I've used Linux with grub legacy off and on for years and never had any major issues.May try when you get the grub MENU pressing 'Esc' and get into the 'edit mode' for XP and remove above line and see what happens.
- 01-02-2011 #8Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 358
If I use that command , it will just reload my MBR boot code. For me the 'chainloader (hd0)' command over ruled 'set root=(hd0,1) command at where to look.chainloader (hd0)+1
that retured no such partition, being (hd0) is the mbr, did not matter what I had 'set root=(hdx,x)' at.chainloader (hd0)/Windows/System32/<tab>
Below may/may not be the problem, due to fact XP will boot with the linux hdd connected. But its the only thing I can see that not quite right.
Your hdd does not met the MS standard partition layout on the logical volume. The logical volume should start 1 track '64 sectors' after its 'extended partition table' and your's start 2 sectors later. XP can not read linux file system but it must account for all partitions. {remember 64 sectors is sector 0--63}
Boot Info Script:
***,304-**,302=2Code:Partition Boot Start /dev/sdb2 149,858,302 /dev/sdb5 149,858,304
Unknown BootLoader on sdb2 IE: the extended partition table. The first 01be of data is useless in your case, due to grub is not installed on the extended partition.
the item above in bold is the start sector of the logical volume ,after it's partition table and is in little endian format.Code:00 fe |.....SV.u.......| 000001c0 ff ff 82 fe ff ff 02 00 00 00 00 78 62 00
I would delete the swap partition and use a GUI partition editor to remake or if you want to use fdisk , the extended volume shoud start at sector 149,858,302+64=149,858,366
- 01-02-2011 #9Just Joined!
- Join Date
- Jul 2006
- Posts
- 19
I changed some things with gparted, still getting the ntoskrnl error. Here's the new bootinfoscript.
Code:Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Windows is installed in the MBR of /dev/sda => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for (,msdos1)/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 sdb1: _________________________________________________________________________ File system: ext4 Boot sector type: Grub 2 Boot sector info: Grub 2 is installed in the boot sector of sdb1 and looks at sector 117710392 of the same hard drive for core.img, but core.img can not be found at this location. Operating System: Ubuntu 10.10 Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ Disk /dev/sda: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders, total 156312576 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,309,503 156,309,441 7 HPFS/NTFS Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 80.0 GB, 80032038912 bytes 255 heads, 63 sectors/track, 9730 cylinders, total 156312576 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 2,048 156,311,551 156,309,504 83 Linux blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/sda1 984C09BB4C0994E2 ntfs /dev/sda: PTTYPE="dos" /dev/sdb1 68cd72c4-54c6-43df-af2c-361d82883dc0 ext4 /dev/sdb: PTTYPE="dos" ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options /dev/sdb1 / ext4 (rw,errors=remount-ro,commit=0) ================================ sda1/boot.ini: ================================ [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn =========================== sdb1/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 part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-24-generic ...' linux /boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-24-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-22-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,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0 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 part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 984c09bb4c0994e2 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 ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### =============================== sdb1/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/sdb1 during installation UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 / ext4 errors=remount-ro 0 1 # swap was on /dev/sdb5 during installation UUID=c2bb4908-a334-405c-8074-33cc81843ecc none swap sw 0 0 =================== sdb1: Location of files loaded by Grub: =================== 60.2GB: boot/grub/core.img 60.2GB: boot/grub/grub.cfg 6.2GB: boot/initrd.img-2.6.35-22-generic 6.2GB: boot/initrd.img-2.6.35-24-generic 60.2GB: boot/vmlinuz-2.6.35-22-generic 60.2GB: boot/vmlinuz-2.6.35-24-generic 6.2GB: initrd.img 6.2GB: initrd.img.old 60.2GB: vmlinuz 60.2GB: vmlinuz.old
- 01-02-2011 #10Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 358
If you look at the menu intries for linux they are set for (hd1), I do not understand why ? I've only seen the hdd where grub is installed becomes (hd0) not (hd1), could that be causeing a problem for XP ?Code:Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for (,msdos1)/boot/grub.
It says XP is on /dev/sda1 but "set root='(hd0 ' why ?try changeing both (hd0) to (hd1). Yes, I am in a guessing game. I do use a older version of grub2 so can not check it out.Code:menuentry "Microsoft Windows XP Professional (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 984c09bb4c0994e2 drivemap -s (hd0) ${root} chainloader +1 }
On my comp with grub on (hd0,1) and XP on (hd1,5)
Could enter correct info (hd1,1) at grub command line and try my menu.Code:menuentry "Win XP (on /dev/hdc5)" { set root=(hd1,5) chainloader +1 drivemap (hd1) (hd0) boot }
When booted into XP check 'boot.ini' to be sure nothing is amiss that the bootinfo script is not showing. A net search give 3 reasons normall for your error, boot.ini,hal.dll,ntoskrnl.exe is bad or ?.
added:
more thinking. Check /boot/grub/device.map , if linux hdd is not (hd0) change it so it is and rerun update-grub "I think that's the command'. I could be way off in my thinking, so any problems it may make is your's.Last edited by Lostfarmer; 01-02-2011 at 11:40 PM.


Reply With Quote
