Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: Grub 2 Not seeing OS's

  1. #11
    Join Date
    Mar 2008
    Location
    Southern California, USA
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Not seeing OS's

    Im sorry, but that last post made it sound like it worked, but it didnt...

    I did a little bit of expermenting on my own, and now after adding slack back into the 40_custom, when I load it from GRUB it loads into Windows 7. And I am not sure why either.

    I tried adding insmod ext3 and that was what made it start to boot into Windows 7. And after removing it, it still booted into windows 7. Any more ideas on what could make it work?

    Is installing the old GRUB a option?

  2. #12
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub 2 Not seeing OS's

    For grub2 the partition numbering is different than grub legacy. if slax is in sda4 you entry should be the one you had first:

    menuentry "Slackware" {
    set root=(hd0,4)
    chainloader +1
    }

    Also to chainboot you have to have a boot loader in the PBR. Windows actually has a boot loader in its PBR and thats why you can chain boot windows.


    How to install Grub from a live Ubuntu cd.
    http://ubuntuforums.org/showthread.php?t=224351
    see note
    If someone wants GRUB on a partition, the 'setup (hd0)' step can be modified to 'setup (hdX,Y)'. Where X is the hard disk, and Y the partition using GRUB's nomenclature of starting from 0 (first partition=0, second=1,...).

    If slax uses old grub just follow the instructions for installing grub but put it into (hd0,3) using old grubs numbering.
    Last edited by oldfred; December 5th, 2009 at 06:46 AM. Reason: add link to instruction for old grub install
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #13
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Not seeing OS's

    I think that you will have better luck if your 40_custom entry looks like this;
    Code:
    echo "Adding OpenSolaris" >&2 
    cat << EOF
    menuentry "OpenSolaris" {
            set root=(hd2,1)
            chainloader +1
    }
    EOF
    Make sure that the drive count starts with 0 and the partition count starts with 1 (grub-legacy starts both with 0).
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  4. #14
    Join Date
    Mar 2008
    Location
    Southern California, USA
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Not seeing OS's

    At oldfred:

    I tried
    Code:
    menuentry "Slackware" {
    set root=(hd0,4)
    chainloader +1
    }
    and

    Code:
    menuentry "Slackware" {
    set root=(hd0,4)
    }
    and both times it went straight into my Windows 7.

    At ranch hand

    I tried

    Code:
    echo "Adding Slackware" >&2 
    cat << EOF
    menuentry "OpenSolaris" {
            set root=(hd0,4)
            chainloader +1
    }
    EOF
    and

    Code:
    echo "Adding Slackware" >&2 
    cat << EOF
    menuentry "OpenSolaris" {
            set root=(hd0,3)
            chainloader +1
    }
    EOF
    and again both times it went straight into my Windows 7.

    Do you think that if I add

    Code:
    (hd3)	/dev/sda4
    to my device.map and then add

    Code:
    echo "Adding Slackware" >&2 
    cat << EOF
    menuentry "OpenSolaris" {
            set root=(hd3,0)
            chainloader +1
    }
    EOF
    It would work? Because I am setting /dev/sda4 to my device.map and it is calling partition 1 on /dev/sda4?

    (if its a only partition on a drive, its partition 0 right?)

  5. #15
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Not seeing OS's

    (hd3,0) would be calling for your 4th HDD and using a number for the partition, 0, that is not used in grub2.

    I think it may have have trouble with this.

    How about using this script and posting the results;

    http://ubuntuforums.org/showthread.php?t=1291280
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  6. #16
    Join Date
    Mar 2008
    Location
    Southern California, USA
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Not seeing OS's

    Here is the contents of RESULTS.txt.

    Code:
    ============================= Boot Info Summary: ==============================
    
     => Grub1.97 is installed in the MBR of /dev/sda and looks on the same drive 
        in partition #1 for /boot/grub.
     => Windows is installed in the MBR of /dev/sdb
     => Windows is installed in the MBR of /dev/sdc
    
    sda1: _________________________________________________________________________
    
        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
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr
    
    sda4: _________________________________________________________________________
    
        File system:       ext3
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files/dirs:   
    
    sdb1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows XP
        Boot files/dirs:   /boot.ini /bootmgr /Boot/BCD /ntldr /NTDETECT.COM
    
    sdc1: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sdc5: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:  According to the info in the boot sector, sdc5 starts 
                           at sector 63.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x0000d8eb
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1                  63   231,994,664   231,994,602  83 Linux
    /dev/sda2         231,994,665   239,995,034     8,000,370   5 Extended
    /dev/sda5         231,994,728   239,995,034     8,000,307  82 Linux swap / Solaris
    /dev/sda3    *    239,995,035   483,267,329   243,272,295   7 HPFS/NTFS
    /dev/sda4    *    483,267,330   726,539,624   243,272,295  83 Linux
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 41.1 GB, 41110142976 bytes
    255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x05e705e7
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1    *             63    80,276,804    80,276,742   7 HPFS/NTFS
    
    
    Drive: sdc ___________________ _____________________________________________________
    
    Disk /dev/sdc: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xb0bac539
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdc1              16,065    78,156,224    78,140,160   f W95 Ext d (LBA)
    /dev/sdc5              16,128    78,156,224    78,140,097   7 HPFS/NTFS
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    /dev/sda1: UUID="1a514a1e-24ca-453b-80ba-1428cf7d31cb" TYPE="ext4" 
    /dev/sda3: UUID="35C0BF6750C1DF64" LABEL="Windows 7" TYPE="ntfs" 
    /dev/sda4: LABEL="Slackware" UUID="738f54a8-b515-4551-9c06-68cb311910af" SEC_TYPE="ext2" TYPE="ext3" 
    /dev/sda5: UUID="3ee98da1-5b89-4331-83f6-2d156500c592" TYPE="swap" 
    /dev/sdb1: UUID="C4609CB3609CAE24" TYPE="ntfs" 
    /dev/sdc5: UUID="F650454C504514B1" LABEL="New Volume" TYPE="ntfs" 
    
    =============================== "mount" output: ===============================
    
    /dev/sda1 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/patrick/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=patrick)
    
    
    =========================== sda1/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,1)
    search --no-floppy --fs-uuid --set 1a514a1e-24ca-453b-80ba-1428cf7d31cb
    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-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    	set quiet=1
    	insmod ext2
    	set root=(hd0,1)
    	search --no-floppy --fs-uuid --set 1a514a1e-24ca-453b-80ba-1428cf7d31cb
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=1a514a1e-24ca-453b-80ba-1428cf7d31cb 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,1)
    	search --no-floppy --fs-uuid --set 1a514a1e-24ca-453b-80ba-1428cf7d31cb
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=1a514a1e-24ca-453b-80ba-1428cf7d31cb 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 ###
    menuentry "Windows 7 (loader) (on /dev/sda3)" {
    	insmod ntfs
    	set root=(hd0,3)
    	search --no-floppy --fs-uuid --set 35c0bf6750c1df64
    	chainloader +1
    }
    menuentry "Windows Vista (loader) (on /dev/sdb1)" {
    	insmod ntfs
    	set root=(hd1,1)
    	search --no-floppy --fs-uuid --set c4609cb3609cae24
    	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.
    
    
    menuentry "Slackware" {
            set root=(hd0,3)
            chainloader +1
    }
    ### END /etc/grub.d/40_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    defaults        0       0
    # / was on /dev/sda1 during installation
    UUID=1a514a1e-24ca-453b-80ba-1428cf7d31cb /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=3ee98da1-5b89-4331-83f6-2d156500c592 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
        .0GB: boot/grub/grub.cfg
        .0GB: boot/initrd.img-2.6.31-14-generic
        .0GB: boot/vmlinuz-2.6.31-14-generic
        .0GB: initrd.img
        .0GB: vmlinuz
    
    =================== sda4: Location of files loaded by Grub: ===================
    
    
     247.4GB: boot/initrd.gz
     247.4GB: boot/vmlinuz
    
    ================================ sdb1/boot.ini: ================================
    
    [boot loader]
    
    timeout=3
    
    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" /noexecute=optin /fastdetect
    
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sdc1
    
    00000000  02 01 02 01 02 01 02 01  02 01 02 01 02 01 02 01  |................|
    *
    00000040  0c ff 0c 0c 0b 0b 0b 0b  0a 0a 0a 0a 0a 0a 0a 0a  |................|
    00000050  09 09 09 09 09 09 09 09  09 09 09 09 09 09 09 09  |................|
    00000060  08 08 08 08 08 08 08 08  08 08 08 08 08 08 08 08  |................|
    *
    00000080  07 07 07 07 07 07 07 07  07 07 07 07 07 07 07 07  |................|
    *
    000000c0  06 06 06 06 06 06 06 06  06 06 06 06 06 06 06 06  |................|
    *
    00000140  05 05 05 05 05 05 05 05  05 05 05 05 05 05 05 05  |................|
    *
    000001b0  05 05 05 05 05 05 05 05  05 05 05 05 05 05 00 01  |................|
    000001c0  01 01 07 fe ff ff 3f 00  00 00 c1 52 a8 04 00 00  |......?....R....|
    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
    And Here is what I the terminal output was if it is any help.

    Code:
    [sudo] password for patrick: 
    Identifying MBRs...
    Computing Partition Table of /dev/sda...
    Computing Partition Table of /dev/sdb...
    Computing Partition Table of /dev/sdc...
    Searching sda1 for information... 
    Searching sda2 for information... 
    Searching sda5 for information... 
    Searching sda3 for information... 
    Searching sda4 for information... 
    Searching sdb1 for information... 
    Searching sdc1 for information... 
    Searching sdc5 for information... 
    Finished. The results are in the file RESULTS.txt located in /home/patrick/Downloads
    I just added a attachment of the drive information from the Disk Utility.
    Attached Images Attached Images
    Last edited by Musick Man; December 5th, 2009 at 09:24 PM.

  7. #17
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Not seeing OS's

    Well the first thing that struck me is that you have grub 0.97 on the MBR of sda. On the other hand we are working with grub 1.97beta4 (I think) in your Ubuntu.

    How about posting the results of;
    Code:
    grub-install -v
    run from in your Ubuntu installation.

    If, as it appears, it is grub1.97beta4, follow these directions;

    https://wiki.ubuntu.com/Grub2#Recove...20via%20LiveCD

    Ignore the file editing instructions as that is not needed. We need grub2 recognized as being in your MBR.

    Rerun the boot info script. No need to post the whole thing but the very first entry would be nice.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  8. #18
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub 2 Not seeing OS's

    The script shows grub1.97. It can be somewhat confusing as it will show either grub0.97 or grub1.97. Both versions are currently at .97 so it easy to miss read.

    I see two boot flags which I thought was impossible? Windows needs it to boot but grub can use makeactive to set it. Does slax need it also? The boot script also does not show slax? It is usually pretty good at seeing other boot loaders, so is slax missing something, it does not look complete?
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #19
    Join Date
    Mar 2008
    Location
    Southern California, USA
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Not seeing OS's

    Results.txt (only first part)

    Code:
    ============================= Boot Info Summary: ==============================
    
     => Grub1.97 is installed in the MBR of /dev/sda and looks on the same drive 
        in partition #1 for /boot/grub.
     => Windows is installed in the MBR of /dev/sdb
     => Windows is installed in the MBR of /dev/sdc
    I only did the part that said To install GRUB 2 to the MBR, next you need to run grub-install /dev/sda and not off a live CD (The code was sudo grub-install /dev/sda and it returned with no errors reported.). Is that a problem? or should I go back and do everything like it says off a Live CD?

  10. #20
    Join Date
    Mar 2008
    Location
    Southern California, USA
    Beans
    52
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Not seeing OS's

    Oldfred: To Install SLAX I followed these instructions on the internet:

    http://gr8idea.info/os/tutorials/slax/install.html

    Could it be bad instructions?

    Also, when I open up the partition that it is installed on, I see 3 folders. A Boot folder, a Lost+Found folder and a slax folder.

    I attached the contents of the Boot folder and the Slax Folder. The Lost+found folder didnt let me access the contents.
    Attached Images Attached Images
    Last edited by Musick Man; December 5th, 2009 at 10:45 PM. Reason: Added Attachments

Page 2 of 3 FirstFirst 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
  •