(TUTORIAL) How to Make LiveCD/USB from installed Slackware 13/current or Arch system!
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
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.
(TUTORIAL) How to Make LiveCD/USB from installed Slackware 13/current or Arch system!
OK
Gonna share with everyone how I have finally learned how to make a bootable
persistent livecd/usb from your installed-to-hard-drive 13 or current system.
Its not very hard and is very useful for making a Rescue cd, or maybe even a kiosk-like usb-browser.
Materials Needed:
1) A installed Slackware 13 (prefer current) system
1) Install a minimal or full Slackware current system to a hard drive partition
with at least 4-5GB of space.
( Install can be no more than 2.6-2.7GB for a ~700MB CD; anything bigger
will be a DVD size!)
2) Grab Quax's kernel source and compile it as you wish
I just changed 486 to 686 and you can make both aufs and squashfs as built-in to kernel (*) or as modules (M).
See link above at slax forum for more info
If using aufs/squashfs as built-in, you must edit LinuxLiveScripts as at slax link above.
After compiling kernel, install it and boot off of new kernel.
3) Grab LinuxLiveScripts 6.3.0 and untar it into /tmp
edit .config and build if need be, also edit linux-live-6.3.0/initrd/initrd_create
if you made aufs/squashfs as built-in!(see slax link above for kernel)
4) empty /var/cache/sbopkg, /var/cache/slackpkg, /var/slapt-get, /var/log/removed_pkgs, /var/log/removed_scripts, /var/log/sbopkg, and /var/lib/slackpkg
as these files are unnecessary.
also delete or mksquashfs /usr/doc folder.
5) after cleaning system, configure everything as you want, bookmarks,etc
6) goto /tmp and run the build script in /tmp/linux-live-6.3.0.
This is how I am making/made nFlxu slack edition
the new one uses this kernel I compiled, only changing 486 to 686 and different name
I just did make menuconfig, then compiled it.
As for X, I used 3 scripts from Absolute Linux, namely /usr/local/sbin safex vidconfig del_caller
combined with /etc/rc.d/rc.local
When I made nFlux slackware current, I deleted xorg.conf and replaced it with xorg.conf-vesa
cp /etc/X11/xorg.conf-vesa /etc/X11/xorg.conf
and so when you choose "no" and use vesa driver in vidconfig ncurses gui, it uses the xorg.conf
if you choose "yes", it makes new xorg.conf
it recognized my nvidia mx4000 card easily when i answered "yes"
but on my HP amd athlon64 with sis integrated graphics I had to use "no" or vesa option
If you guys have any hints for how to setup livecd to have option to boot to runlevel 3 or 4
I'm all ears!
I have nflux set for runlevel 4
after making livecd, it doesn't respond to boot parameters like "3" or "autoexec=teleinit~3"
but, I think I could have a inittab.3 or something as a user needs to choose 3 if they have a X issue.
any ideas??
I have made a very good kernel from Quax's sources with many things added in
including alot of built-in support for ext2, 3, and 4
aufs and squashfs as (M), aufs set at 511 (load up to 511 slax modules)
arch i686
it also has all this http://www.slax.org/forum.php?action...parentID=61323
I wonder if it is possible to use kernel 2.6.34-qx1 instead of kernel-live-2.6.33.3-qx2.txz? I mean in order to use LLS 6.3.0 to remaster Slackware 13.1.
If I compile kernelsources for 2.6.34-qx1 using your .config config-2.6.33.3-qx2 will that do the trick? Or do I have to do something else?
BTW: I can not install nFlux Slackware 13.1 to harddisk using nflux-installer. I e the install program seems to work but when I try to boot up from harddisk I get kernel panic. I use GRUB. Is this correct?: title nFlux Slackware 13.1 (sda7)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro resume=/dev/sda5
Last edited by golfer7; 06-05-2010 at 12:53 PM.
Reason: Spell check. q instead of g.
I compiled my kernel 13.1 from quax's 2.6.33.3-qx2 source for i686
its i486 as is
I havent gotten quax's new 2.6.34 kernel to successfully compile yet
If you want you could compile one of those
Or
I could pkg the 13.1 2.6.33.3-13.1 kernel/modules, stripped or full srcs etc for you?
as is its for i686
EDIT:
Oh did you read the manual-install text in /usr/doc?
which version of nflux slack do you have?
The manual-install explains the easy way to install to hdd
and grub-legacy is also there with lilo
you may have to edit /etc/fstab /etc/mtab
all info in /usr/doc/manual-install and /usr/doc/info of new version about that
but firt need to know if you have new version?
Heres a quote from /usr/doc/info
Quote:
It is a work-in-progress; sourced from Slack-Mini-Server's "sms-text-
installer".
If you want to instead "manually" install nFlux to a hard-drive
partition; I have included a tutorial (/usr/doc/manual-install)
I use to install Slax and it's derivatives, including nFlux,
to a prepared hard-drive partition(s).
HINT: the manual-install method is fun and you will learn
alot, please see all docs concerning Lilo, Grub, and Grub2!
For now, the best method involves using the nFlux-Installer
then Exit the installer when it comes time to install the
boot loader; either Lilo, Grub (legacy), or Grub2.
After exiting installer, you can then install Lilo or Grub to
either the MBR or root of a partition.
both liloconfig and grub(legacy)config are in fbpanel system menu
the manual-install test explains about how the installer basically just automates what the manual install method does
so, please read both of those in /usr/doc
also, note that there is a grub2 lzm entry to load grub2 module
I havent gotten quax's new 2.6.34 kernel to successfully compile yet
I could do that.
Quote:
Originally Posted by linus72
EDIT:
Oh did you read the manual-install text in /usr/doc?
which version of nflux slack do you have?
The manual-install explains the easy way to install to hdd
and grub-legacy is also there with lilo
you may have to edit /etc/fstab /etc/mtab
all info in /usr/doc/manual-install and /usr/doc/info of new version about that
but first need to know if you have new version?
Heres a quote from /usr/doc/info:
both liloconfig and grub(legacy)config are in fbpanel system menu
the manual-install test explains about how the installer basically just automates what the manual install method does
so, please read both of those in /usr/doc
also, note that there is a grub2 lzm entry to load grub2 module
No, I just used nflux-installer. I will however now try to edit /etc/fstab and /etc/mtab. That could possibly fix the kernel panic error.
And did you remaster your install wint new 2.6.34 kernel or is that the problem?
as you stated at slax forum
beny wrote:
Quote:
hi, your Slackware kernel, should be Quax kernel 2.6.34-qx1 to have the right environment for LLS. imho.
As I said before I´m already using that kernel. LLS 6.3.0 does not work though. I e I can make a new ISO, but it does not work. "Cannot mount union"...
Yes, that's correct. My remastered Slackware 13.1 system with kernel 2.6.34-qx1 will not boot fully. It stops saying something about not being able to mount union.
Thanks for your kernel-live 2.6.33.3-qx2. I can remaster Slackware 13.1 with LLS 6.3.0 without problems with your compiled kernel.
Re. nflux-installer: It did not help to edit /etc/fstab and /etc/mtab. I get kernel panic anyhow. I'm sure I have got fstab/mtab right.
OK
can you tell me all about your setup?
partition its on
you installed lilo?
did you chroot in and do /sbin/lilo
aftre editing /etc/lilo.conf?
did you look at fstab/myab exam[ples in manual-install?
Note that the linux-live-6.3.0 in /root of new nFlux 13.1
is different than original
I added some stuff to initrd_create and also
the "magic" IF
if you have aufs,squashfs as built-in vs modules
OK
can you tell me all about your setup? partition its on you installed lilo? did you chroot in and do /sbin/lilo after editing /etc/lilo.conf?
I did not install LILO since I use GRUB on that computer. (I have 10 other Linux systems installed on the very same computer).
Quote:
Originally Posted by linus72
did you look at fstab/myab examples in manual-install?
Yes I did (now). It does not help. (I get kernel panic when booting).
Quote:
Originally Posted by linus72
Note that the linux-live-6.3.0 in /root of new nFlux 13.1 is different than original I added some stuff to initrd_create and also the "magic" IF if you have aufs,squashfs as built-in vs modules
That should not mean anything re. the function of nflux-installer. Or? Too bad that I can´t use nflux-installer. I have been looking for a program/script like that to be able to install my Slackware remasters.
I will now try to install nFlux Slackware manually. I´m sure that will work.
Edit later the same day
Maybe there is nothing wrong with nflux-installer after all. I did a manual install of nFlux Slackware 13.1 to a partition on my second harddisk. The same problem with kernel panic. Maybe the problem is connected with my second harddisk. It seems to me that your kernel 2.6.33.3-13.1 only want to recognize my first harddisk. I will try to install nFlux on another computer. A manual install of a Slackware live system should always be successful.
Edit a little later again the same day
Yes, I could use nflux-installer on another computer installing nFLUX to a partition on my first harddisk (/dev/sda). No need to edit fstab/mtab! Thanks linus72! Sorry if I made you believe there was something wrong with nFlux and/or nflux-installer.
Last edited by golfer7; 06-06-2010 at 02:21 PM.
Reason: Misunderstanding
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.