SliTaz SliTaz Forum

You are not logged in.

#1 2012-09-27 16:45:07

lvoyles2
Member
Registered: 2012-09-27
Posts: 7

problems installing slitaz 4 to hdd

I am installing slitaz to my HDD right now. I have to do it manually (no internet). Everything seems to go good until I enter:

# cp /media/cdrom/boot/rootfs.gz /mnt/target

Then the terminal says:

cp can't stat '# cp /media/cdrom/boot/rootfs.gz /mnt/target': no such file or directory

What I am doing wrong?

Reference: http://doc.slitaz.org/en:handbook:installation => Manual ('By Hand') Installation

Offline

#2 2012-09-27 17:13:56

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

Re: problems installing slitaz 4 to hdd

[c]can't stat[/c] means there is no /media/cdrom/boot/rootfs.gz to copy

List the contents of /media/cdrom/boot/

[c]ls /media/cdrom/boot[/c]

Offline

#3 2012-09-27 17:32:14

lvoyles2
Member
Registered: 2012-09-27
Posts: 7

Re: problems installing slitaz 4 to hdd

Thanks, I'll try listing it and see what happens. I sent my other post before I seen this one. I was still on the page and hadn't refreshed it.

This installation procedure is for slitaz 3.0. Some things like " vmlinuz.gz" have changed in the new edition. It would be greatly appreciated if someone had the time to edit the above process for slitaz 4. I'm not sure if I can find all the necessary changes myself, I might miss something. Cudos on this os though, I like this live version better than any other I tried.

Offline

#4 2012-09-28 03:40:01

lvoyles2
Member
Registered: 2012-09-27
Posts: 7

Re: problems installing slitaz 4 to hdd

I ran the list command and it shows:

rootfs1.gz

rootfs2.gz

rootfs3.gz

rootfs4.gz

In addition to these files:

bzImage

gpxe

grub

isolinux

vmlinuz-2.6.37-slitaz

Any idea which I should use for my "by hand" installation?

The rootfs*.gz have to be combined into rootfs.gz

I tried substituting rootfs1.gz for all places that originally said rootfs.gz and everything appeared to go well until I entered:

rm rootfs1.gz init

rm: can't remove 'init': no such file or directory

Extract the rootfs.gz to get init

I am lost! I thought I had it, I was on the last command or two and just don't know what to do from here.

When lost use the ls command to set what files are in the current directory

Offline

#5 2012-09-28 04:50:09

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

Re: problems installing slitaz 4 to hdd

Make the boot directory,copy the kernel:

[c]# mkdir /mnt/target/boot[/c]

[c]# cp -a /media/cdrom/boot/vmlinuz-* /mnt/target/boot[/c]

Copy the 4 rootfs.gz

[c]# cp /media/cdrom/boot/rootfs*.gz /mnt/target[/c]

Change into the directory with the rootfs*.gz

[c]# cd /mnt/target[/c]

Combine the 4 rootfs.gz into 1 rootfs.gz

[c]# cat $(ls -r rootfs*.gz) > rootfs.gz[/c]

Extract the file tree from rootfs.gz

[c]# lzma d rootfs.gz -so | cpio -id[/c]

Remove init and the rootfs*.gz

[c]# rm init rootfs*.gz[/c]

Offline

#6 2012-09-28 05:00:22

lvoyles2
Member
Registered: 2012-09-27
Posts: 7

Re: problems installing slitaz 4 to hdd

Thank you! Wish me luck smile!

Offline

#7 2012-09-28 08:46:29

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: problems installing slitaz 4 to hdd

@mojo

I just tried your recommendation for a different purpose - and it worked straight! I used a loram-version.iso of Slitaz 4.0. Before I was not able to boot the uncombined serial rootfs1.gz rootfs2.gz etc. and got a kernel panic with that. The combined version was no problem.

Extraction (which I did not need, just for fun) worked as well.

Regards and thanks,

Michael

Offline

#8 2012-10-01 01:49:29

lvoyles2
Member
Registered: 2012-09-27
Posts: 7

Re: problems installing slitaz 4 to hdd

@mojo

YES!!!! It worked great! Thanks for the help!

Offline

#9 2012-10-11 22:16:00

boiss007
Member
Registered: 2012-10-11
Posts: 1

Re: problems installing slitaz 4 to hdd

Hello all!

Im trying the manual install of slitaz 4 from a xubuntu and i used ur command :

Combine the 4 rootfs.gz into 1 rootfs.gz

# cat $(ls -r rootfs*.gz) > rootfs.gz

but i get errors when i try to extract rootfs.gz and if i test (#lzma -t rootfs.gz) i get a "corrupted data" error.

Is there a particular option to use, or do i do something very wrong?

Offline

#10 2012-10-12 00:26:56

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

Re: problems installing slitaz 4 to hdd

@boiss007

You have to extract with lzma and cpio built into busybox used by Slitaz.

The easiest solution is to boot into SliTaz live cd,open terminal and extract rootfs.gz

# [c]lzma d rootfs.gz -so | cpio -id[/c]

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.54 MiB (Peak: 1.77 MiB) ]