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

Thread: Grub2 isn't talking with Windows anymore. :(

  1. #1
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Grub2 isn't talking with Windows anymore. :(

    I can't get grub2 to talk with my Windows XP partition. I only have options to run ubuntu kernel 2.6.28-16 server, kernel 2.6.28-14 server, and memtest. No Windows.

    I have tried updating my grub2 and updating my grub.
    (sudo update-grub2) (sudo update-grub).

    I have also tried making a 11_windows and still no go.
    It said something about too many entries for Windows Xp.
    http://erickoo.wordpress.com/2009/06...-karmic-koala/

    I have also looked over some other pages, but nothing has helped. I must be overlooking something here. Can someone help me out?

    fdisk
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2079 16699536 7 HPFS/NTFS
    /dev/sda2 2080 3648 12602992+ 5 Extended
    /dev/sda5 2080 3576 12024621 83 Linux
    /dev/sda6 3577 3648 578308+ 82 Linux swap / Solaris
    Some links that should help, but I still can't get my grub2 up and working correctly.
    http://ubuntuforums.org/showthread.php?t=1195275
    http://ubuntuforums.org/showthread.php?t=1014708
    http://ubuntuforums.org/showthread.php?t=1296301

    Spec:
    Ubuntu 9.10 32 bit
    Need Grub2 entry for Windows XP
    Grub2

    Thanks for reading,
    Sugi
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  2. #2
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub2 isn't talking with Windows anymore. :(

    bumpy bump
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  3. #3
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub2 isn't talking with Windows anymore. :(

    bump
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  4. #4
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: Grub2 isn't talking with Windows anymore. :(

    could you download and run meierfra's script and post the generated RESULTS.TXT?
    this may shed some light on the nature of your issue.

  5. #5
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub2 isn't talking with Windows anymore. :(

    lieqie, Yep, I still have that file, I'll post the information within at the end of this post. Please scroll down.

    Leppie
    Code:
    ~$ sh boot_info_script042.sh 
    Please use "sudo" or become "root" to run this script.
    ~$ sudo sh boot_info_script042.sh 
    [sudo] password for : 
    ~$ ./boot_info_script042.sh 
    bash: ./boot_info_script042.sh: Permission denied
    ~$ sudo ./boot_info_script042.sh 
    sudo: ./boot_info_script042.sh: command not found
    Can I not run sh scripts anymore. What am I missing here?


    /etc/grub.d/30_os-prober
    Code:
    #! /bin/sh -e
    
    # grub-mkconfig helper script.
    # Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
    #
    # GRUB is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # GRUB is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
    
    prefix=/usr
    exec_prefix=${prefix}
    libdir=${exec_prefix}/lib
    
    . ${libdir}/grub/grub-mkconfig_lib
    
    found_other_os=
    
    adjust_timeout () {
      if [ "x${found_other_os}" = "x" ] ; then
        if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
          if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
    	verbose=
          else
    	verbose=" --verbose"
          fi
    
          if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
    	cat <<EOF
    if [ \${timeout} != -1 ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep$verbose --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    EOF
          else
    	cat << EOF
    if [ \${timeout} != -1 ]; then
      if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
        set timeout=0
      fi
    fi
    EOF
          fi
        fi
      fi
    }
    
    if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
      adjust_timeout
      exit 0
    fi
    
    if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
      # missing os-prober and/or linux-boot-prober
      adjust_timeout
      exit 0
    fi
    
    OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
    if [ -z "${OSPROBED}" ] ; then
      # empty os-prober output, nothing doing
      adjust_timeout
      exit 0
    fi
    
    for OS in ${OSPROBED} ; do
      DEVICE="`echo ${OS} | cut -d ':' -f 1`"
      LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
      LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
      BOOT="`echo ${OS} | cut -d ':' -f 4`"
    
      if [ -z "${LONGNAME}" ] ; then
        LONGNAME="${LABEL}"
      fi
    
      echo "Found ${LONGNAME} on ${DEVICE}" >&2
      found_other_os=1
    
      case ${BOOT} in
        chain)
    
          cat << EOF
    menuentry "${LONGNAME} (on ${DEVICE})" {
    EOF
          save_default_entry | sed -e "s/^/\t/"
          prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
    
          case ${LONGNAME} in
    	Windows\ Vista*|Windows\ 7*)
    	;;
    	*)
    	  cat << EOF
    	drivemap -s (hd0) \${root}
    EOF
    	;;
          esac
    
          cat <<EOF
    	chainloader +1
    }
    EOF
        ;;
        linux)
          LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
    
          for LINUX in ${LINUXPROBED} ; do
            LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
            LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
            LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
            LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
            LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
            LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
    
            if [ -z "${LLABEL}" ] ; then
              LLABEL="${LONGNAME}"
            fi
    
             if [ "${LROOT}" != "${LBOOT}" ]; then
               LKERNEL="${LKERNEL#/boot}"
               LINITRD="${LINITRD#/boot}"
             fi
    
            cat << EOF
    menuentry "${LLABEL} (on ${DEVICE})" {
    EOF
    	save_default_entry | sed -e "s/^/\t/"
    	prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/"
    	cat <<  EOF
    	linux ${LKERNEL} ${LPARAMS}
    EOF
            if [ -n "${LINITRD}" ] ; then
              cat << EOF
    	initrd ${LINITRD}
    EOF
            fi
            cat << EOF
    }
    EOF
          done
        ;;
        macosx)
          OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
            cat << EOF
    menuentry "${LONGNAME} (on ${DEVICE})" {
    EOF
    	save_default_entry | sed -e "s/^/\t/"
    	prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
    	cat << EOF
            insmod vbe
            do_resume=0
            if [ /var/vm/sleepimage -nt10 / ]; then
               if xnu_resume /var/vm/sleepimage; then
                 do_resume=1
               fi
            fi
            if [ \$do_resume == 0 ]; then
               xnu_uuid ${OSXUUID} uuid
               if [ -f /Extra/DSDT.aml ]; then
                  acpi -e /Extra/DSDT.aml
               fi
               xnu_kernel /mach_kernel boot-uuid=\${uuid} rd=*uuid
               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                  xnu_mkext /System/Library/Extensions.mkext
               else
                  xnu_kextdir /System/Library/Extensions
               fi
               if [ -f /Extra/Extensions.mkext ]; then
                  xnu_mkext /Extra/Extensions.mkext
               fi
               if [ -d /Extra/Extensions ]; then
                  xnu_kextdir /Extra/Extensions
               fi
               if [ -f /Extra/devtree.txt ]; then
                  xnu_devtree /Extra/devtree.txt
               fi
               if [ -f /Extra/splash.jpg ]; then
                  insmod jpeg
                  xnu_splash /Extra/splash.jpg
               fi
               if [ -f /Extra/splash.png ]; then
                  insmod png
                  xnu_splash /Extra/splash.png
               fi
               if [ -f /Extra/splash.tga ]; then
                  insmod tga
                  xnu_splash /Extra/splash.tga
               fi
            fi
    }
    EOF
        ;;
        hurd|*)
          echo "  ${LONGNAME} is not yet supported by grub-mkconfig." >&2
        ;;
      esac
    done
    
    adjust_timeout
    Thanks guys and sorry for the slow reply,
    Sugi
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  6. #6
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: Grub2 isn't talking with Windows anymore. :(

    i think you forgot to make it executable:
    Code:
    $sudo chmod +x boot_info_script042.sh

  7. #7
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub2 isn't talking with Windows anymore. :(

    Ha, good point.
    Code:
    ============================= Boot Info Summary: ==============================
    
     => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive 
        in partition #5 for /boot/grub.
    sda1: _________________________________________________________________________
    
        File system:       
        Boot sector type:  Windows XP
        Boot sector info:  
        Mounting failed:
    mount: unknown filesystem type ''
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 9.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 30.0 GB, 30005821440 bytes
    255 heads, 63 sectors/track, 3648 cylinders, total 58605120 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x90909090
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *             63    33,399,134    33,399,072   7 HPFS/NTFS
    /dev/sda2          33,399,135    58,605,119    25,205,985   5 Extended
    /dev/sda5          33,399,198    57,448,439    24,049,242  83 Linux
    /dev/sda6          57,448,503    58,605,119     1,156,617  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    /dev/sda5: UUID="826a5efd-551a-43d5-bf86-56afdcb23151" TYPE="ext4" 
    /dev/sda6: UUID="13c3e472-1799-4441-afaa-4d68f18ff0f1" TYPE="swap" 
    
    =============================== "mount" output: ===============================
    
    /dev/sda5 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type tmpfs (rw,mode=0755)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/user/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 826a5efd-551a-43d5-bf86-56afdcb23151
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    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/white
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Ubuntu, Linux 2.6.31-16-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    	set quiet=1
    	insmod ext2
    	set root=(hd0,5)
    	search --no-floppy --fs-uuid --set 826a5efd-551a-43d5-bf86-56afdcb23151
    	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=826a5efd-551a-43d5-bf86-56afdcb23151 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    	insmod ext2
    	set root=(hd0,5)
    	search --no-floppy --fs-uuid --set 826a5efd-551a-43d5-bf86-56afdcb23151
    	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=826a5efd-551a-43d5-bf86-56afdcb23151 ro single 
    	initrd	/boot/initrd.img-2.6.31-16-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    	set quiet=1
    	insmod ext2
    	set root=(hd0,5)
    	search --no-floppy --fs-uuid --set 826a5efd-551a-43d5-bf86-56afdcb23151
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=826a5efd-551a-43d5-bf86-56afdcb23151 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    	insmod ext2
    	set root=(hd0,5)
    	search --no-floppy --fs-uuid --set 826a5efd-551a-43d5-bf86-56afdcb23151
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=826a5efd-551a-43d5-bf86-56afdcb23151 ro single 
    	initrd	/boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ ${timeout} != -1 ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### 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 ###
    
    =============================== sda5/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    defaults        0       0
    # / was on /dev/sda5 during installation
    UUID=826a5efd-551a-43d5-bf86-56afdcb23151 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=13c3e472-1799-4441-afaa-4d68f18ff0f1 none            swap    sw              0       0
    /dev/scd1       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
      17.1GB: boot/grub/grub.cfg
      17.1GB: boot/initrd.img-2.6.31-14-generic
      17.1GB: boot/initrd.img-2.6.31-16-generic
      17.1GB: boot/vmlinuz-2.6.31-14-generic
      17.1GB: boot/vmlinuz-2.6.31-16-generic
      17.1GB: initrd.img
      17.1GB: initrd.img.old
      17.1GB: vmlinuz
      17.1GB: vmlinuz.old
    Sugi
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  8. #8
    Join Date
    Apr 2007
    Location
    ニッポ&
    Beans
    719
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub2 isn't talking with Windows anymore. :(

    bump
    WINE: Super Meat Boy // Far Cry 2 // Lineage 2
    VirtualBox: Snapshots // OSE Issues
    アンディモリを聞いてください。

  9. #9
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: Grub2 isn't talking with Windows anymore. :(

    i think you have some filesystem issue (at least, it's not being recognized):
    sda1: __________________________________________________ _______________________

    File system:
    Boot sector type: Windows XP
    Boot sector info:
    Mounting failed:
    mount: unknown filesystem type ''
    check your xp partition for errors, then run update-grub again.

  10. #10
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: Grub2 isn't talking with Windows anymore. :(

    you could try testdisk:
    Code:
    $sudo apt-get install testdisk
    but i'd suggest you make a backup of the partition first (if you have important files on the xp partition).

Page 1 of 4 123 ... 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
  •