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

how to add slitaz to grub2...
  • sidsid November 2009
    HI folks!
    i have debian and want to install slitaz cooker...how to add Slitaz to debian's grub2?
  • seawolfseawolf November 2009
    title SliTaz GNU/Linux (cooking) (Kernel 2.6.30.6-slitaz)

    root (hd0,4)

    kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/sda5



    is my line in /boot/grub/menu.lst :)
  • AtleAtle December 2009
    You need to run in terminal

    update-grub

    i think...
    In Debian.
  • seawolfseawolf December 2009
    I don't think GRUB needs updating, it looks directly at the file in the parition it boots from. Remember that being one advantage of many over LILO. I might be wrong though!
  • sidsid December 2009
    done!
  • AtleAtle December 2009
    menu.lst is the way if you have grub. In grub2, you can just run update-grub in terminal.

    If i have 3 distros installed and lets say i put in Slitaz as the fourth, then i just run this update-grub in terminal, and at next boot, slitaz will be there as well.

    If I don't run update-grub, it want see it.
  • DeanDean December 2009
    I can't boot slitaz cooking.I install slitaz in my acer netbook. I use grub2 bootloader. My system has 3 OS already such -XP, Ubuntu 9.10, and Ubuntu NBR 9.10. I installed slitaz in a separate partition-
    /dev/sda10
    Now I used seawolf's configuration with using number in my case.. /sda10. here is my config, but doen't boot:

    title SliTaz GNU/Linux (cooking) (Kernel 2.6.30.6-slitaz)

    root (hd0,9)

    kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/sda10

    what went wrong?Any suggestion plz!
  • seawolfseawolf December 2009
    Hmmm, should be okay as long as sda10 is picked up by SliTaz's udev (which it should be). Are there any error messages given?

    In GRUB, if you edit the root line and use:
    root (hd0,
    to autocomplete the partitions, does it look right?
  • DeanDean December 2009
    When I switch on the machine, I select Slitaz, then hit enter. I got this

    Error 15: File not found


    I will try

    root (hd0, to autocomplete the partitions).
  • DeanDean December 2009
    when I put the line of root as

    root (hd0, to autocomplete the partitions).

    or

    root (hd0, autocomplete the partitions).

    it gives...... Error 11: Unrecognised device string
  • seawolfseawolf December 2009
    My post got mangled: it was meant to be

    root (hd0,

    and then the tab key straight after the comma with no space. it'll list the partitions that can fill the arguments.

    root (hd0{TAB}
  • sidsid December 2009
    u must edit the file /etc/grub.d/40_custom : http://i49.tinypic.com/29gg589.png

    sudo gedit /etc/grub.d/40_custom

    sudo update-grub






  • DeanDean December 2009
    Still not success.I have done the follow as well-

    sudo gedit /etc/grub.d/40_custom

    sudo update-grub

    but it doesn't show Slitaz at boot menu. the following lines are after I have done change with

    [ sudo gedit /etc/grub.d/40_custom]

    ......................................................

    #!/bin/sh

    exec tail -n +3 $0

    menuentry SliTaz GNU/Linux (cooking) (Kernel 2.6.30.6-slitaz) {


    insmod ext3

    set root= (hd0,10)

    linux /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda10

    }

    # 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.


    .............................................


    And, a part of my grub configuration of Slitaz with my working UNR(as 3rd O.S) is showing below:


    title Ubuntu-remix 9.10

    root (hd0,8)

    kernel /vmlinuz ro root=/dev/sda9

    initrd /initrd.img




    menuentry SliTaz GNU/Linux (cooking) (Kernel 2.6.30.6-slitaz) {

    insmod ext3

    set root= (hd0,10)

    linux /boot/vmlinuz-2.6.30.6-slitaz root=/dev/sda10

    }



    *N.B-I installed Slitaz in /dev/sda10. I used grub2 upgraded from ubuntu9.04. Now I use ubuntu9.10
  • sidsid December 2009
    insmod 'ext2'

    root='/dev/hda10'
  • DeanDean December 2009
    I will try it........insmod 'ext2'

    root='/dev/hda10'

    Actually when I installed I formatted the partition as "ext3" and I saw as..../dev/sda10. So, in my case, should I edit as "ext2" and ""/hda10.

    As my OS was upgraded from ubuntu 9.04 to 9.10 and grub to grub2, Today I deleted my ubuntu system and I did clean installation of Ubuntu karmic 9.10. I installed Slitaz again.It was horrifying me. it doesn't boot. Error message was given as there no partition.
    I am right now in the middle of re-installation of my Ubuntu 9.10. Thanks guys. I will keep trying .
  • DeanDean December 2009
    Success. Thanks all forum members.For those new user, it might be helpful how to install Slitaz cooking with the following summary. I just summarised the information given by the members:
    Here it goes-

    My system-

    acer aspireone 160gb/(triple boot-xp/ubuntu9.10/ubuntu UNR 9.10+ slitaz now)

    -slitaz cooking install from CD

    -install in partion /dev/sda10

    -ext3

    Now follow forum member # * sid's advice (above)

    u must edit the file /etc/grub.d/40_custom : http://i49.tinypic.com/29gg589.png

    sudo gedit /etc/grub.d/40_custom

    sudo update-grub

    This is how my edition shows:

    #!/bin/sh

    exec tail -n +3 $0

    menuentry SliTaz GNU/Linux (cooking) (Kernel 2.6.30.6-slitaz) {

    insmod ext2

    set root= (hd0,10)

    linux /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda10

    }

    # 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.

    ..................................................................
    now boot the machine. Slitaz is show. it works. Thank you. All the credits to forum members.
  • DeanDean December 2009
    oops! Sorry, I did a typo mistake. I wrote (insmod ext3).I edited the above message from (insmod ext3) to (insmod ext2)) , which working entry is :


    insmod 'ext2'

    root='/dev/hda10'

    ( from sid's advice)

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