Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: No windos XP after installing Ubuntu 8.04

  1. #1
    Join Date
    Sep 2008
    Beans
    4

    No windos XP after installing Ubuntu 8.04

    Hello!

    First, I want to say that installing Ubuntu just gave me a new PC. Amazingly fast browsing, easy to install programs, and a nice GUI. I was planning on buying a new PC for Vista, but no need now... Great job!

    Now, the problem...

    I installed Ubuntu to my PC. I decided to use the partition program built-in the Ubuntu CD. Selected the first "Guided" option, split the HDD in half and select Continue. Installation was all good. Restart the PC.

    While I was reading the boot options when the PC restarted, it automatically started Ubuntu. installed related updates, and restart again. When I tried to boot on Windows, I'm getting a black screen. No error message, no blue screen, nothing.

    Restarted and tried a BartPE CD I have, but it didn't boot neither.

    I believe the problem is that Windows never did the "chkdsk" after the partition process (I have a 160 GB NTFS HDD), but I'm not sure. I have a Gateway Desktop PC, so I don't have the Windows installation CD to run the Recovery option.

    I'm ready to use the "Recovery disks" shipped with the PC, but I know this can be fixed in some other way (all my docs are in a different partition, so no problem to re-installing WinXP).

    This is what fdisk shows:

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xd979f11c

    Device Boot Start End Blocks Id System
    /dev/sda1 * 419 4609 33664207+ 7 HPFS/NTFS
    /dev/sda2 1 418 3357553+ b W95 FAT32
    /dev/sda3 9259 19457 81923467+ 7 HPFS/NTFS
    /dev/sda4 4610 9258 37343092+ 5 Extended
    /dev/sda5 4610 9061 35760658+ 83 Linux
    /dev/sda6 9062 9258 1582371 82 Linux swap / Solaris

    Partition table entries are not in disk order

    Any help will be very appreciated!

    P.S. I'm new to Ubuntu.

  2. #2
    Join Date
    Jul 2008
    Beans
    871
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: No windos XP after installing Ubuntu 8.04

    Typically the main "recovery" disk for your computer is actually just your windows cd with a fancy label and maybe a new splash screen. That should work as far as running chkdsk and possibly restoring your MBR if necessary. Have you looked at your menu.lst to ensure the correct settings are there for windows? If you could, post it here. You can access it by typing the following in your terminal:
    Code:
    gksudo gedit /boot/grub/menu.lst
    Any piece of knowledge I acquire today has a value at this moment exactly proportioned to my skill to deal with it. Tomorrow, when I know more, I recall that piece of knowledge and use it better.
    -Mark Van Doren

  3. #3
    Join Date
    Sep 2008
    Beans
    4

    Re: No windos XP after installing Ubuntu 8.04

    Thanks falcon61102 for the quick response!

    The following is the result of the code you suggested:

    # 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-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 10

    ## 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=8669f062-ee53-4196-8931-df0029610172 ro

    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,4)

    ## 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

    ## 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 8.04.1, kernel 2.6.24-19-generic
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=8669f062-ee53-4196-8931-df0029610172 ro quiet splash
    initrd /boot/initrd.img-2.6.24-19-generic
    quiet

    title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=8669f062-ee53-4196-8931-df0029610172 ro single
    initrd /boot/initrd.img-2.6.24-19-generic

    title Ubuntu 8.04.1, memtest86+
    root (hd0,4)
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Home Edition
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda2
    title Windows NT/2000/XP
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1


    Is it OK? Do I need to change anything?

  4. #4
    Join Date
    Jul 2008
    Beans
    871
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: No windos XP after installing Ubuntu 8.04

    In the last section of code change:
    Code:
    root (hd0,1)
    to:
    Code:
    root (hd0,2)
    Then save and reboot.

    When you restart, make sure you select the bottom line to boot your windows.
    Last edited by falcon61102; September 1st, 2008 at 04:07 AM.
    Any piece of knowledge I acquire today has a value at this moment exactly proportioned to my skill to deal with it. Tomorrow, when I know more, I recall that piece of knowledge and use it better.
    -Mark Van Doren

  5. #5
    Join Date
    Sep 2008
    Beans
    4

    Re: No windos XP after installing Ubuntu 8.04

    Done, but still not booting on Windows...

    The following message appeared on the screen:

    Starting up...

    NTLDR is missing
    Press Ctrl+Alt+Del to restart

    At least now we're getting a message...

    Question 1: What do you think the problem is?

    Question 2: If I run the factory recovery disks, am I going to be able to boot Ubuntu again? Is it going to erase the GRUB?

    Thanks.

  6. #6
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: No windos XP after installing Ubuntu 8.04

    Try this. Download, burn disc, boot from it.

    http://www.supergrubdisk.org/

    Have a read there. That should get you up and running for now and teach you a bit more about how grub works.

  7. #7
    Join Date
    Jul 2008
    Beans
    871
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: No windos XP after installing Ubuntu 8.04

    Ok, you may need to restore the windows MBR and then reinstall the GRUB. You can either do that using the disks or try the Super GRUB Disk:
    www.supergrubdisk.org

    That's a small utility made for such tasks and generally works well.

    If you don't want to go through the process of downloading and using that, then boot up with your primary recovery disk and restore the Windows MBR. Then boot up the Ubuntu LiveCD and reinstall the GRUB with:

    Code:
    sudo grub
    root (hd0,4)
    setup (hd0)
    Then you should be good to go. Just make sure that after you reinstall the GRUB, the changes that you made earlier are still reflected.

    Here's a quick How-To that you can reference:
    http://ubuntuforums.org/showthread.php?t=740221

    EDIT: Lol... I type too slow
    Any piece of knowledge I acquire today has a value at this moment exactly proportioned to my skill to deal with it. Tomorrow, when I know more, I recall that piece of knowledge and use it better.
    -Mark Van Doren

  8. #8
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

  9. #9
    Join Date
    Jul 2008
    Beans
    871
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: No windos XP after installing Ubuntu 8.04

    Thanks. Yeah, I thought it really fit for around here because that's pretty much how this place works. Learn something one day and teach it the next.
    Any piece of knowledge I acquire today has a value at this moment exactly proportioned to my skill to deal with it. Tomorrow, when I know more, I recall that piece of knowledge and use it better.
    -Mark Van Doren

  10. #10
    Join Date
    Sep 2008
    Beans
    1

    Re: No windos XP after installing Ubuntu 8.04

    Work around.....
    XP doesn't boot.....2000 boots en gives you the posibility to delete and setup the harddisk partitions.
    After it. reboot with xp and go.

    Thanks for the reactions, it gave me the idea where to look.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •