Find the answer to your Linux question:
Results 1 to 6 of 6
Have a PC with 2 HDD, one loaded and working fine with Windows 7 and a spare to be for Debian Linux. Both are 200GB. Installed Debian 'squeeze' from bootable ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    7

    [SOLVED] Dual Boot - No longer boots Windows 7


    Have a PC with 2 HDD, one loaded and working fine with Windows 7 and a spare to be for Debian Linux. Both are 200GB.
    Installed Debian 'squeeze' from bootable CD onto second HDD. Except for a network config error, everything else loaded fine with message "install completed successfully". Rebooted PC, dual boot menu options were displayed (Debian, Debian Recovery, and Windows 7). Selected Debian, system came up working fine. Did this several time as I swtiched between Linux and Windows 7.
    Ran into a linux problem with deleted files ( my fault) so decided to reinstall Debian from bootable CD. Rebooted system but this time the following was displayed:
    GRUB Loading
    Welcome to GRUB!
    Entering rescue mode...
    grub rescue>

    Re-installed Debian ...again network did not install but "install completed successfully".
    Rebooted PC, but this time no dual boot menu options were displayed but Debian booted automatically.. Everytime I reboot Debian it boots without displaying the OS menu options.
    GRUB is causing the problem. How can I get the boot menu options to display again for Debian, Debian Recovery, Windows 7?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Execute this in Terminal of Debian :
    Code:
    su -
    update-grub
    Above command will re-generate GRUB Menu. Does it list Windows OS in output?
    In case GRUB Menu doesn't appear on restart or Windows OS doesn't appear in GRUB Menu, post the output of fdisk -l command here.
    Code:
    su -
    fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    7
    The OS menu options now do appear but very very quickly without stopping and the system automatically goes into booting up Debian. The menu options used to show in a colored blue box at the top of the screen with Debian's default screen background but now only show the 3 lines of options then disappear.

    1. Here is the output from the update-grub command:

    root@debian:/home/jwo# update-grub
    Generating grub.cfg ...
    Found background image: /usr/share/images/desktop-base/desktop-grub.png
    Found linux image: /boot/vmlinuz-2.6.32-5-amd64
    Found initrd image: /boot/initrd.img-2.6.32-5-amd64
    Found Windows 7 (loader) on /dev/sda1
    done

    2. Here is the fdisk output:
    The first disk (/dev/sda) 160GB is the Windows 7 disk.

    root@debian:/home/jwo# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 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: 0x5b2a7d4a

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 102400 7 HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sda2 13 19458 156185600 7 HPFS/NTFS

    Disk /dev/sdc: 200.0 GB, 200048565760 bytes
    255 heads, 63 sectors/track, 24321 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: 0x0009fe95

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 23334 187426816 83 Linux
    /dev/sdc2 23334 24322 7930881 5 Extended
    /dev/sdc5 23334 24322 7930880 82 Linux swap / Solaris

    Hope this helps.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    GRUB Updater has detect Windows 7 OS but it looks like timeout has not been set correctly.
    Open /etc/default/grub file with root privileges and set GRUB_TIMEOUT to 15. It's time in Seconds.
    Execute update-grub command to re-generate GRUB Menu.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    7

    Smile Dual Boot - No longer boots Windows 7

    Works fine again. It allows time to make a selection.
    THANK YOU for your assistance.
    Cheers JWO

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Glad to help you !
    Do start a new thread if you have any other question.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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