Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello, I have Windows and Linux Pardus distribution. I installed Grub. (Actually I don't remember how could i do that. I founded the way from Google) After all of that, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4

    Grub Error 15


    Hello,

    I have Windows and Linux Pardus distribution. I installed Grub. (Actually I don't remember how could i do that. I founded the way from Google)

    After all of that, I decided to try Ubuntu. I installed it onto Pardus partition. But I am facing Grub 15 Error at the moment?

    How can I achieve that? What can I do?

    Thanks for your replies and helps..

    Kind regards,

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Hello and Welcome!

    Since you're unable to boot into Ubuntu, boot up with the Ubuntu disc and run a live session.
    Open a terminal and post the output of
    Code:
    sudo fdisk -l
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    Thank you very much jayd512..

    Below is the output :

    ubuntu@ubuntu:~$ sudo fdisk -l

    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x3c690772

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 312571903 156284928 7 HPFS/NTFS/exFAT
    /dev/sda2 312573950 625139711 156282881 f W95 Ext'd (LBA)
    /dev/sda5 312573952 522737663 105081856 7 HPFS/NTFS/exFAT
    /dev/sda6 522739712 620394495 48827392 83 Linux
    /dev/sda7 620396544 625139711 2371584 82 Linux swap / Solaris
    ubuntu@ubuntu:~$

  4. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    22
    Quote Originally Posted by bradrevolver View Post
    But I am facing Grub 15 Error at the moment?
    Hi. A grub error 15 would be from legacy grub, not grub 2 which is what Ubuntu uses at the moment. It sounds as though either that you've installed an obsolete version of Ubuntu (9.04 or before) or that grub2 didn't install properly and you have the remnants of legacy grub in the mbr from an earlier Linux installation. Which version of Ubuntu did you install?

    It would be useful to see more information than fdisk can give us. The boot info script hosted on sourceforge is perfect for this, but I can't post a direct link since I don't have the necessary number of posts yet. (A very understandable anti-spam measure, I guess.) But if you google "boot info script sourceforge" you'll find it easily enough. If you find a reference to ghulselmans and meierfra, you've found the right one. Boot up the Ubuntu live CD again, download and run the boot info script and post the contents of your RESULTS.txt file. That will give all the information needed (hopefully) to diagnose and fix your problem. By the way, the output is quite lengthy. You need to enclose it between [code] and [/code] tags.

  5. #5
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Posts
    1,283
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  6. #6
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    I am grateful for your helps.. I am learning..

    Here is my RESULTS.txt :

    Code:
                      Boot Info Script 0.60    from 17 May 2011
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the 
        same drive in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.
    
    sda1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:   No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    sda2: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:   According to the info in the boot sector, sda5 starts 
                           at sector 2048.
        Operating System:  
        Boot files:        
    
    sda6: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  Grub2 (v1.99)
        Boot sector info:   Grub2 (v1.99) is installed in the boot sector of sda6 
                           and looks at sector 532743496 of the same hard drive 
                           for core.img. core.img is at this location and looks 
                           for  on this drive.
        Operating System:  Ubuntu 11.10
        Boot files:        /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab 
                           /boot/grub/core.img
    
    sda7: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1    *          2,048   312,571,903   312,569,856   7 NTFS / exFAT / HPFS
    /dev/sda2         312,573,950   625,139,711   312,565,762   f W95 Extended (LBA)
    /dev/sda5         312,573,952   522,737,663   210,163,712   7 NTFS / exFAT / HPFS
    /dev/sda6         522,739,712   620,394,495    97,654,784  83 Linux
    /dev/sda7         620,396,544   625,139,711     4,743,168  82 Linux swap / Solaris
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/loop0                                              squashfs   
    /dev/sda1        7698E67F98E63D6D                       ntfs       OS
    /dev/sda5        8616E84A16E83D35                       ntfs       DATA
    /dev/sda6        6edcbba1-5e67-4c51-bfd0-8e29f3749ad0   ext4       
    /dev/sda7        8d488a35-c23c-46e8-b75f-9da6d71c937b   swap       
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    
    
    =========================== sda6/boot/grub/menu.lst: ===========================
    
    --------------------------------------------------------------------------------
    title   Windows 7
    root   (hd0,0)
    makeactive
    chainloader   +1
    --------------------------------------------------------------------------------
    
    =========================== sda6/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 video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos6)'
      search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
      set locale_dir=($root)/boot/grub/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    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
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	set gfxpayload=$linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
    	linux	/boot/vmlinuz-3.0.0-12-generic root=UUID=6edcbba1-5e67-4c51-bfd0-8e29f3749ad0 ro   quiet splash vt.handoff=7
    	initrd	/boot/initrd.img-3.0.0-12-generic
    }
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
    	echo	'Loading Linux 3.0.0-12-generic ...'
    	linux	/boot/vmlinuz-3.0.0-12-generic root=UUID=6edcbba1-5e67-4c51-bfd0-8e29f3749ad0 ro recovery nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.0.0-12-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='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos6)'
    	search --no-floppy --fs-uuid --set=root 6edcbba1-5e67-4c51-bfd0-8e29f3749ad0
    	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/sda1)" --class windows --class os {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 7698E67F98E63D6D
    	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 ###
    --------------------------------------------------------------------------------
    
    =============================== sda6/etc/fstab: ================================
    
    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' 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/sda6 during installation
    UUID=6edcbba1-5e67-4c51-bfd0-8e29f3749ad0 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda7 during installation
    UUID=8d488a35-c23c-46e8-b75f-9da6d71c937b none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda6: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
                   =                boot/grub/core.img                             1
                   =                boot/grub/grub.cfg                             1
                   =                boot/grub/menu.lst                             1
                   =                boot/initrd.img-3.0.0-12-generic               2
                   =                boot/vmlinuz-3.0.0-12-generic                  1
                   =                initrd.img                                     2
                   =                vmlinuz                                        1
    
    =============================== StdErr Messages: ===============================
    
    unlzma: Decoder error
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in

  7. #7
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Boot your Ubuntu Live CD, open a terminal and enter the following command to create a mount point:

    sudo mkdir /mnt/sda
    Then run the following command:

    sudo grub-install --root-directory=/mnt/sda /dev/sd
    There is also an Ubuntu Grub2 tutorial on the following page with a lot more detailed information:

    https://help.ubuntu.com/community/Grub2

    You might want to run sudo update-grub from a terminal after you have booted into Ubuntu, I'm not sure that is necessary?

  8. #8
    Just Joined!
    Join Date
    Oct 2011
    Posts
    22
    @yancek, sorry, but I don't see how that's going to work. You haven't mounted sda6 to your created mountpoint and you need "/dev/sda" at the end of the grub-install command, not "/dev/sd".

    @bradrevolver, you have grub legacy installed to your mbr and Ubuntu 11.10 installed to partition sda6 as the root partition. Rather curiously you have both grub2 and grub legacy configuration files. Since this appears to be a fresh install of 11.10 (no previous kernels), it would be interesting to know how grub legacy got there. Also, grub2 is in the boot sector of sda6 where it needs to be in the mbr.

    This following should work. Boot a live Ubuntu 11.10 CD. It needs to be 11.10 and not another version. There are probable minor incompatibilities between the point versions of grub2 in the more recent Ubuntu releases. Choose "try Ubuntu" to get you to the desktop. Open a terminal.

    1 - mount sda6:

    Code:
    sudo mount /dev/sda6 /mnt
    2 - Install grub to the mbr:

    Code:
    sudo grub-install --root-directory=/mnt /dev/sda
    That's it. You already have a Windows menu entry in your grub.cfg file so you *should* get a fully-working grub menu when you reboot, but if there are any problems, run "sudo update-grub" from your permanent Ubuntu installation as yancek suggests.

  9. #9
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    You haven't mounted sda6 to your created mountpoint and you need "/dev/sda" at the end of the grub-install command, not "/dev/sd".
    Yes. Absolutely right. I left my computer for a time and forgot the mount step. The sd was a typo, happens when not checking. Thanks for correcting that.

  10. #10
    Just Joined!
    Join Date
    Oct 2011
    Posts
    22
    Quote Originally Posted by yancek View Post
    The sd was a typo, happens when not checking.
    I always blame the keybraod - er - keyboard!

Page 1 of 2 1 2 LastLast

Posting Permissions

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