SliTaz SliTaz Forum

You are not logged in.

#1 2011-10-29 12:56:13

loufe
Member
Registered: 2011-10-29
Posts: 10

How to install into USB without CD

I'm now using Lubuntu 11.04, and I'd like to try SliTaz from USB. (I don't have a CD.)

First, I downloaded [c]slitaz-3.0.iso[/c], and then

[c]dd if=~/Downloads/slitaz-3.0.iso of=/dev/sdb[/c]

so that the USB became "SliTaz core". However, when I rebooted from USB it said "Operating System not found". (I tried rebooting a few times.)

How can I succesfully install SliTaz?

Offline

#2 2011-10-29 15:07:17

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

Re: How to install into USB without CD

The easiest solution is to install unetbootin on lubuntu and use it to install slitaz on USB drive.

Lubuntu:

sudo apt-get install unetbootin

menu/System Tools/UNetbootin

tick Diskimage/ISO/Click ... button browse to slitaz ISO/Open

Type: USB Drive:USB install target OK

Offline

#3 2011-10-29 16:52:23

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

mojo, thank you for the clear instruction.

I could finally boot with SliTaz! I was in the terminal-like place as root. If I type [c]startx[/c], error messages will appear (I copied some of it below; I will add more if asked):

[c]sed: /root/.config/lxpanel/default/panels/panel: No such file or directory
(EE) VESA(0): No valid modes
(EE) screen(s) found, but none have a usable configuration

Fatal server error
no screens found
Pcmanfm: Fatal IO error104 (connection reset by peer) on x server local host; 0.0[/c]

Offline

#4 2011-10-29 18:00:47

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

I'd just like to use Firefox and python3. I'm looking for a way right now.

Offline

#5 2011-10-29 18:56:50

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

Re: How to install into USB without CD

Add screen=1024x768x24 to bootloader menu(syslinux.cfg,extlinux.cfg,isolinux.cfg) kernel line may work.

Tab while unetbootin menu appears may allow a one boot edit like editing from the grub menu.

To make software install's and config's persist across reboot the flash drive with slitaz must be formated with linux ext3 filesystem.

Microsoft filesystems fat16,fat32,ntfs won't work.

Offline

#6 2011-10-29 20:39:03

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

I tried both 3.0. and cooking as both fat32 and ext3.

If I boot from ext3, it says "Operating system not found" whether 3.0. or cooking.

3.0. and fat32 is described in my 2nd post. cooking and fat32 will lead to black screen (without asking for language or keyboard), with 2 white '_' around the top middle, just sits there without blinking. Ctrl+Alt+Del didn't cause to boot, so I had to hit power button.

I tried adding **screen=1024x768x24** to the fat32 (both 3.0. and cooking). It didn't work. Any ideas?

Offline

#7 2011-10-29 21:04:22

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

Re: How to install into USB without CD

Unetbootin,only works with fat32 format?

http://sourceforge.net/apps/trac/unetbootin/wiki/guide

Requirements

1 GB or larger USB drive, formatted as FAT32

Unetbootin isn't the solution.

You seem to have a windows bootloader on your flash drive.

Microsoft error:

"Operating system not found"

Manual Install:

Format the USB flash drive ext3,mount it to install grub bootloader.

How to make a GRUB USB Disk:

http://members.iinet.net/~herman546/p20.html

Loop mount the cooking.iso and copy the contents to the mounted flash drive,configure grub menu.

Offline

#8 2011-10-30 02:50:27

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

There are 2 boot directories, 1 in the mounted ISO and the other in the flash drive. What should I do when I copy the contents of the ISO to the flash drive?

Offline

#9 2011-10-30 04:52:08

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

Re: How to install into USB without CD

/boot

/boot/bzImage or /boot/vmlinuz-2.6.37-slitaz

/boot/rootfs.gz

You don't need /boot/pxe file or /boot/isolinux folder

#grub-install --root-directory=/mount.folder/dev/sdx

#mkdir /mount.folder/boot/grub

#grub-mkconfig -o /mount.folder/boot/grub/grub.cfg

Offline

#10 2011-10-30 08:23:23

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

If I boot from USB, it goes to blank and after a while boots from Lubuntu as usual.

What I did are:

Format a USB partition as ext3

Mount it with Disk Utility

Follow How to make a GRUB II USB http://members.iinet.net/%7Eherman546/p20/GRUB2%20Bash%20Commands.html#GRUB_USB

Loop mount ISO

Copy [c]md5sum[/c] and [c]style.css[/c] into /media/stilazUSB (where stilazUSB is a label.)

Copy [c]bzImage[/c] and [c]rootfs.gz[/c] into /media/slitazYSB/boot

I also tried setting flag of the partition as boot.

"Loop mount the cooking.iso and copy the contents to the mounted flash drive,'''configure grub menu.'''"

If I follow "How to make a GRUB II USB" tutorial above, [c]grub.cfg[/c] is created in USB. Is [c]grub.cfg[/c] the same as grub menu? Should I "configure grub menu" separately?

I also didn't understand what's after "tazlito:" in your last post.

Offline

#11 2011-10-30 08:35:20

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

The attachment is the result of

[c]ls -R /media/slitazUSB[/c].

Please take a look.

Offline

#12 2011-10-30 15:47:29

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

Re: How to install into USB without CD

"Operating system not found" is gone,very good.

The grub menu may be hidden,check /boot/grub/grub.cfg

If you see GRUB_HIDDEN_TIMEOUT=00 remove it and save file.

If you still don't see the grub menu try reinstalling grub again.

The files and folders on the USB stick look right.

Is grub.cfg the same as grub menu? Should I "configure grub menu" separately?

grub2 /boot/grub/grub.cfg serves the same purpose as /boot/grub/menu.lst with grub-legacy

The main difference is partition numbers begin with 1 on grub.cfg,0 on menu.lst

If you have slitaz on /dev/sdb1

grub.cfg root=(hd1,1)

menu.lst root=(hd1,0)

Attach /boot/grub/grub.cfg to your reply.

Offline

#13 2011-10-30 17:26:20

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

I couldn't find GRUB_HIDDEN_TIMEOUT=00 . I found

if [ ${recordfail} = 1 ]; then

  set timeout=-1

else

  set timeout=10

Offline

#14 2011-11-03 05:36:37

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

Re: How to install into USB without CD

grub-mkconfig fails on frugal install :

root@slitaz:~# grub-mkconfig

/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

Modified a grub.cfg from another computer.

Attached is grub.cfg for slitaz frugal and /home on flash drive,running on computer with one hard drive.

Offline

#15 2011-11-04 11:04:00

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

(1) changing grub.config

When booted from USB, it goes to a screen where I can choose (i) GNU/Linux Slitaz ... or (ii) slitaz cooking iso.

(i) leads to blank screen with white cursor at the top left corner. But about 5 minutes later, several sentences appears rapidly, and then goes to complete blank (no white cursors). I waited about 10 min and gave up.

(ii) leads to "no kernel ... etc " and it goes back to where I can choose from the 2.

(2) LinuxLive USB creator

When booted from USB, it goes to "boot baby boot". Then sentences will be printed as if it's loading. And it goes to complete blank.

(3) CD-ROM

Similar to (2) at first, but instead of complete blank, there will be 2 white cursors in the top middle, while CD seems stopped (no sound). 

hmm...

Offline

#16 2011-11-04 16:47:31

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

Re: How to install into USB without CD

(2) or (3) at "boot baby boot" type after boot: slitaz screen=text option before it boots.

Enter key to initiate boot.

Maybe you can at least get a login prompt.

If you get login prompt, login as root password root

Type reboot

(2) or (3) at "boot baby boot" type after boot: slitaz nomodeset option before it boots.

Enter key to initiate boot.

Maybe you can get to slim login screen and desktop.

Offline

#17 2011-11-05 03:42:33

loufe
Member
Registered: 2011-10-29
Posts: 10

Re: How to install into USB without CD

Yes!!!

slitaz nomodeset

I'm now typing from Slitaz.

I also made LiveUSB following the instruction ==> http://doc.slitaz.org/en:handbook:liveusb

Thank you very much mojo!!!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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