Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: Dual boot system xp fails

  1. #1
    Join Date
    Jan 2011
    Beans
    21

    Dual boot system xp fails

    I have Ubuntu 10.10 on a harddrive and Xp on a seperate harddrive. Grub2 installed and both systems worked until, last night. I have Ubuntu, it loads fine, but the XP doesn't boot/load. It goes to a black screen. I have had this problem in the past, and solved it by re-installing both systems. There has to be a better way. I have just downloaded the boot.info file, just not used it, yet. I have used supergrub without success. This is my first post, so bear with me, I will try to provide any info needed to fix my problem.

  2. #2
    Join Date
    Feb 2008
    Location
    ɹǝpun uʍop
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Dual boot system xp fails

    Get into Ubuntu, open a terminal (Applications->Accessories->Terminal) then paste in these commands, one at a time:

    Code:
    sudo apt-get install os-prober
    sudo update-grub

  3. #3
    Join Date
    Jan 2011
    Beans
    21

    Re: Dual boot system xp fails

    Thanks for the response. I did as suggested with the following results:

    #Reading state information... Done
    os-prober is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded.
    safeside@safeside-linux:~$ sudo update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.35-22-generic
    Found initrd image: /boot/initrd.img-2.6.35-22-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Microsoft Windows XP Professional on /dev/sda1
    done#

    These appear to be the same/identical settings that were available yesterday. I am not totally knowledgeable of Linux, but, I am trying to convert. Any, and all help is appreciated. Thanks

  4. #4
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Dual boot system xp fails

    If you have the bootscript run it and post all the text in code tags.





  5. #5
    Join Date
    Jan 2011
    Beans
    21

    Re: Dual boot system xp fails

    It took me a little bit of time to use the script, but, I think I have it. Not sure what the problem is, if it could be identified for me, that would help. Otherwise, you can fix it, but I won't have the knowledge I am looking for. If I post this incorrectly, please correct me..

    #
    Boot Info Script 0.55 dated February 15th, 2010

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

    => No boot loader 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: 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

    sda2: __________________________________________________ _______________________

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

    sda5: __________________________________________________ _______________________

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

    sdb1: __________________________________________________ _______________________

    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

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

    Drive: sda ___________________ __________________________________________________ ___

    Disk /dev/sda: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders, total 78165360 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 2,048 74,864,639 74,862,592 83 Linux
    /dev/sda2 74,866,686 78,163,967 3,297,282 5 Extended
    /dev/sda5 74,866,688 78,163,967 3,297,280 82 Linux swap / Solaris


    Drive: sdb ___________________ __________________________________________________ ___

    Disk /dev/sdb: 400.1 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders, total 781422768 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 781,401,599 781,401,537 7 HPFS/NTFS


    blkid -c /dev/null: __________________________________________________ __________

    Device UUID TYPE LABEL

    /dev/sda1 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b ext4
    /dev/sda2: PTTYPE="dos"
    /dev/sda5 686be229-4eda-478d-a309-d06532e44c9e swap
    /dev/sda: PTTYPE="dos"
    /dev/sdb1 2684F87084F843B9 ntfs
    /dev/sdb: PTTYPE="dos"
    error: /dev/sdc: No medium found
    error: /dev/sdd: No medium found
    error: /dev/sde: No medium found
    error: /dev/sdf: No medium found

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

    Device Mount_Point Type Options

    /dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


    =========================== sda1/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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    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-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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b 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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    echo 'Loading Linux 2.6.35-22-generic ...'
    linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b 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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    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 b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b
    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 2684f87084f843b9
    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 ###

    =============================== sda1/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=b6a4a73e-fff3-4b7e-b9ac-b67a04a2601b / ext4 errors=remount-ro 0 1
    # swap was on /dev/sdb5 during installation
    UUID=686be229-4eda-478d-a309-d06532e44c9e none swap sw 0 0

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


    25.9GB: boot/grub/core.img
    25.9GB: boot/grub/grub.cfg
    1.2GB: boot/initrd.img-2.6.35-22-generic
    26.0GB: boot/vmlinuz-2.6.35-22-generic
    1.2GB: initrd.img
    26.0GB: vmlinuz

    ================================ sdb1/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="Micro soft Windows XP Professional" /noexecute=optin /fastdetect
    =======Devices which don't seem to have a corresponding hard drive==============

    sdc sdd sde sdf
    #

  6. #6
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Dual boot system xp fails

    So you need grub in the sda mbr and the sda 40 gig HD being first in the bios being read.

    So boot a live maverick cd and run these two commands.
    Code:
    sudo mount /dev/sda1 /mnt
    then
    Code:
    sudo grub-install --root-directory=/mnt/ /dev/sda
    reboot to that 40 gig drive then choose ubuntu and when in run in its terminal
    Code:
    sudo update-grub





  7. #7
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Beans
    63
    Distro
    Lubuntu

    Re: Dual boot system xp fails

    when I have boot problems I use grub-mkconfig & grub-install. Specifically, open a terminal and enter:

    Code:
    grub-mkconfig > ~/grub.cfg
    this will create a grub configuration file in your /home directory.

    Now you can compare it with the configuration file that grub is currently using...

    use gedit to open the newly created grub.cfg and, in another tab, open /boot/grub/grub.cfg (this is the current file that grub uses to boot the various operating systems you have)

    If they are different it may be worth giving the other one a try, here are the steps:

    Code:
    sudo mv /boot/grub/grub.cfg /boot/grub/grub.cfg.bak
    sudo mv /home/grub.cfg /boot/grub/
    The first step effectively saves your original grub.cfg, in case you wish to return to it (just delet the new one and remove the .bak from the file name)

    Then reboot, if this doesn't work then I would try:
    Code:
    sudo grub-install /dev/<MBR name here eg. sda>
    note: it is important not to specify a partition (eg. /dev/sda1) for last command.

  8. #8
    Join Date
    Feb 2008
    Location
    ɹǝpun uʍop
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Dual boot system xp fails

    Might help if you run these two commands. One at a time hitting return after each. You have 140 packages to upgrade! That might fix your probs anyhow. It is gonna help:

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    Good luck and let us know.

  9. #9
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual boot system xp fails

    Do your drives come up at different times in different order? That seems to be the issue and we have seen that before. Sometimes drive order is different between cold boot & warm (reboot) boot. Something about drives, BIOS & power. Also mixed IDE & SATA seem to be an issue sometimes.

    Script shows windows in sdb at the time you ran it, but the windows boot stanza says it saw windows in sda at the time it created the windows boot stanza. Windows boot.ini also thinks it is in drive 0 or sda.

    Ubuntu is forgiving about drive order as it first uses drive order, but then does a search by UUID to find partition. Windows is less forgiving and if not correct drive will often give errors.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  10. #10
    Join Date
    Jan 2011
    Beans
    21

    Re: Dual boot system xp fails


    pre.cjk { font-family: "DejaVu Sans",monospace; }p { margin-bottom: 0.08in; } 400 gig ATA hard drive (sda1-xp) primary boot the 40 gig IDE (Ubuntu), the drives are set in bios as such. I used
    Code:
    sudo apt-get update sudo apt-get upgrade

    The results were, I got upgraded/updated but still unable to boot XP. My grub2 loader works, I have the option to load XP, Ubuntu is the default loader. Would I still need a live cd to use the advise wilee-nilee gave?


    Many thanks again

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •