SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-09 18:27:43

jjk
Member
Registered: 2012-09-22
Posts: 82

generate iso from current filesystem

hi,

I installed another slitaz install on my second hard drive partition,

I customised it (installed some packages).

now i want to make a bootable iso file with the current filesystem.

I tried issuing the following command:

tazlito wroteiso lzma customslitaz

it took some time and generated a boot folder with rootfs.gz and some other files.

And the customslitaz.iso file.

But the custom file was smaller than the original file.

How should i do this

Offline

#2 2012-12-09 20:57:44

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

what you mean with another?

maybe it was compressed with gzip and not lzma

Offline

#3 2012-12-10 06:49:42

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

i mean that it wa the second slitaz install on my harddrive. It was slitaz-4.0-core.iso

It should be compressed with lzma since that was the command.

Is it possible that the editted file is bigger than the original?

Offline

#4 2012-12-10 17:23:19

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

ok when it was the slitaz-4.0-core.iso and you installed some packages, then the new iso must be bigger than than the original iso - there is no other possibility

and now what - I do not understand

in your first post you wrote:

But the custom file was smaller than the original file

in your second post you wrote:

Is it possible that the editted file is bigger than the original?

Offline

#5 2012-12-10 18:48:13

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

sorry my bad i meant "is it possible that the edited file is smaller than the original"

anyone know what i did wrong? or should i just try the same command again?

i tried to follow this:

http://vanilla.slitaz.org/index.php?p=/discussion/1215/tazlito/p1

can anyone explain how the flavor method works? should i use that approach or the writeiso?

Offline

#6 2012-12-10 20:13:03

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

try the same command again - I use

[c]tazlito writeiso lzma[/c]

all the time without any problems

Offline

#7 2012-12-10 21:34:35

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

i tried it again this time the iso was 191mb so that looks better.

But it hasnt got a kernel (vmlinuz file)

Which i guess you need to boot it using grub

Offline

#8 2012-12-10 23:24:18

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

Re: generate iso from current filesystem

When SliTaz is running in RAM the kernel and bootloader files are kept

on the cdrom. Please insert a LiveCD or loop mount the slitaz.iso to

/media/cdrom to let Tazlito copy the files.

Offline

#9 2012-12-11 10:28:51

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

when /media/cdrom is missing, the iso is not created - tazlito creats only the rootfs.gz but not the iso

the iso does not need vmlinuz to boot

just look in isolinux.cfg in boot/isolinux of the CD

label slitaz

    kernel /boot/bzImage

    append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin

vmlinuz is needed for grub - but vmlinuz and bzImage - its just the same file - just open the original iso und compare the two files - try it out with renaming bzImage to vmlinuz

Offline

#10 2012-12-11 10:37:30

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

and now its clear, how you got an iso that was smaller, then the original one - because vmlinuz is missing..........

Offline

#11 2012-12-11 17:31:34

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

ill try to boot the image then,

Offline

#12 2012-12-11 18:47:49

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

it sais it cant find the kernel when i boot, im using grub 2 to boot it so your script wont work...

i used this script:

}

menuentry "slitaz iso" {

    loopback loop /boot/isos/slitaz.iso

    linux (loop)/boot/bzimage iso-scan/filename=/boot/iso/slitaz.iso

    initrd (loop)/boot/rootfs.gz

}

Offline

#13 2012-12-11 19:51:41

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

as you use grub - I told you - it will not boot, as grub can not handle bzImage

from your other post your working boot entry is

linux (loop)/boot/vmlinuz-2.6.37-slitaz iso-scan/filename=/boot/iso/slitaz-4.0.iso

If you want to use this script - I think - you have to install isomaster, and you have to add the vmlinuz from the original iso and add it to this iso

or you open the iso, rename bzImage to vmlinuz-2.6.37-slitaz and save the iso

bzImage works only with isolinux to boot from CD or syslinux to boot from usb stick

and there is also a syntax error it is /boot/iso/slitaz.iso and not /boot/isos/slitaz.iso

Offline

#14 2012-12-12 17:27:23

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

ok ill try what you said

about the syntax error; youre right, but since it worked with the error i guess the iso-scan line isn't important, so ill try to boot without it.

it boots up now, but i get kernel panic... have you got any idea why that could be happening? is the file too big to run in ram maybe?

Offline

#15 2012-12-12 21:03:41

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: generate iso from current filesystem

I see kernel panic too, when I try to load 1. kernel, 2. rootfs.gz...

my solution - load all iso in one string

I edit/create/add to c:\menu.lst:

default 0

timeout 5

title SliTaz GNU/Linux

find --set-root --ignore-cd --ignore-floppies /slitaz-4.0-core.iso

map --mem /slitaz-4.0-core.iso (hd32)

map --hook

rootnoverify (hd32)

chainloader (hd32)

but, I sorry, I use only grub4dos, and silly about grub 2

(On this forum, old time, thay say that only isolinux can load without kernel panic. When mapping .iso, iso using isolinux... )

(maybe I'm wrong. perhaps I simply do not know the secrets of the boot. Please excuse me if this is)

Offline

#16 2012-12-12 22:09:44

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

my problem is, that I never tried grub 2

its not to big, when this happens, there is no kernel panic

but in general, if you think to use SilTaz regular,  its stupid to boot from the iso, because you will loose the home partition

and yes it all the time happens, that sometimes there are errors, when you compress the rootfs.gz and create the iso, which leads into kernel panic

so its normally better to start SliTaz from an USB Stick and work with tazusb writefs to collect experience..

Offline

#17 2012-12-13 02:16:17

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

Re: generate iso from current filesystem

I have had kernel panic when booting a too big file with slitaz 3

Thas was solved using lowram, i do not remember the details but i had to install a new package, i believe called loram or lowram.

I could not tell if sitaz 4 works the same, since there is this russian doll feature...

Offline

#18 2012-12-13 06:39:55

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

@kultex is it a good thing to go back to grub4dos or should i install isolinux as bootloader?

@christophe ive seen the convert to loram iso feature ill try that

i built the loram iso, and i found out that there is a /isolinux folder in the /boot of the iso

do you know of a way to let grub start that isolinux?

Offline

#19 2012-12-13 08:56:54

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

it depends what you want - if you want to continue to work with SliTaz, you should change to grub4dos

if its just to try out, use a usb stick

Offline

#20 2012-12-13 09:40:29

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

i dont know if you understand me right, but slitaz is already my main OS and everything works just fine. Im just trying to make my own customised version boot.

and what about chainloading to isolinux in the iso file?

Offline

#21 2012-12-13 10:18:17

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

so burn the iso it on a cd and it will boot

how you are booting your normal slitaz now?

Offline

#22 2012-12-13 17:24:52

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

i know it will probably boot when i put it on a usb or cd, but i havent a spare usb, and i dont want to have the usb wiped every time i want to try another distro, thats why i want to boot isos from the harddrive.

ive slitaz currently installed on the harddrive, ive also been able to boot the slitaz-4.0-core.iso from the harddisk.

but back to my question is there a way to chainload grub (or grub4dos for your liking) to syslinux/isolinux which is installed in the live iso.

Offline

#23 2012-12-13 18:07:31

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

ok its not my liking

and as I already told:

!!!isolinux to boot from CD!!!

!!! syslinux to boot from usb stick!!!

but with grub4dos and bzImage it is working

see

http://doc.slitaz.org/en:guides:frugal#iso-image-install

and you can take both menu entries either for

Traditional frugal install or ISO image install

EDIT: see also here: http://en.wikipedia.org/wiki/SYSLINUX

Offline

#24 2012-12-13 20:54:10

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: generate iso from current filesystem

i hope i dont annoy you with my dumbness.

So youre telling me to downgrade to grub+grb4dos

And that way it will work?

there is no possible way to chainload to isolinux and let that boot it?

Offline

#25 2012-12-13 22:06:52

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: generate iso from current filesystem

I have no idea, if isolinux will work with grub2 - if you really want to know, you have to explore yourself, I think nobody here in the forum explored this - maybe it works???

here is a good tutorial for grub 2

http://www.dedoimedo.com/computers/grub-2.html

if you search the forum for grub2, nearly all entries point to grub4dos and

grub4dos works with bzImage - this I know and its proved

grub with vmlinuz - also this I use and its proved

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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