Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

GRUB problem

  • 04-03-2010 2:52pm
    #1
    Banned (with Prison Access) Posts: 6,201 ✭✭✭


    Hey all,

    Trying to install Linux Mint 8 at the moment, but I can't seem to set up GRUB properly.

    I've three hard drives:
    320gb - Mint installed here with 10gb swap area
    400gb - Media drive
    500gb - Empty.

    All drives are in Ext4 format, here's the fdisk output:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x9d769d76
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       38161   306528201   83  Linux
    /dev/sda2           38162       38913     6040440    5  Extended
    /dev/sda5           38162       38913     6040408+  82  Linux swap / Solaris
    
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x06f506f5
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       60801   488384001   83  Linux
    
    Disk /dev/sdc: 400.1 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x6daa4dac
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       48641   390708801   83  Linux
    

    So when it boots up it goes through BIOS, loads GRUB and outputs 'no such disc'.

    Can someone tell me how to set up GRUB to point to the Mint installation?

    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    You need a fairly new version of grub to boot off ext4 IIRC.

    what does your /boot/grub/menu.lst file contain?


  • Banned (with Prison Access) Posts: 6,201 ✭✭✭KamiKazi


    Khannie wrote: »
    You need a fairly new version of grub to boot off ext4 IIRC.

    what does your /boot/grub/menu.lst file contain?

    I think it's Grub2 I have, as there's no menu.lst but there is a 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 10c55c63-b033-4595-8c35-2a0899955144
    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/06_mint_theme ###
    insmod ext2
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 10c55c63-b033-4595-8c35-2a0899955144
    insmod png
    if background_image /boot/grub/linuxmint.png ; then
      set color_normal=white/black
      set color_highlight=white/light-gray
    else
      set menu_color_normal=white/black
      set menu_color_highlight=white/light-gray
    fi
    ### END /etc/grub.d/06_mint_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (/dev/sda1)" {
            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 10c55c63-b033-4595-8c35-2a0899955144
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=10c55c63-b033-4595-8c35-2a0899955144 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Linux Mint 8 Helena, 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 10c55c63-b033-4595-8c35-2a0899955144
    	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=10c55c63-b033-4595-8c35-2a0899955144 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 ###
    


  • Registered Users, Registered Users 2 Posts: 634 ✭✭✭loldog


    Are you sure the BIOS is set to boot from the correct hard drive?

    Other than that, maybe you can find the answer by trawling through the Ubuntu documentation:

    https://wiki.ubuntu.com/Grub2

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

    .


  • Banned (with Prison Access) Posts: 6,201 ✭✭✭KamiKazi


    loldog wrote: »
    Are you sure the BIOS is set to boot from the correct hard drive?

    Doh! I feel like an idiot :o

    Thanks loldog!


  • Registered Users, Registered Users 2 Posts: 634 ✭✭✭loldog


    KamiKazi wrote: »
    Doh! I feel like an idiot :o

    Thanks loldog!

    Don't feel bad, I googled a bit and saw that a few other people did the same thing.

    .


  • Advertisement
Advertisement