SliTaz SliTaz Forum

You are not logged in.

#1 2016-01-27 10:22:29

paseo
Member
Registered: 2016-01-27
Posts: 4

using SLiTaz as live stick

How is it possible to save the preferences with using a live stick

Offline

#2 2016-01-27 11:12:54

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

http://doc.slitaz.org/en:handbook:liveusb

Offline

#3 2016-01-27 15:34:51

paseo
Member
Registered: 2016-01-27
Posts: 4

Re: using SLiTaz as live stick

thank you for the link. the live stick is running. i do not understand how to store changes for later use on the live stick. perhaps my englisch is to bad to under the handbook.

thanks for your help

Offline

#4 2016-01-29 21:02:22

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: using SLiTaz as live stick

Hi paseo,

It depends how you did your Live stick.

If you've formated the stick ext 2/3/4, your preferences will be automatically saved in your /home.

Otherwise, format another stick and create Live with the tazusb tool.

If you need more help, tell me what ISO you used for your Live.

Offline

#5 2016-01-30 17:57:05

paseo
Member
Registered: 2016-01-27
Posts: 4

Re: using SLiTaz as live stick

hi ceel

i create the live stick with a integrated tool of linux mind and with a iso slitaz-cooking.iso 41,9 Mb

was this wrong ?

Offline

#6 2016-01-30 20:40:46

paseo
Member
Registered: 2016-01-27
Posts: 4

Re: using SLiTaz as live stick

i formated a new stick with ext 4 with linux mind and try to create a live stick with my iso file and taz usb box to /dev/sda1. but the stick is empty ( only lost and found) no live system on the new stick.

Offline

#7 2016-01-30 22:24:46

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: using SLiTaz as live stick

If you use cooking, sda1 should be your hard disk...

Boot your Live USB. Then remove the stick.

Download the ISO (cooking is near 2 years old now, last rolling will be better: http://mirror1.slitaz.org/iso/rolling/slitaz-rolling-core.iso)

Open a terminal and become root. Insert your formated ext4 stick and see how it is identified:

   fdisk -l
Assuming your target stick is sdb1, then type:

   tazusb gen-iso2usb /path/to/the/iso/file/file_name.iso /dev/sdb1

Offline

#8 2016-02-01 12:11:09

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Ceel, the closing bracket superfluous.

http://mirror1.slitaz.org/iso/rolling/slitaz-rolling-core.iso

Offline

#9 2016-02-01 15:16:39

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: using SLiTaz as live stick

Thanks black dog.

Offline

#10 2016-02-04 04:45:52

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Tazusb program does not offer at the ext4 formatting. Why?

Installed version tazusb 182.

Offline

#11 2016-02-04 11:51:25

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

Re: using SLiTaz as live stick

Why not ? http://hg.slitaz.org/tazusb/rev/a0169f6c39b6

Offline

#12 2016-02-04 18:01:53

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Thank you, Bellard. I already asked, but forgot to answer. What do I need to do to make a change in my tazusb?

And another question to all. Who ever get to save the changes with the new version tazusb? I could not even once in a day. Of the more than 20 attempts. Why is this happening?

[attachment=41626,2231]

Offline

#13 2016-02-04 18:22:06

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: using SLiTaz as live stick

Что конкретно с tazusb не так?

Вижу на скриншоте gzip-сжатие rootfs. Это очень плохая идея, лучше lzma или вообще без сжатия.

Offline

#14 2016-02-04 18:58:16

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Do not save changes. After this operation to /boot must have two files rootfs.gz and previous.gz. But even without this, after the restart it shows that there are no changes. A method of compression is not important.

PS

I apologize. We had to pour and insert the USB flash drive again. I disassemble.

Offline

#15 2016-02-04 19:44:32

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

That's what happens:

[attachment=41632,2232] [attachment=41632,2233] [attachment=41632,2234]

Offline

#16 2016-02-18 05:02:33

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Another unsuccessful attempt to save the packages and system settings on a live-usb.

slitaz-rolling-core.iso 2016-Feb-14 20:30:02

Tazusb (184)

The ext3 file system

I use gzip and lzma.

Are anyone here who managed to save the system change? Please tell me.

Offline

#17 2016-02-18 10:48:50

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

Re: using SLiTaz as live stick

@black dog

Can try this for me ?

# cp /usr/bin/tazusb /usr/bin/tazusb.org -a

# sed -i 's|find /bin|find -xdev /bin|' /usr/bin/tazusb

# tazusb writefs gzip

Offline

#18 2016-02-18 16:33:52

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

root@slitaz:/home/tux# tazusb writefs gzip

Write filesystem

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

The command writefs will write all the current filesystem into a suitable cpio

archive (rootfs.gz) usable on a bootable LiveUSB media.

Archive compression: gzip

Do you wish to remove the sound card and screen configs?

Press ENTER to keep or answer (No|yes|exit): y

Removing current sound card and screen configurations...[ Done ]

Do you wish to remove local/keymap settings?

Press ENTER to keep or answer (No|yes|exit):

Keeping current locale/keymap settings...[ Failed ]

find: unrecognized: /bin

...

root@slitaz:/home/boot# ls -l

total 47644

-rw-r--r--    1 root     root       2895056 Feb 18 04:17 bzImage

drwxr-xr-x    2 root     root          4096 Feb 18 04:30 extlinux

-rw-r--r--    1 root     root        312470 Feb 18 04:17 ipxe

-rw-r--r--    1 root     root         45100 Feb 18 04:17 memtest

-rw-r--r--    1 root     root      45460000 Feb 18 04:17 previous.gz

-rw-r--r--    1 root     root           253 Feb 18 16:09 rootfs.gz

Offline

#19 2016-02-18 17:30:35

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

Re: using SLiTaz as live stick

@black dog

Oops... sorry.

Can retry this for me ?

# cp /usr/bin/tazusb.org /usr/bin/tazusb -a

# sed -i 's|/opt >/tmp|/opt -xdev >/tmp|' /usr/bin/tazusb

# tazusb writefs gzip

Offline

#20 2016-02-18 20:01:42

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Excuse me, but this time could not write the output of commands.

# cp /usr/bin/tazusb.org /usr/bin/tazusb -a

There was an error, and I put command in the previous post:

cp /usr/bin/tazusb /usr/bin/tazusb.org -a

After the command # tazusb writefs gzip was a message about the absence of /opt and more the system can not enter the X-session. Changes were not saved.

Offline

#21 2016-02-19 10:11:26

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

Re: using SLiTaz as live stick

Maybe ?

# sed -i 's|find /bin|find $(ls -d /bin|;s|/opt >/tmp|/opt 2>/dev/null) -xdev >/tmp|' /usr/bin/tazusb

Offline

#22 2016-02-19 12:07:57

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

Everything is still.

After command "tazusb writefs gzip" something happens and reloaded X-session. But after 2-3 seconds after entering the password again to restart X-session.

Furthermore.

Midori browser closes spontaneously after 1-2 minutes of work.

Offline

#23 2016-02-19 14:30:02

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: using SLiTaz as live stick

> After command "tazusb writefs gzip" something happens and reloaded X-session

> something happens

> reloaded X-session

Maybe this? http://www.google.com/search?q=OOM+killer

Where are your output of [c]df ; free[/c] command before and after.

> tazusb writefs gzip

> gzip

Try [c]tazpkg -gi advancecomp[/c]

before [c]tazusb writefs gzip[/c]

А вообще gzip загружается через раз, я предупреждал...

http://forum.slitaz.org/topic/trouble-with-tazusb-writefs#post-38816

tazusb writefs fixed, new [c]/usr/bin/tazusb[/c] avaliable here:

http://hg.slitaz.org/tazusb/raw-file/186/tazusb

Offline

#24 2016-02-20 04:56:10

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: using SLiTaz as live stick

When using lzma same:

Write filesystem

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

The command writefs will write all the current filesystem into a suitable cpio

archive (rootfs.gz) usable on a bootable LiveUSB media.

Archive compression: lzma

Do you wish to remove the sound card and screen configs?

Press ENTER to keep or answer (No|yes|exit): y

Removing current sound card and screen configurations...[ Done ]

Do you wish to remove local/keymap settings?

Press ENTER to keep or answer (No|yes|exit): y

Removing current locale/keymap settings...[ Done ]

Creating rootfs.gz with lzma compression... Killed

Moving rootfs.gz to media. Remember to unmount for delayed writes!

rootfs.gz is located in /home/boot

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

Root filesystem size: 4.0K

--------------------------------------------------------------------------------

ENTER to continue...

az_ua, What to do with this file?

Offline

#25 2016-02-20 09:54:23

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: using SLiTaz as live stick

Hi Black Dog,

Do you note the word “Killed”?

Creating rootfs.gz with lzma compression... Killed

Your system (Linux Kernel) was killed the process because it was too hunger to “eat” more RAM than you have.

What to do? Try to set up swap file/partition with appropriate size (at least with the size of your RAM). Process using RAM + swap will be significantly slower comparing to process using RAM only. But it shouldn't be killed by Kernel, I hope.

Read more about “Killed”: http://stackoverflow.com/questions/726690/who-killed-my-process-and-why

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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