Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i build OS from scratch,my os has GUI environment,few editors etc..i want to use my OS on another systems so i want to create my OS as live CD.i don't know what steps can i do for make Live cd.will you please guide me.Thanks in advance.
i just downloaded the squashfs4.3.tar.gz pakcage and i unpack the taraball and changing to the "squashfs4.3" directory after that i cahnged to "squashfs-tools" directory then i run the command
Code:
make install
the executable file mksquashfs and unsquashfs installed on /usr/local/bin directory.Then i do 5th step sorry again i getting the same error
Code:
Changing current directory to /tmp/Tomas-M-linux-live-94583b4
mksquashfs not found or doesn't support -comp xz, aborting, no changes made
i don't know why this error comes after installing squashfs-tools? please guide me how to prevent this error.Thanks in advance.
In my system it installed in /usr/bin/.
Your tarball archive must contain README and INSTALL files, read them, there should be mentioned the default installation dir.
I think it will be /usr/bin as mine.
Unpack archive anywhere (e.g. in ~/HOME ) and follow the instruction inside. make, make install and optionally configure.
In my system it installed in /usr/bin/.
Your tarball archive must contain README and INSTALL files, read them, there should be mentioned the default installation dir.
I think it will be /usr/bin as mine.
Unpack archive anywhere (e.g. in ~/HOME ) and follow the instruction inside. make, make install and optionally configure.
Hello,
The INSTALL file says
Quote:
The squashfs-tools directory contains the mksquashfs and unsquashfs programs.
These can be made by typing make (or make install to install in /usr/local/bin)
so i do make install as INSTALL file says the two executable files exists in /usr/local/bin directory but there is no use still same error i getting.
well, since you have it installed, try to run "man mksquashfs" and read through its output, is there "-comp" option available? I suspect it stands for "compression", and maybe there is some another option to set compression algorithm to xz value.
It might be something like "-c" or "-C". ANyway you have to find this option in man page and replace "-comp" in your "build" file with appropriate option
P.S.
I checked for my man and seems there is no option to set compression algorithm, so may be it worth to try simply remove "-comp xz" key from "build" file. This case it will create gzip (default archiving algorithm)
well, since you have it installed, try to run "man mksquashfs" and read through its output, is there "-comp" option available? I suspect it stands for "compression", and maybe there is some another option to set compression algorithm to xz value.
It might be something like "-c" or "-C". ANyway you have to find this option in man page and replace "-comp" in your "build" file with appropriate option
P.S.
I checked for my man and seems there is no option to set compression algorithm, so may be it worth to try simply remove "-comp xz" key from "build" file.
Hello,
i tried to run as you said but i getting the output
Quote:
root [ ~/Downloads/squashfs4.3/squashfs-tools ]# make mksquashfs
make: 'mksquashfs' is up to date.
root [ ~/Downloads/squashfs4.3/squashfs-tools ]# make unsquashfs
make: 'unsquashfs' is up to date.
root [ ~/Downloads/squashfs4.3/squashfs-tools ]#
sorry,i don't know how to remove the "-comp xz" key from "build" file.i think build is a not a file it is a shell script file.i don't know how to edit this shell script file could you please guide me how to edit it?
well, since you have it installed, try to run "man mksquashfs" and read through its output, is there "-comp" option available? I suspect it stands for "compression", and maybe there is some another option to set compression algorithm to xz value.
It might be something like "-c" or "-C". ANyway you have to find this option in man page and replace "-comp" in your "build" file with appropriate option
P.S.
I checked for my man and seems there is no option to set compression algorithm, so may be it worth to try simply remove "-comp xz" key from "build" file. This case it will create gzip (default archiving algorithm)
Hello,
I edited make file in squashfs-tools directory set default comparison alogritham to XZ and i changed default saving directories to /usr/bin after that i run make && make install then succesfully installed mksquashfs with xz comparision support. The readme file of Linux live as follows:
Code:
Linux Live Kit
==============
Use this set of scripts to turn your existing preinstalled Linux
distribution into a Live Kit (formely known as Live CD).
Make sure to extract and use it on a posix-compatible filesystem,
since it creates some (sym)links and such.
* Before you start building your Kit, edit the file ./.config
Most importantly change the LIVEKITNAME variable.
* Make sure your kernel is in /boot/vmlinuz
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
and reorganize isolinux.cfg to fit your needs (when editing the file,
keep all paths in /boot/, it will be rellocated during LiveKit creation)
* If you plan to boot your Live Kit from CD, you need to recompile
syslinux.bin else it won't be able to boot your Live Kit from directory
LIVEKITNAME. There is a script prepared for you which will handle all
of that. Simply go to directory ./tools/ and run isolinux.bin.update ...
it will update ./bootfiles/isolinux.bin automatically by downloading
isolinux sources, patching them using your actual LIVEKITNAME and
recompiling. This step is not needed if you plan to boot from USB only.
* If you have tmpfs mounted on /tmp, make sure you have enough RAM
since LiveKit will store lots of data there. If you are low on RAM,
make sure /tmp is a regular on-disk directory.
* When done, run the ./build script to create your Live Kit
- it will create ISO and TAR files for you in /tmp
- make sure you have enough free space in /tmp to handle it
i follows step by step as readme file says.
1.before i start i edit the ./config file in Live kit directory and i set LIVEKITNAME variable to IT_STUDENT
2.I replace the boot graphics image to /bootfiles/bootlogo.png
3.i edit the isolinux.cfg file accroding to my needs and saved this file.
4.i planed to boot my live kit from cd so i go to directory /tools/ and run isolinux.bin.update after end of results i getting the error i.e
Code:
gcc -O2 -o gethostip gethostip.o
gcc -Wp,-MT,memdiskfind.o,-MMD,./.memdiskfind.o.d -W -Wall -Wstrict-prototypes -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -c -o memdiskfind.o memdiskfind.c
gcc -O2 -o memdiskfind memdiskfind.o
make[1]: Leaving directory '/tmp/Tomas-M-linux-live-94583b4/tools/syslinux-4.06/utils'
ls -l version.gen version.h version.mk mbr/*.bin core/pxelinux.0 core/isolinux.bin core/isolinux-debug.bin gpxe/gpxelinux.0 dos/syslinux.com win32/syslinux.exe win64/syslinux64.exe dosutil/*.com dosutil/*.sys memdisk/memdisk memdump/memdump.com modules/*.com com32/menu/*.c32 com32/modules/*.c32 com32/mboot/*.c32 com32/hdt/*.c32 com32/rosh/*.c32 com32/gfxboot/*.c32 com32/sysdump/*.c32 com32/lua/src/*.c32 com32/chain/*.c32 utils/gethostip utils/isohybrid utils/mkdiskimage mtools/syslinux linux/syslinux extlinux/extlinux
ls: cannot access win32/syslinux.exe: No such file or directory
ls: cannot access win64/syslinux64.exe: No such file or directory
-rwxr-xr-x 1 root 501 38696 Nov 29 09:08 com32/chain/chain.c32
-rwxr-xr-x 1 root 501 22332 Nov 29 09:08 com32/gfxboot/gfxboot.c32
-rwxr-xr-x 1 root 501 343128 Nov 29 09:08 com32/hdt/hdt.c32
-rwxr-xr-x 1 root 501 253524 Nov 29 09:08 com32/lua/src/lua.c32
-rwxr-xr-x 1 root 501 34652 Nov 29 09:08 com32/mboot/mboot.c32
-rwxr-xr-x 1 root 501 54372 Nov 29 09:08 com32/menu/menu.c32
-rwxr-xr-x 1 root 501 152080 Nov 29 09:08 com32/menu/vesamenu.c32
-rwxr-xr-x 1 root 501 6208 Nov 29 09:08 com32/modules/cat.c32
-rwxr-xr-x 1 root 501 800 Nov 29 09:08 com32/modules/cmd.c32
-rwxr-xr-x 1 root 501 5132 Nov 29 09:08 com32/modules/config.c32
-rwxr-xr-x 1 root 501 5772 Nov 29 09:08 com32/modules/cpuid.c32
-rwxr-xr-x 1 root 501 15704 Nov 29 09:08 com32/modules/cpuidtest.c32
-rwxr-xr-x 1 root 501 5772 Nov 29 09:08 com32/modules/disk.c32
-rwxr-xr-x 1 root 501 35992 Nov 29 09:08 com32/modules/dmitest.c32
-rwxr-xr-x 1 root 501 28880 Nov 29 09:08 com32/modules/elf.c32
-rwxr-xr-x 1 root 501 28496 Nov 29 09:08 com32/modules/ethersel.c32
-rwxr-xr-x 1 root 501 2320 Nov 29 09:08 com32/modules/gpxecmd.c32
-rwxr-xr-x 1 root 501 4748 Nov 29 09:08 com32/modules/host.c32
-rwxr-xr-x 1 root 501 1312 Nov 29 09:08 com32/modules/ifcpu64.c32
-rwxr-xr-x 1 root 501 20192 Nov 29 09:08 com32/modules/ifcpu.c32
-rwxr-xr-x 1 root 501 7116 Nov 29 09:08 com32/modules/ifmemdsk.c32
-rwxr-xr-x 1 root 501 2316 Nov 29 09:08 com32/modules/ifplop.c32
-rwxr-xr-x 1 root 501 5084 Nov 29 09:08 com32/modules/kbdmap.c32
-rwxr-xr-x 1 root 501 8892 Nov 29 09:08 com32/modules/kontron_wdt.c32
-rwxr-xr-x 1 root 501 18152 Nov 29 09:08 com32/modules/linux.c32
-rwxr-xr-x 1 root 501 9772 Nov 29 09:08 com32/modules/ls.c32
-rwxr-xr-x 1 root 501 5556 Nov 29 09:08 com32/modules/meminfo.c32
-rwxr-xr-x 1 root 501 32612 Nov 29 09:08 com32/modules/pcitest.c32
-rwxr-xr-x 1 root 501 13404 Nov 29 09:08 com32/modules/pmload.c32
-rwxr-xr-x 1 root 501 13008 Nov 29 09:08 com32/modules/prdhcp.c32
-rwxr-xr-x 1 root 501 1932 Nov 29 09:08 com32/modules/pwd.c32
-rwxr-xr-x 1 root 501 29200 Nov 29 09:08 com32/modules/pxechn.c32
-rwxr-xr-x 1 root 501 800 Nov 29 09:08 com32/modules/reboot.c32
-rwxr-xr-x 1 root 501 2448 Nov 29 09:08 com32/modules/sanboot.c32
-rwxr-xr-x 1 root 501 26064 Nov 29 09:08 com32/modules/sdi.c32
-rwxr-xr-x 1 root 501 5644 Nov 29 09:08 com32/modules/vesainfo.c32
-rwxr-xr-x 1 root 501 6436 Nov 29 09:08 com32/modules/vpdtest.c32
-rwxr-xr-x 1 root 501 2832 Nov 29 09:08 com32/modules/whichsys.c32
-rwxr-xr-x 1 root 501 9872 Nov 29 09:08 com32/modules/zzjson.c32
-rwxr-xr-x 1 root 501 21512 Nov 29 09:08 com32/rosh/rosh.c32
-rwxr-xr-x 1 root 501 40816 Nov 29 09:08 com32/sysdump/sysdump.c32
-rw-rw-r-- 1 11341510 501 24576 Nov 29 09:09 core/isolinux.bin
-rw-rw-r-- 1 11341510 501 24576 Nov 29 09:09 core/isolinux-debug.bin
-rw-rw-r-- 1 11341510 501 26791 Nov 29 09:09 core/pxelinux.0
-rwxr-xr-x 1 root 501 54112 Nov 29 09:09 dos/syslinux.com
-rw-rw-r-- 1 11341510 501 408 Oct 23 2012 dosutil/copybs.com
-rw-rw-r-- 1 11341510 501 3890 Oct 23 2012 dosutil/eltorito.sys
-rw-rw-r-- 1 11341510 501 8106 Oct 23 2012 dosutil/mdiskchk.com
-rwxr-xr-x 1 root 501 144213 Nov 29 09:09 extlinux/extlinux
-rw-rw-r-- 1 11341510 501 88438 Nov 29 09:09 gpxe/gpxelinux.0
-rwxr-xr-x 2 root 501 112896 Nov 29 09:09 linux/syslinux
-rw-rw-r-- 1 11341510 501 439 Oct 23 2012 mbr/altmbr.bin
-rw-rw-r-- 1 11341510 501 439 Oct 23 2012 mbr/altmbr_c.bin
-rw-rw-r-- 1 11341510 501 439 Oct 23 2012 mbr/altmbr_f.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/gptmbr.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/gptmbr_c.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/gptmbr_f.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdpfx.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdpfx_c.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdpfx_f.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdppx.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdppx_c.bin
-rw-rw-r-- 1 11341510 501 432 Oct 23 2012 mbr/isohdppx_f.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/mbr.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/mbr_c.bin
-rw-rw-r-- 1 11341510 501 440 Oct 23 2012 mbr/mbr_f.bin
-rw-rw-r-- 1 11341510 501 25500 Nov 29 09:09 memdisk/memdisk
-rwxr-xr-x 1 root 501 5784 Nov 29 09:09 memdump/memdump.com
-rw-rw-r-- 1 11341510 501 55 Oct 23 2012 modules/int18.com
-rw-rw-r-- 1 11341510 501 239 Oct 23 2012 modules/poweroff.com
-rw-rw-r-- 1 11341510 501 998 Oct 23 2012 modules/pxechain.com
-rw-rw-r-- 1 11341510 501 1300 Oct 23 2012 modules/ver.com
-rwxr-xr-x 1 root 501 111172 Nov 29 09:09 mtools/syslinux
-rwxr-xr-x 1 root 501 8688 Nov 29 09:09 utils/gethostip
-rwxr-xr-x 1 root 501 26447 Nov 29 09:09 utils/isohybrid
-rwxrwxr-x 1 11341510 501 8774 Oct 23 2012 utils/mkdiskimage
-rw-rw-r-- 1 11341510 501 138 Oct 23 2012 version.gen
-rw-rw-r-- 1 11341510 501 138 Oct 23 2012 version.h
-rw-rw-r-- 1 11341510 501 108 Oct 23 2012 version.mk
Makefile:88: recipe for target 'all' failed
make: [all] Error 2 (ignored)
Copying isolinux.bin to /tmp/Tomas-M-linux-live-94583b4/bootfiles/isolinux.bin
Code:
ls: cannot access win32/syslinux.exe: No such file or directory
ls: cannot access win64/syslinux64.exe: No such file or directory
i searched solution for above error on net but i can't found solution to prevent this error.so i forgot about this error.After that i continued to the last step which is given in readme file i.e i run "./build" the end of the output is given below
Quote:
Number of files 339
Number of fragments 18
Number of symbolic links 2
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 84
Number of ids (unique uids + gids) 11
Number of uids 8
root (0)
colord (71)
kdm (37)
ntp (87)
postfix (32)
smmsp (26)
exim (31)
fcron (22)
Number of gids 10
root (0)
lp (9)
kdm (37)
ntp (87)
postfix (32)
utmp (13)
smmsp (26)
exim (31)
fcron (22)
postdrop (33)
Creating ISO file for CD boot...
Creating ZIP for USB boot...
adding: IT_STUDENT/ (stored 0%)
adding: IT_STUDENT/sbin.sb (stored 0%)
adding: IT_STUDENT/modules/ (stored 0%)
adding: IT_STUDENT/lib.sb (stored 0%)
adding: IT_STUDENT/changes/ (stored 0%)
adding: IT_STUDENT/srv.sb (stored 0%)
adding: IT_STUDENT/home.sb (stored 0%)
adding: IT_STUDENT/boot/ (stored 0%)
adding: IT_STUDENT/boot/bootinst.sh (stored 0%)
adding: IT_STUDENT/boot/extlinux.exe (stored 0%)
adding: IT_STUDENT/boot/vesamenu.c32 (stored 0%)
adding: IT_STUDENT/boot/syslinux.cfg (stored 0%)
adding: IT_STUDENT/boot/bootinst.bat (stored 0%)
adding: IT_STUDENT/boot/mbr.bin (stored 0%)
adding: IT_STUDENT/boot/syslinux.com (stored 0%)
adding: IT_STUDENT/boot/pxelinux.0 (stored 0%)
adding: IT_STUDENT/boot/linux_os_system_bullet_black_30908_1920x1080.jpg (stored 0%)
adding: IT_STUDENT/boot/syslinux.exe (stored 0%)
adding: IT_STUDENT/boot/isolinux.bin (stored 0%)
adding: IT_STUDENT/boot/initrfs.img (stored 0%)
adding: IT_STUDENT/lib64.sb (stored 0%)
adding: IT_STUDENT/var.sb (stored 0%)
adding: IT_STUDENT/opt.sb (stored 0%)
adding: IT_STUDENT/bin.sb (stored 0%)
adding: IT_STUDENT/etc.sb (stored 0%)
adding: IT_STUDENT/root.sb (stored 0%)
adding: IT_STUDENT/usr.sb (stored 0%)
adding: readme.txt (stored 0%)
finished. Find your result in /tmp
i can't found any ISO image in /tmp i only found zip file.i found some precautions before built Live cd on linux-live.org website the last precaution is
Quote:
To make bootable USB, unpack the generated TAR archive (also from /tmp) to your USB device
and run bootinst.sh from the boot subdirectory
so i follow as precaution says.when i try to test my Live cd with bootable usb it gives me a error the error image is given.i can't understand why i getting the error,i follows each and every instruction very carefully but still i getting the error.friends please guide me how to prevent this error.Thanks in advance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.