Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i am trying to make a custom respin of fedora9 with third party packages, and make a live usb with "persistent image overlay", it is a must for me to make this enabled
i already made a couple of tries in makaing the livecd and live usb with live usb creator, i am successful in making live cd and with that i made a liveusb but the data gets wiped off after i reboot.
i finally understood that i need to modify my kickstart file in order to achieve this, but my knowledge is insufficient to make this possible
therefore i seek the help of the geeks, i am posting my kickstart data file , kindly help me
auth --useshadow --enablemd5
part / --size 4096
services --enabled=NetworkManager --disabled=network,sshd
# save some space
# smartcards won't really work on the livecd.
# duplicate functionality
# dasher is just too big
# lose the compat stuff
# scanning takes quite a bit of space :/
# livecd bits to set up the livecd and be able to install
# make sure debuginfo doesn't end up on the live image
# FIXME: it'd be better to get this installed from a package
cat > /etc/rc.d/init.d/fedora-live << EOF
# live: Init script for live image
# chkconfig: 345 00 99
# description: Init script for live image.
if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e /.liveimg-configured ] ; then
which \$1 >/dev/null 2>&1 || return
# mount live image
if [ -b /dev/live ]; then
mkdir -p /mnt/live
mount -o ro /dev/live /mnt/live
# enable swaps unless requested otherwise
swaps=\`blkid -t TYPE=swap -o device\`
if ! strstr "\`cat /proc/cmdline\`" noswap -a [ -n "\$swaps" ] ; then
for s in \$swaps ; do
action "Enabling swap partition \$s" swapon \$s
# add fedora user with no passwd
useradd -c "Fedora Live" fedora
passwd -d fedora > /dev/null
# turn off firstboot for livecd boots
chkconfig --level 345 firstboot off 2>/dev/null
# don't start yum-updatesd for livecd boots
chkconfig --level 345 yum-updatesd off 2>/dev/null
# don't do packagekit checking by default
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-packagekit/frequency_get_updates never >/dev/null
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-packagekit/frequency_refresh_cache never >/dev/null
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-packagekit/notify_available false >/dev/null
# don't start cron/at as they tend to spawn things which are
# disk intensive that are painful on a live image
chkconfig --level 345 crond off 2>/dev/null
chkconfig --level 345 atd off 2>/dev/null
chkconfig --level 345 anacron off 2>/dev/null
chkconfig --level 345 readahead_early off 2>/dev/null
chkconfig --level 345 readahead_later off 2>/dev/null
# Stopgap fix for RH #217966; should be fixed in HAL instead
# workaround clock syncing on shutdown that we don't want (#297421)
sed -i -e 's/hwclock/no-such-hwclock/g' /etc/rc.d/init.d/halt
# bah, hal starts way too late
cat > /etc/rc.d/init.d/fedora-late-live << EOF
# live: Late init script for live image
# chkconfig: 345 99 01
# description: Late init script for live image.
if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
which \$1 >/dev/null 2>&1 || return
# read some variables out of /proc/cmdline
for o in \`cat /proc/cmdline\` ; do
case \$o in
# if liveinst or textinst is given, start anaconda
if strstr "\`cat /proc/cmdline\`" liveinst ; then
if strstr "\`cat /proc/cmdline\`" textinst ; then
/usr/sbin/liveinst --text \$ks
# configure X, allowing user to override xdriver
if [ -n "\$xdriver" ]; then
exists system-config-display --noui --reconfig --set-depth=24 \$xdriver
# only works on x86, x86_64
if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
(..) make a live usb with "persistent image overlay", it is a must for me to make this enabled(..) i made a liveusb but the data gets wiped off after i reboot. (..) i need to modify my kickstart file in order to achieve this
As far as I have read your KS file I see no option to "install", activate or configure the "persistent image overlay" feature (and the HOWTO talks about using a slider in the GUI, but what do I know...). I'd look at the Fedora.*.ks files included in the liveusb package for clues first? Else are you sure you use the latest version of the liveusb tool? IIGC there seemed to have been a problem with persistent overlay in an earlier version.