User Tools

Site Tools


linux:slitaz:how-to-create-livecd-iso

假设已经chroot到slitaz目录: 查看一下当前目录结构,其中rootfs,是解压rootfs.gz后修改的目录,修改好的rootfs.gz已经拷贝到rootcd/boot目录下。 其中rootcd就是整个LiveCD,mount 之后拷贝出来的所有文件。

/media/sdb7/pjq/slitaz # ls
chroot_in_env.sh  rootcd            rootfs

用来创建ISO的命令:

  /media/sdb7/pjq/slitaz # genisoimage -R -o slitaz-pjq-hacked.iso -b  boot/isolinux/isolinux.bi
n  -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4  -V "SliTza-Hacked by pjq" -input
-charset iso8859-1 -boot-info-table rootcd              
Size of boot image is 4 sectors -> No emulation
 17.56% done, estimate finish Fri Apr 16 15:31:24 2010
 35.13% done, estimate finish Fri Apr 16 15:31:24 2010
 52.65% done, estimate finish Fri Apr 16 15:31:24 2010
 70.22% done, estimate finish Fri Apr 16 15:31:24 2010
 87.73% done, estimate finish Fri Apr 16 15:31:24 2010
Total translation table size: 2048
Total rockridge attributes bytes: 5584
Total directory bytes: 12288
Path table size(bytes): 64
Max brk space used 12000
28500 extents written (55 MB)
genisoimage -R -o slitaz-pjq-hacked.iso -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -V “SliTza-Hacked by pjq” -input -charset iso8859-1 -boot-info-table rootc

可以看到生成的ISO文件变大了,之前只有30M,这是因为我安装了mplayer,vim,scim-pinying

/var/www/dokuwiki/wiki/data/pages/linux/slitaz/how-to-create-livecd-iso.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1