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

slitaz on harddisk & dual boot with windows7
  • skateboredskatebored July 2010
    halu...

    already installed slitaz on may harddisk drive :
    harddisk = 1 [sda]
    sda1 = windows7 system loader
    sda2 = windows7
    sda3 = slitaz
    sda4 = my data

    grub already installed at sda [during slitaz's installation].
    the problem is the grub menu wont shows after rebooting.
    it keep execute windows7 loader and ignoring grub menu.

    would you please help me?
    thanks before...
  • mojomojo July 2010
    This is if you used slitaz installer for a full slitaz install on your hard drive with grub.

    Boot into slitaz live
    Open terminal, be root.
     root@slitaz: grub

    enter
     root@slitaz: find /boot/grub/stage1

    enter
    result of this is root,from what you say above sda3 = (hd0,2)
    root@slitaz: root (hd0,2)

    enter
    root@slitaz: setup (hd0)

    enter
    root@slitaz: quit

    Restart,you should see grub menu and be able to boot into slitaz on hard drive.
    Open terminal, be root.
    root@slitaz: nano /boot/grub/menu.lst

    root@slitaz: fdisk -l

    Whichever ntfs windows partition has the boot flag is what you will use for X in (hd0,X)
    for rootnoverify in menu.lst
    Grub starts counting at 0
    I think it is (hd0,0) the system loader partition /dev/sda1
    add this to menu.lst and save

    title Windows Seven
    rootnoverify (hd0,0)
    makeactive
    chainloader +1

    Reboot, pick Windows from grub menu
  • tikbalangtikbalang July 2010
    i use winxp and grub4dos, have a look at my config:

    c:\boot.ini

    [boot loader]

    timeout=10

    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

    [operating systems]

    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

    C:\grldr="Grub4Dos"



    c:\menu.lst

    title Slitaz

    find --set-root --ignore-floppies /boot/bzimage

    kernel /boot/bzimage rw root=/dev/null home=4039-E1EC autologin lang=en_US kmap=us vga=789 screen=1024x768x24

    initrd /boot/rootfs.gz



    blank lines added in case of wraparound.
    "home=" uses UUID.
  • tikbalangtikbalang July 2010
    sorry, double post.
  • skateboredskatebored July 2010
    @all :
    will try those tonight and let us know.
    thank you...
  • skateboredskatebored July 2010
    @mojo :
    already tried, but still no luck :(

    find /boot/grub/stage1
    return error 15: file not found

    root (hd0,2)
    return filesystem type unknown, partition type 0x7

    setup (hd0)
    return error 17: cannot mount selected partition

    and this is my menu.lst at sda3 :
    default 0
    timeout 8
    color yellow/brown light-green/black

    title slitaz gnu bla...
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/sda3

    heres my device.map :
    (hd0) /dev/sda [my harddrive]
    (hd1) /dev/sdc [my flashdisk]

    please help...

  • skateboredskatebored July 2010
    @tikbalang :
    wont work at windows7 64 bit architecture...
  • tikbalangtikbalang July 2010
    i'm not familiar with win7 and grub but i read somewhere that win7 uses the first partition as boot. if it uses boot.ini as winxp, maybe you can add grub there? it seems slitaz installer put grub to the PBR instead of MBR that's why win7 boot loader is still being started. menu.lst is useless unless grub can be started.
  • tikbalangtikbalang July 2010
    reading around, win7 does not use boot.ini at all but you can still add grub to win7 boot menu by using "bcdedit.exe".

    if slitaz files are indeed in sda3, then your menu.lst seems okay.
  • mojomojo July 2010
    For the commands to work you need these grub binaries in /boot/grub of /dev/sda3 (hd0,2)
    The same locale where you found menu.lst and device.map

    -rw-r--r-- 1 root root 8108 2008-12-06 16:53 e2fs_stage1_5
    -rw-r--r-- 1 root root 7856 2008-12-06 16:53 fat_stage1_5
    -rw-r--r-- 1 root root 16 2008-12-06 16:53 installed-version
    -rw-r--r-- 1 root root 8712 2008-12-06 16:53 jfs_stage1_5
    -rw-r--r-- 1 root root 7352 2008-12-06 16:53 minix_stage1_5
    -rw-r--r-- 1 root root 9756 2008-12-06 16:53 reiserfs_stage1_5
    -rw-r--r-- 1 root root 512 2008-12-06 16:53 stage1
    -rw-r--r-- 1 root root 121460 2008-12-06 16:53 stage2
    -rw-r--r-- 1 root root 9556 2008-12-06 16:53 xfs_stage1_5

    If you don't see them try this command as root:
    Make local mount point for /dev/sda3 ,in this example I use /media/skatebored
    root@slitaz: mkdir /media/skatebored

    root@slitaz: mount /dev/sda3 /media/skatebored

    Verify mount:
    root@slitaz: ls -la /media/skatebored

    root@slitaz: grub-install --root-directory=/media/skatebored /dev/sda


    The last command should first copy the grub binaries to /boot/grub, then run the setup from my previous post.
    I tried this command in the past, sometimes the install failed because it didn't move the files.
    This may be the reason slitaz installer fails to install grub.
    If this doesn't work:
    Verify the grub binaries are in /boot/grub
    root@slitaz: ls -la /media/skatebored/boot/grub

    If present rerun commands from previous post.
    Not there copy them:
    root@slitaz: cp /usr/lib/grub/i386-pc/*     /media/skatebored/boot/grub

    Rerun commands from previous post.




  • skateboredskatebored July 2010
    @mojo :
    those files are exist at my /dev/sda3 [/boot/grub/],
    already tried to re-copied as you suggest but still no luck :(

    @tikbalang :
    at this point id agreed with tikbalang.
    it keep bootin win7 because slitaz's loader is not found or somethin.
    i did follow your suggestion using bcedit.
    id added slitaz loader at win7 loader and it appear,
    but im confused what file should i call for the first time?
    already tried call /boot/grub/menu.lst but not workin.

    some ubuntu's users are calling linux.bin file,
    but i dont know what file should i call for slitaz?

    please help...

    thanks again for mojo & tikbalang :)
  • tikbalangtikbalang July 2010
    you need to call the grub bootloader. in grub4dos, this is called "grldr" (equivalent to winxp's "ntldr") and this has to exist in the root of the boot partition together with menu.lst.

    from mojo's last post i think you can call one of the *stage* files. this looks like grub's loader.

    if you don't mind a frugal install, i have a thread somewhere here outlining how to make slitaz "portable", with persistence. it's like booting from the livecd but i also works on usb and hdd.
  • mojomojo July 2010
    The first time dualbooting I used grub4dos to chainload from Win2k boot menu-> C:\grldr->/boot/grub/menu.lst to boot full install of linux.
    Required regular grub installed to the bootsector of partition with linux instead of MBR of drive.

  • skateboredskatebored July 2010
    halu...

    already tried many ways, still wont works...
    im very exiting bout slitaz,
    but this loader is really #####

    anyway, this the last bcedit conf i did :
    C:\Windows\system32>bcdedit.exe

    Windows Boot Manager
    --------------------
    identifier {bootmgr}
    device partition=\Device\HarddiskVolume1
    description Windows Boot Manager
    locale en-US
    inherit {globalsettings}
    default {current}
    resumeobject {b9c02960-8bee-11df-b5d9-dd0ccc965211}
    displayorder {current}
    {b9c02964-8bee-11df-b5d9-dd0ccc965211}
    toolsdisplayorder {memdiag}
    timeout 10

    Windows Boot Loader
    -------------------
    identifier {current}
    device partition=C:
    path \Windows\system32\winload.exe
    description Windows 7
    locale en-US
    inherit {bootloadersettings}
    recoverysequence {b9c02962-8bee-11df-b5d9-dd0ccc965211}
    recoveryenabled Yes
    osdevice partition=C:
    systemroot \Windows
    resumeobject {b9c02960-8bee-11df-b5d9-dd0ccc965211}
    nx OptIn

    Real-mode Boot Sector
    ---------------------
    identifier {b9c02964-8bee-11df-b5d9-dd0ccc965211}
    device partition=D:
    path \boot\grub\stage1
    description slitaz

    and the result is nothing but GRUB letters and nothing after that.

    so anyone, please help...
    thx b4
  • tikbalangtikbalang July 2010
    you are getting close. however, i am at my limits since i am not familiar with grub nor win7. you may have better success if you google "bcdedit grub".

    i still offer the nomadic frugal method. the core slitaz files boot like a livecd but the home folder points to the boot partition to save userconfig. you can use it to install to hdd but you still need to figure out how to chainload from win7 bootloader. to keep installed apps you need to save the filesystem when logging out.

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