SliTaz SliTaz Forum

You are not logged in.

#1 2012-11-06 21:03:43

Guest
Guest

Cannot keep my installed package from boot to boot on my USB key.

Hi

I install the SliTaz 4.0 on a USB key with success.  I boot my system from this USB key.  After I install the gcc-4.5.2 using the command line: tazpkg get-install gcc-4.5.2.  I was able to do a HelloWord.c, compile and execute with success.  I want to update my USB key to keep this install package on my image.  To do this I use the command line: tazusb writefs gzip.  It was done with success.  I reboot my system, but the gcc compiler is not in my system anymore.  I read a lot of documentation on this topic on this site but I do not understand why it is not working.  Is somebody could help me?

Best regards

Jocelyn

#2 2012-11-07 00:49:02

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

Re: Cannot keep my installed package from boot to boot on my USB key.

TazUSB Manual (en)

(/home ?..)

Offline

#3 2012-11-07 01:33:41

Guest
Guest

Re: Cannot keep my installed package from boot to boot on my USB key.

Hi Aleksej

Thanks a lot for helping me.  I am sorry but I am not sure about your comment, (/home ? ...)  Do you want me to do ls /home and put the result here?

Best Regards

Jocelyn

#4 2012-11-07 01:51:31

Guest
Guest

Re: Cannot keep my installed package from boot to boot on my USB key.

Hello again

I did not see the link above your comment.  Under the /home directory, I see 3 directories, boot, lost+found and tux.  Under the boot directory, I have the following files:

bzImage

extLinux (directory)

previous.gz

rootfs1.gz

rootfs2.gz

rootfs3.gz

rootfs.gz

Another strange thing is if I execute the following command: gcc --version

The answer is: /bin/sh: gcc: not found.

Also I cannot find any gcc tools.

find / -name gcc

This command return nothing.

I am not sure if I use the good starting option. At the boot I select the first one, Slitaz live.  Is it correct?

Thanks for help

Best regards

Jocelyn

#5 2012-11-07 06:20:40

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

Re: Cannot keep my installed package from boot to boot on my USB key.

Hi Jocelyn,

I don't know what is your bootloader. Maybe it is grub, grub4dos or syslinux. You should change your bootloader config file (menu.lst?) to force using your rootfs.gz instead of rootfs1-4.gz.

Ok, folder "extlinux" in your post tells me that you use extlinux bootloader, but I forgot how to configure it. You want to find text file where rootfs1-4.gz mentioned.

[c]cd /home; for i in $(find .); do grep -H 'rootfs1.gz' $i; done[/c]

Offline

#6 2012-11-07 08:01:14

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

Re: Cannot keep my installed package from boot to boot on my USB key.

TazUSB LiveUSB

Booting into the saved rootfs.gz with syslinux.

At the orange boot menu arrow down to SliTaz core

Hit the tab key

After initrd= delete the commas and any /boot/rootfs[1-4].gz so it looks like this:

[c]initrd=/boot/rootfs.gz[/c]

Hit enter to boot the modified rootfs.gz with your installed programs.

Edit the /boot/isolinux/isolinux.cfg to modify SliTaz core Live entry to boot without having to manually edit every boot.

Software to compile includes binutils linux-api-headers glibc-dev gcc make elfkickers:

# [c]tazpkg -gi slitaz-toolchain[/c]

Offline

#7 2012-11-07 08:08:40

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

Re: Cannot keep my installed package from boot to boot on my USB key.

Edit the /boot/isolinux/isolinux.cfg to modify SliTaz core Live entry to boot without having to manually edit every boot.

isolinux -> syslinux

Offline

#8 2012-11-07 16:18:13

Guest
Guest

Re: Cannot keep my installed package from boot to boot on my USB key.

Hi Aleksej and Mojo,

Thanks a lot for the quick answers.  With all information you give to me, I could now make modifications (add/remove packages and files) to my system and keep it after a reboot.

Best Regards

Jocelyn

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

Board footer

Powered by FluxBB
Modified by Visman

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