SliTaz SliTaz Forum

You are not logged in.

#1 2012-04-26 11:43:22

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

live usb - correct /boot/grub/menu.lst

I tried for the first time to install Slitaz to a USB-stick. It seems correct but the menu.lst-file is empty.

How must this file look alike in case booting should happen from this USB-Stick?

Offline

#2 2012-04-26 11:51:40

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: live usb - correct /boot/grub/menu.lst

Did you use tazusb frugal or tazinst full install ?

tazusb boot menu: /boot/extlinux/extlinux.conf

Offline

#3 2012-04-26 11:59:15

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: live usb - correct /boot/grub/menu.lst

Wow, respect: 4 minutes, great!

No, I tried to install it  to /dev/sda1, it looks like a harddrive installation. There is no /boot/extlinux, just

/boot/grub

and in /boot the  vmlinuz-2.6.37-slitaz kernel file.

Did I do that wrong then?

(As I understand it I used tazinst - I mean I made it using Slitaz Panel and selected /dev/sda1 as the target to install to)

1. Formatting / partition: /dev/sda1 (ext3)

2. Installing SliTaz on: /dev/sda1

3. Configuring host name: slitaz

4. Configuring root and default user account: tux

5. Running grub-install on: /dev/sda

6. Installation complete. You can now restart (reboot)

from your SliTaz GNU/Linux system.

Copying log files (/var/log/tazinst.log)...

Unmounting target partition: /dev/sda1

Unmounting: /media/source

Offline

#4 2012-04-26 13:04:04

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: live usb - correct /boot/grub/menu.lst

This entry should work in /boot/grub/menu.lst if there are no sata drives in this computer:

title             Slitaz-4.0

root              (hd0,0)

kernel            /boot/vmlinuz-2.6.37-slitaz root=/dev/sda1

If there are sata drives in the same computer,bios will recognize them before usb flash drive. For example in my laptop with one sata drive my usb flash drive is /dev/sdb so

root (hd1,0) and root=/dev/sdb1

The best way to go is use blkid as root to get UUID of flash drive.

title             Slitaz-4.0

uuid              <replace this with uuid>

kernel            /boot/vmlinuz-2.6.37-slitaz root=UUID=<replace this with uuid>

Offline

#5 2012-04-26 13:32:38

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: live usb - correct /boot/grub/menu.lst

Nice tip, thanks! It is exactly like that: there is indeed a sata drive  so I have to correct the menu.lst according to your advice.

Stay tuned - I will edit this contribution several times! ;-)

Addition:

Yes, it works now. But I had manually to add a /boot/grub/device.map file like

(hd0)    /dev/sda

(hd1)       /dev/sdb

Thank you very much!

Offline

#6 2012-07-03 13:22:05

andriukas74
Member
Registered: 2012-07-03
Posts: 3

Re: live usb - correct /boot/grub/menu.lst

How its worked in my case: usb kingston data traveler 109 8GB formated NTFS file system

slitaz-4.0.iso file in root directory on usb drive

menu.lst looks like:

title stilaz 4.0

map /slitaz-4.0.iso (0xff) || map --mem /slitaz-4.0.iso (0xff)

map --hook root (0xff)

chainloader (0xff)

lets say if you copy slitaz-4.0.iso file to boot directory on usb drive:

title stilaz 4.0

map /boot/slitaz-4.0.iso (0xff) || map --mem /boot/slitaz-4.0.iso (0xff)

map --hook root (0xff)

chainloader (0xff)

Valentin B.

Offline

#7 2012-08-23 23:42:08

ooseven
Member
Registered: 2012-08-22
Posts: 57

Re: live usb - correct /boot/grub/menu.lst

Hello, I have some what the same problem. I have windows 7 and slitaz 4.0:

I need to get windows to show up on my linux grub.

Any idea?

Offline

#8 2012-08-24 21:21:45

BugRaiser
Member
Registered: 2012-06-19
Posts: 39

Re: live usb - correct /boot/grub/menu.lst

Please try searching the internet first, I've done a simple search on Google and numerous guides appeared.

If the solutions you find don't get the job done, please post your hard disk layout i.e. on what partitions you have Windows 7 and Slitaz 4, respectively, installed.

Offline

#9 2012-08-25 00:13:49

ooseven
Member
Registered: 2012-08-22
Posts: 57

Re: live usb - correct /boot/grub/menu.lst

Ok, I have windows 7 on /dev/hda1

And tlitaz 4.0 on sda1.

So I need to get windows on slitaz grub.

I just had to reinstall cause I did it wrong. But no worries mate.

When you some thing you need to put some time getting to know one

another....lol

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 8 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]