SliTaz SliTaz Forum

You are not logged in.

#1 2014-05-19 09:00:03

hitsware
Member
Registered: 2013-06-26
Posts: 55

ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Generate your own LiveUSB media

To generate your own LiveUSB media, first you need to login as root with su and locate your usb storage device using the command:

# fdisk -l     # normally /dev/sdb1

Then format and label your device (Warning: this will erase all data, make sure you specify the right device):

# tazusb format /dev/sdb1

And finally generate your LiveUSB media device:

# tazusb gen-liveusb /dev/sdb1

And that's all you need to do, you can now boot SliTaz from usb media (providing your computer bios supports this method).

Maintaining system settings

When you finish your LiveUSB session, make sure you maintain your installed packages, system settings, etc, by backing up the entire current filesystem with one the following commands:

fast compression, average filesize:

# tazusb writefs gzip

slow compression, smaller filesize:

# tazusb writefs lzma

no compression, larger filesize:

# tazusb writefs none

Each of these writes everything to a 'rootfs.gz' archive to be loaded the next time you boot.

Offline

#2 2014-05-19 09:44:56

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

It depends on what you want to achieve.

But what exactly is the Question here?

ext or fat, or ext2..ext3..ext4..?

How to create a live usb?..with persistence or not?

e.g.

For a test-run, to see if it will work with your Hw you could make the

Sltaz4-iso hybrid ( isohybrid ) and then dd it to your usb.

Offline

#3 2014-05-19 12:16:35

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Thank You smile

I want to make a live usb with Wine and Minicom

and a couple of Windows programs installed in Wine.

It does not need to have persistence beyond that

point. I have ver.4 on 1 PC(HD) (installed from usb),

but the installer doesn't seem to work with another

usb. AND (if I understand right?) a full installation

doesn't run from ram which seems preferable. I didn't

try the live-usb maker thinking that it could not save

the 2 apps, but the above makes me think it might????

I realize I'll just have to try it, but was looking

for some hints ...... Isohybrid ??????

Offline

#4 2014-05-19 14:08:14

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

it will save anything you have installed

the only hint here is that if the file is too large it will run out of memory at decompression time (800MB uncrompressed it too high)

Do a search for "lowram" on the forum i you hit that problem

Offline

#5 2014-05-19 15:58:07

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

@sixofeight

Use ext2/ext3/ext4:

The 4.0 is buggy with vfat sticks, the fix:

http://hg.slitaz.org/slitaz-boot-scripts/rev/e147902153c1

Offline

#6 2014-05-19 17:28:08

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

@Bellard

Thanks for the Info

@hitsware

--> isohybrid <--

afaik the Slitaz4 iso isn't isohybrid.If you dd this iso to usb-flash it wont boot.

Open a Terminal and type isohybrid /path/to/your/slitaz-4.0.iso

now you can dd the iso onto an usb-flash and boot it like a live-CD.

Offline

#7 2014-05-19 18:11:06

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

I keep getting (after directions first posted)

' unable to mount cdrom or find iso '

Perhaps I'm getting in over my head sad

But Slitaz works better for me than any

other distro ! Even with this mess.

(it's immaculate on HD)

Would I be better off with another version ?

Offline

#8 2014-05-19 20:40:28

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Yup. I have the same Prob with one of my Cd-drives not beeing found

therefore

mount the device (Live-CD / usb) manually to /media/cdrom

If it's a live-cd use dmesg | grep hd

to find out which it is and use e.g. mount /dev/hdX /media/cdrom

If it's a live-usb-flash use fdisk -l to find out which it is

in short:

boot vanilla Slitaz4 live

customize it

mount the device

write new iso (applications > system tools > create a live CD )

in this window just click write iso

dd to usb-flash..done

This might be not the most elegant way but it works..at least for me.;)

Offline

#9 2014-05-19 23:08:48

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

> in this window just click write iso

writes but then says boot is on usb not

in ram so need to do loop mount ?????

slitaz.iso seems to disappear when I press

enter .........

Offline

#10 2014-05-20 12:08:21

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

I'm assuming that you did not mount the right Device to /media/cdrom

no Errors on my end.

[attachment=30084,1495]

Offline

#11 2014-05-20 13:08:45

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Maybe ......

Would you walk me through that part ?

Thanks again !

Offline

#12 2014-05-20 14:40:20

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

1.prepare an usb-flash to act like a Live-CD

a)boot Slitaz > grab a slitaz-4.0.iso and make this iso isohybrid.

(open a terminal and type isohybrid /path/to/your/slitaz-4.0.iso > enter).

plug in an usb-flash > identify its "name" in a terminal with fdisk -l  (as root).

should be sda or similar.(The whole drive, not Partitions)

Now dd the Isohybrid-iso to the flash-drive.If your flash-drive is "sda"

the command would be dd if=/path/to/the/slitaz-4.0.iso of=/dev/sda

PLEASE DOUBLECHECK THAT YOU CHOOSE THE RIGHT DEVICE.If in doubt don't do it!!

and be aware that all the Data stored on this flash-drive will be gone!!

2.If done reboot and boot from this newly created usb-flash

3.make your customizations...if done mount the usb-flash to /media/cdrom.

  Open a Terminal su to root and type mount /dev/sda /media/cdrom

  ( I'm assuming your device is sda.)

4.click Applications > system tools > Create a liveCD > in this window click write iso.

  now you should get your customized iso.

  If all goes well and you got the iso, dd this iso to the usb-flash and reboot....

  ONCE AGAIN, BE VERY CAREFUL WITH THE DD_COMMAND, IF YOU CHOOSE THE WRONG DRIVE YOU'RE IN SERIOUS TROUBLE.

  good Luck

Offline

#13 2014-05-20 16:11:00

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Geez sad ....... Pretty awkward ( but Thanks ! smile )

I guess this :

http://hg.slitaz.org/tazusb/raw-file/tip/doc/tazusb.en.html

is some bodies imagination or ?

Offline

#14 2014-05-20 17:50:15

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

@hitsware

I have been struggling also to make it work at first. 4.0 docs handle some things a little bit differnetly than the original documentation refers to

if you check here http://forum.slitaz.org/topic/slitaz-liveusb

find my post, it explains some of the non obvious things that must be done (i have not done it for a while but I expect it is unchanged.

Be carefull as usual to use the right device wink

Offline

#15 2014-05-20 18:00:57

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Thanks ... That makes it as awkward as sixofeights method ...

Offline

#16 2014-05-20 21:28:33

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

@hitsware

yup, It's awkward because of step 1 (preparing the usb-flash)

If you could use a Live-CD instead of this usb-flash, it would

reduce the effort to manually mount the "not found CD-Drive" to build your iso.

Offline

#17 2014-05-20 22:11:39

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Nope .... I've got a live CD ..... still get the 'not found'

AND whatever I do when I write the new iso it asks for the

'loop mount' .... somethings different here someways.

I'm trying now to simply install to usb as if it were HD ...

got it to install, but something is wrong on the grub ....

I get error 21 'no such disk'. ????????????

Offline

#18 2014-05-20 23:34:35

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

try my method; it may not be that strange, after all wink

Offline

#19 2014-05-21 01:10:26

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Not strange .......... complex and awkward (for me anyways)

Offline

#20 2014-05-21 02:51:23

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

Best Luck Yet !

In XP:

downloaded SliTaz 5.0-rc2

made vfat bootstick

rebooted

went to 'make live usb'

put in Slitaz 4.0 CD

SliTaz 5.0-rc2 recognized It !

BUT sad  ..... When I booted the stick

I got ver. 4 but with the black screen stuff

suggested in the  SliTaz 5.0-rc2 thread smile

Offline

#21 2014-05-21 07:24:58

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

YOUR method MAY converge, some day.....

Offline

#22 2014-05-21 07:44:15

Guest
Guest

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

I'm trying now to simply install to usb as if it were HD ...

got it to install, but something is wrong on the grub ....

I get error 21 'no such disk'. ????????????

Likely your grub & possibly fstab are pointing to the wrong device.

When installing to pendrives & sd(hc) cards, some install scripts use the mounted device as the target boot device, which causes this error on external media installations.

The 'trick' is to check before rebooting.

(However, you can just boot your live media again & alter them.)

Edit: Grub should be hd0,0 & fstab should be /dev/sda1.

#23 2014-05-21 10:14:59

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

> YOUR method MAY converge, some day.....

I'm just trying to use the 'tools' as

presented. I.E. 'live usb maker' should

be just that ......

Offline

#24 2014-05-21 10:21:26

hitsware
Member
Registered: 2013-06-26
Posts: 55

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

> When installing to pendrives & sd(hc) cards,

> some install scripts use the mounted device as

> the target boot device, which causes this

> error on external media installations.

I think maybe what happened was when I had the

source stick in it was sdc1 and the target was

sdd1, but when I tried to boot the target

(since it was alone) became sdc1 ? That's sorta

bunk though, because on my other PC the first

stick is sdb1 .....

Offline

#25 2014-05-22 08:43:05

Guest
Guest

Re: ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......

If your target was sdd1 likely that is what is in your grub config, (& maybe /etc/fstab).

Usb ports are issued descriptors either by position on m/board or by which is used first, so what was sdb may become sdc.

To boot from a usb port the grub config has to be the first disk to be accessed, which is /dev/sda (grub hd0,0) in most instances.

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

Board footer

Powered by FluxBB
Modified by Visman

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