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

grub install fails
  • tulasacratulasacra August 2010
    hi ..i had 1 hdd split to 2 ntfs partitions

    installed slitaz to the second
    grub install at the end faield due to "The file /boot/grub/stage1 not read correctly"
    reinstalling grub ends in the same result

    gparted shows hda1 as ntfs and hda2 as ext3
    fdisk -l shows both as ntfs

    linux shows itself installed on hda2
    windows xp sees hda2 but empty

    grub does not show itself during booting ..winows fires right away (and thats not what grub should do according to its config ..so its not there)


    how to fix this please? :) iv tried some googling about grub install problems but nothing of that helped ..i think fdisk showing hda2 as ntfs is the problem
  • linbuflinbuf August 2010
    Boot your slitaz-cdrom and start a terminal.
    Become su.
    # fdisk /dev/hda
    p
    This should reveal to you your two partitions and their format
    I guess hda1 is ntfs and hda2 is ext3. (when you installed Slitaz on /dev/hda2 it is reformatted as ext3, remember?)
    q
    # mkdir /hd (this is temporary during this session of course)
    # mount /dev/hda2 /hd (if your installation of Slitaz was correct, this should work).
    # cd /hd
    # ls

    Now you should see the dirs of your installed Slitaz.
    Now it must become bootable....
    There are two versions of grub. There old grub, which is installed default, and grub2,
    if you want grub2 (it is indeed the newest), there is a pkg in the repository.
    This story is about good old grub vs. 0.97.

    # cd /usr/sbin
    # grub-install --root-directory=/hd /dev/hda
    will do the trick of installing old grub on your /dev/hda disk
    It worked for me.

    Do a reboot and your hd should boot
    As I have only Slitaz mounted on my own hd, I do not know if the Windows on your /dev/hda1 is installed in grub automatic but afterwards you can edit file /boot/grub/menu.lst
    succes, linbuf
  • tulasacratulasacra August 2010
    thanks for the prompt reply

    >I guess hda1 is ntfs and hda2 is ext3
    nope, it says both are ntfs :( this is weird

    >Now you should see the dirs of your installed Slitaz.
    yes, i see them

    >will do the trick of installing old grub on your /dev/hda disk
    i only had there "grub-install" (with the '-') and no it didnt work, same error
    "The file /hd/boot/grub/stage1 not read correctly"
    i used the grub from the current slitaz-loram-cd ..it says its 0.97
    (btw i have no network connection on that machine)
  • mojomojo August 2010
    hi ..i had 1 hdd split to 2 ntfs partitions
    linux or regular grub installed to a ntfs partition doesn't work.
    Been there,done that,failed.I install linux to fat16 no problem.
    I hear fat32 works but haven't tried it.
    Don't modify with fdisk, it can be dangerous and disagree with what gparted indicates.
    A good tool for checking your partition table is testdisk.
  • tulasacratulasacra August 2010
    managed to install grub2
    but when it starts theres just the grub promp ..so i try:

    set root=(hd0,2)
    chainloader +1
    error: invalid signature
  • mojomojo August 2010
    Try these commands:
    1.
    root@slitaz: grub-mkdevicemap

    2.
    root@slitaz: update-grub

  • tulasacratulasacra August 2010
    booted the live cd
    installed grub2
    grub-mkdevicemap - OK
    update-grub - not found :/
  • mojomojo August 2010
    Surprise, /usr/sbin/update-grub was excluded from grub2.tazpkg \^_^/
    This does the same thing:
    root@slitaz: grub-mkconfig -o /boot/grub/grub.cfg

    I pull all my information for grub2 from here:
    http://members.iinet.net/~herman546/p20/GRUB2%20Bash%20Commands.html#grub-mkconfig
  • tulasacratulasacra August 2010
    grub-probe: error: cannot find a device for /

    i tried to create the grub.cfg manually:

    set root=(hd0, 2)
    linux /boot/vmlinuz-2.6.30.6-slitaz root=dev/hda2

    but it says:
    cannot allocate real mode pages
  • j0shj0sh November 2010
    same problems.. waiting for hints ;-)
  • j0shj0sh November 2010
    same problems.. waiting for hints ;-)
  • j0shj0sh November 2010
    same problems.. waiting for hints ;-)
  • mojomojo December 2010
    This is a grub2 bug.
    https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/513528
    Use grub 0.97 or lilo .
  • j0shj0sh December 2010
    so the fact is that we cant install grub or grub2...perfect :-(
  • ChristopheChristophe December 2010
    I ended up leaving grub2 on my machine, then adding grbu4dos to the XP partition, from which I can have access to my slitaz system ;)

    Meaning I have been back using slitaz after 3 months being away.....

  • j0shj0sh December 2010
    - install Sliataz manuel

    - copy grub from livesystem

    - create an menu.lst

    - change dir to /mnt/boot/grub/

    - start grub and install it manual

    -- works for me :-)

     

    have written it a little bit more specific in my Blog (German): KLICK

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