SliTaz SliTaz Forum

You are not logged in.

#1 2012-05-08 19:29:04

lkraemer
Member
Registered: 2012-05-08
Posts: 18

Slitaz 4.0 Install to USB Flash Drive

I have been trying to install Slitaz 4.0 to a 4G Centon USB Flash Drive.  I keep getting an ERROR

message about "File Not Found".

In looking through the grub menu I see where it loads "splash.xpm.gz", but that file hasn't

been copied to my USB Flash Drive.  I tried copying the splash.xpm.gz to the ~/boot/grub

subdirectory and that gets rid of the error.

I then modified the menu.lst file as follows:

# /boot/grub/menu.lst: GRUB boot loader configuration.

#

# By default, boot the first entry.

default 0

# Boot automatically after 8 secs.

timeout 8

# Graphical splash image.

splashimage=/boot/grub/splash.xpm.gz

# Change the colors.

#color yellow/brown light-green/black

# For booting SliTaz from : /dev/sda1

#

title SliTaz GNU/Linux (cooking) (Kernel vmlinuz-2.6.37-slitaz)

#Modified from (hd1,0) to (hd0,0)

root (hd0,0)

#Modified from root=/dev/sdb1 to root=/dev/sda1

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

quiet 

But, it still doesn't boot.  It hangs.

Obviously, there is something else wrong, but I haven't found it.

Has anyone got an idea of what the problem could be?

Thanks.

Larry

Offline

#2 2012-05-09 22:32:49

lkraemer
Member
Registered: 2012-05-08
Posts: 18

Re: Slitaz 4.0 Install to USB Flash Drive

OK, I have a bit more data for you.  I get an group of ERROR messages right before my Slitaz 4.0

Core (USB Installed) software hangs.

  [Linux-bzImage, setup=0x3400, size=0x25d0a0]

request_module: runaway loop modprobe binfmt-464c

request_module: runaway loop modprobe binfmt-464c

request_module: runaway loop modprobe binfmt-464c

request_module: runaway loop modprobe binfmt-464c

request_module: runaway loop modprobe binfmt-464c

sd 6:0:0:0 [sdb] Assuming drive cache: write through

sd 6:0:0:0 [sdb] Assuming drive cache: write through

sd 6:0:0:0 [sdb] Assuming drive cache: write through

At this point it hangs for ever....

CNTL ALT DEL reboots........

Thanks.

Larry

Offline

#3 2012-05-09 22:57:12

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

Re: Slitaz 4.0 Install to USB Flash Drive

Do you have other installs of linux running on other drives hooked to the same computer your trying to boot this on?

If yes unplug all the other drives until you straighten this out.

Offline

#4 2012-05-10 01:00:45

lkraemer
Member
Registered: 2012-05-08
Posts: 18

Re: Slitaz 4.0 Install to USB Flash Drive

mojo,

Yes, I have a 500G SATA Drive in my Asus Laptop, and I have been trying for two days to install

Slitaz 4.0 to the 4G Centon USB Flash Drive.

I've used gparted in Debian 6 "Squeeze" to create the ex2 (and also tried ext3) partition.

I've formatted it as ext2 (and also tried ext3) and set the boot flag.  I've also given it

a Label of Slitaz.

From there I use a LiveCD and do an Install from the Panel.  I skip the gparted section and

select to install on /dev/sdb1 with formatting to ext2 (and also tried ext3)

When the build is finished, I copy the splash.xpm.gz from the LiveCD to the mounted Slitaz USB

Flash Drive.  Then I edit the /media/Slitaz/boot/grub/menu.lst file as stated below.

My modified the menu.lst file:

# /boot/grub/menu.lst: GRUB boot loader configuration.

#

# By default, boot the first entry.

default 0

# Boot automatically after 8 secs.

timeout 8

# Graphical splash image.

splashimage=/boot/grub/splash.xpm.gz

# Change the colors.

#color yellow/brown light-green/black

# For booting SliTaz from : /dev/sda1

#

title SliTaz GNU/Linux (cooking) (Kernel vmlinuz-2.6.37-slitaz)

#Modified from (hd1,0) to (hd0,0)

root (hd0,0)

#Modified to add rootdelay=8

kernel /boot/vmlinuz-2.6.37-slitaz root=/dev/sdb1 rootdelay=8 quiet

(I've also tried root=/dev/sda1, but that didn't work either)

From there I just try to boot it.  At times it looks as if it will run, but then it hangs.

I'm at wits end.....

I'd also like to know how to make it persistent, assuming I can get it to boot from the USB Drive.

I haven't found anything with Google or searches of the forum that appear to work.  I know

the F2 Key (or maybe F3) states that home=sda[1..x] can be used to make it persistent.  I haven't

had any luck with that so far either.

Maybe tomorrow I'll I use my Desktop with my IDE Drive Unplugged and see if that works.

Thanks.

Larry

Offline

#5 2012-05-10 12:00:04

lkraemer
Member
Registered: 2012-05-08
Posts: 18

Re: Slitaz 4.0 Install to USB Flash Drive

How I installed Slitaz 4.0 to my 4G Centon USB Flash drive with persistence.

As prework, I prepared my USB Flash drive from Debian 6 with Gparted.

1.  Removed any existing partitions

2.  Created Partition Table - msdos type

3.  Created ext2 partition - All available space

4.  Formatted partition as ext2

5.  Manage flags on partition: - mark as boot

6.  Set label to: Slitaz

I used my Desktop to create the install, because I needed to remove the only IDE hard drive

on the system, so the install proceeded correctly.  For some reason it just wouldn't work

on my Laptop.  I had previously downloaded and created a LiveCD of the slitaz-4.0-core.iso

1.  Open the Tazpanel installer. (second Icon from the top left)

2.  Select Install to hard drive

    (I skipped the gparted section as I had previously done it as prework

3.  When the install was finished I was almost ready to try and boot the USB Drive.

    (I had to copy the /boot/grub/splash.xpm.gz from the LiveCD to the USB Drive

    /boot/grub subdirectory - this will be fixed soon)

4.  Edit /boot/grub/menu.lst on the USB Flash Drive

    mojo stated previously:

    The following can cause kernel panic early in the boot if not done.

    Full install on USB flash drive requires rootdelay=8 to kernel line.

    If there are sata drives on the computer they will be recognized before the usb drive.

    With 2 sata drives in the computer to boot a USB full linux install:

    /boot/grub/menu.lst contains:

    root (hd0,0)

    kernel /boot/vmlinux-2.6.37-slitaz root=/dev/sdc1 rootdelay=8

5.  In my case I have a SATA Drive in my Laptop, so my entry was:

    root (hd0,0)

    kernel /boot/vmlinux-2.6.37-slitaz root=/dev/sdb1 rootdelay=8 quiet

6.  Boot the USB Flash Drive.

Slitaz defaults as being persistent.  You can read more about that with the F2 and/or F3 Function

Keys during boot.

Thanks.

Larry

Offline

#6 2012-05-10 12:03:22

surviver
Member
Registered: 2012-05-07
Posts: 7

Re: Slitaz 4.0 Install to USB Flash Drive

I've tried to install it on a USB pendrive also. Here's what I've used in menu.lst

title SliTaz

kernel /bzImage rw root=/dev/ram0 autologin

You may add your language settings.

This seem to work so far. I can't verify for sure, because with ext3/2 the MBR didn't find the bootloader on my pen, but it worked with FAT32/NTFS. Well, worked as far as slitaz was able to handle that filesystems...

I just extracted all the rootfsX.gz to the root folder and copied bzImage there too.

/edit

You have to extract the file which is in the rootfsX.gz also...

Offline

#7 2012-05-14 11:24:43

lkraemer
Member
Registered: 2012-05-08
Posts: 18

Re: Slitaz 4.0 Install to USB Flash Drive

Additional information:

The only way I was able to get Slitaz 4.0 installed to my 4G Centon USB, and then Boot without a Kernel Panic,

was by choosing    WEB : STABLE, and by having an Ethernet connection.

I installed mc (Midnight Commander) and it also needed pcre & elfutils Packages installed.

I also use Gmail, and that was missing glib-networking, so I had to install that Package.

Offline

#8 2012-05-16 14:07:18

Guest
Guest

Re: Slitaz 4.0 Install to USB Flash Drive

5. In my case I have a SATA Drive in my Laptop, so my entry was:

root (hd0,0)

kernel /boot/vmlinux-2.6.37-slitaz root=/dev/sdb1 rootdelay=8 quiet

==================================================================

Thank you lkraemer very much!

your method is very useful, follow yours, now i can boot my slitaz usb.

Thanks again and thank slitaz.

#9 2012-07-03 14:30:23

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

Re: Slitaz 4.0 Install to USB Flash Drive

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

#10 2012-08-29 12:54:32

Brighton Guy
Member
Registered: 2012-08-29
Posts: 1

Re: Slitaz 4.0 Install to USB Flash Drive

Hi there all -

I have also (unsuccessfully so far) tried to install SliTaz to a USB stick. I have installed to to an elderly lap top (Lenovo Thinkpad T23).

My present system is another Lenovo Thinkpad T400, normally running Win7Pro off the hard disk. It boots a live USB just fine, but I fancied trying a 'permanent' install on another USB.

I have followed all (most) of the steps above, and it finds grub, then the splash image, and (presumably) the linux image, but hangs shortly after a kernel panic, flashing the caps lock LED at about 2Hz.

The screen shows:

    [Linux-bzImage, setup=0x3400, size 0x25d3f0]

e1000e 0000:00:19.0 (unregistered net_device): Failed to initialise MSI Interrupt. Falling back to legacy interrupts.

sd 4:0:0:0: [sdb] Assuming drive cache: write through

sd 4:0:0:0: [sdb] Assuming drive cache: write through

sd 4:0:0:0: [sdb] Assuming drive cache: write through

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)

Call Trace:

[<c1378112>] ? printk+0xf/0x11

[<c1378008>] panic+0x50/0x14b

[<c1507b55>] mount_block_root+0x1e5/0x1f9

[<c108a658>] ? sys_mknod+0x13/0x15

[<c1507c6e>] mount_root+0x4c/0x54

[<c1507db6>] prepare_namespace+0x140/0x171

[<c15078ad>] kernel_init+0x17f/0x18e

[<c150772e>] ? kernel_init+0x0/0x18e

[<c1003a76>] kernel_thread_helper+0x6/0x10

Then a flashing cursor and caps lock light. Ctl-Alt-Del does not reboot - only power off seems to work!

The PC is a 2.4G dual core, with 6G ram, and a single sapa disk with three partitions, and the trying to boot USB stick.

The relevant lines in menu.lst are:

title SliTaz ... (cooking) ...

root (hd0,0)

kernel /boot/vmlinuz-2-6-37-slitaz root=/dev/sda1 rootdelay=8 quiet

I have (just) tried root=/dev/sdb1, and although I get the unregistered net device, it boots on to a login screen, which accepts my username and password, but reaappears some time later. I can login as root, though, using the password I set in the installation script.

I'll keep trying!

Thanks for all your effots, tho, its a great distribution.

So my problem has changed!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]