LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 11-25-2014, 07:49 AM   #1
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Rep: Reputation: 0
How to make a Live cd ?


Hello,

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.
 
Old 11-25-2014, 01:51 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,427

Rep: Reputation: Disabled
Take a look here, http://www.linux-live.org/
 
Old 11-27-2014, 10:50 AM   #3
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fatmac View Post
Take a look here, http://www.linux-live.org/
Hello fatmac,

Thanks for your suggestion,i found some precautions on which you are suggested website before doing Live cd such precautions are given below
Quote:
How to build a Live distro:

1)
Install your favourite distro to disk partition, or into a folder on your existing system.

Slackware is recommended but not required.

2)
Build aufs kernel module and squashfs kernel module (native support in kernel)

The step above is not required if you use precompiled Linux Kernel from this website

Install kernel modules to the newly installed distro to /lib/modules/$(uname -r)/fs/.

Make sure you are running the same kernel you used to compile modules

3)
Remove all unnecessary files (for example man pages and all other files you don't need),

to make your Live Linux system as small as possible (this step is optional).

4)
Download Linux Live Kit from github and put it in /tmp

Read files in ./DOC/ to learn how it works (this step is optional)

Edit .config file if you need to modify some variables

5)
Finally login as root and run ./build

Your Live Kit ISO image will be created in /tmp

6)
To make bootable USB, unpack the generated TAR archive (also from /tmp) to your USB device

and run bootinst.sh from the boot subdirectory
when i do 5th step i getting the following error
Code:
Changing current directory to /tmp/Tomas-M-linux-live-783a0bb
mksquashfs not found or doesn't support -comp xz, aborting, no changes made
please help me i tried to search for solution regarding this issue on internet but i can't find proper solution please guide me Thanks in advance.

Last edited by Carl_cj; 11-27-2014 at 10:53 AM.
 
Old 11-27-2014, 11:26 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
You have to install squashfs-tools.
 
Old 11-27-2014, 11:35 AM   #5
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
You have to install squashfs-tools.
Hello,

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.

Last edited by Carl_cj; 11-27-2014 at 12:16 PM.
 
Old 11-27-2014, 12:06 PM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
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.
 
Old 11-27-2014, 12:19 PM   #7
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
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.

Last edited by Carl_cj; 11-27-2014 at 12:25 PM.
 
Old 11-27-2014, 12:30 PM   #8
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
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)

Last edited by Teufel; 11-27-2014 at 12:37 PM.
 
Old 11-27-2014, 12:38 PM   #9
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
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?

Last edited by Carl_cj; 11-27-2014 at 12:42 PM.
 
Old 11-29-2014, 11:42 AM   #10
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
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.
Attached Thumbnails
Click image for larger version

Name:	IMG_20141129_135357.jpg
Views:	71
Size:	123.1 KB
ID:	16959  

Last edited by Carl_cj; 11-29-2014 at 11:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I wanna make a live slackware live cd. Please help cyto Slackware 7 08-04-2011 02:23 AM
every live distro make make screen out of frequency clhona Linux - Hardware 2 02-14-2007 01:46 AM
I'd like to make a live cd... mcrofut MEPIS 3 05-31-2006 04:57 PM
how to make Live CD ! hitesh_linux Linux - General 3 09-09-2004 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration