This is the old SliTaz forum - Please use the main forum.slitaz.org

GRUB2 on cooking...
  • bofhbofh December 2010
    Hi there!

    how to activate grub2? got uninstalled grub(1,legacy or whatever) and still shows the old grub...
  • bofhbofh December 2010
    ...?...
  • mojomojo December 2010
    root@slitaz: grub-mkconfig -o /boot/grub/grub.cfg

    More grub2 info:
    http://members.iinet.net/~herman546/p20/GRUB2%20Bash%20Commands.html#grub-mkconfig
  • bofhbofh December 2010
    i did it but something's wrong[at starts shows 'old grub']

    /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 $prefix/grubenv ]; then
    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
    }
    set timeout=5
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "GNU/Linux, with Linux 2.6.34-slitaz" --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set c2d01292-8ad0-4a5c-95d4-f4f7629104f5
    echo Loading Linux 2.6.34-slitaz ...
    linux /boot/vmlinuz-2.6.34-slitaz root=/dev/hda3 ro
    }
    menuentry "GNU/Linux, with Linux 2.6.34-slitaz (recovery mode)" --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set c2d01292-8ad0-4a5c-95d4-f4f7629104f5
    echo Loading Linux 2.6.34-slitaz ...
    linux /boot/vmlinuz-2.6.34-slitaz root=/dev/hda3 ro single
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### 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 ###
  • mojomojo December 2010
    root@slitaz: grub-install  /dev/hda
  • bofhbofh December 2010
    # grub-install /dev/hda
    -sh: grub-install: not found
  • mojomojo December 2010
    root@slitaz: /usr/sbin/grub-install  /dev/hda
    If you receive same error verify grub-install is in /usr/sbin
    Reinstall grub2.tazpkg if it's not there.


  • bofhbofh December 2010
    how to reinstall? there's no option on package manager,just these:

    block ~ repack ~ remove ~ view files

    man...thx 4 the attendance!

  • mojomojo December 2010
    root@slitaz: tazpkg get-install grub2 --forced
  • bofhbofh December 2010
    no dude...same s h t...now got the grubinstall on /usr/sbin/ but still at starts shows 'old grub'

    impossible to install grub2!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social