You are not logged in.
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
what you mean with another?
maybe it was compressed with gzip and not lzma
Offline
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
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
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
try the same command again - I use
[c]tazlito writeiso lzma[/c]
all the time without any problems
Offline
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
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
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
and now its clear, how you got an iso that was smaller, then the original one - because vmlinuz is missing..........
Offline
ill try to boot the image then,
Offline
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
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
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
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
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
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
@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
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
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
so burn the iso it on a cd and it will boot
how you are booting your normal slitaz now?
Offline
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
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
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
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
[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]