Fedora Linux Support Community & Resources Center
  #1  
Old 28th May 2012, 05:54 PM
k18kumar Offline
Registered User
 
Join Date: May 2012
Location: India
Posts: 4
windows_xp_2003firefox
Angry Live USB not working even with new syslinux for fedora 16

Hi,
I was trying to make a live usb from a fedora 16 iso image and while i tried to do that the usb does not boot and gets stuck with the peter anvin page.

I am using latest syslinux version. This was updated in the live usb tools folder.
Earlier version/new version of syslinux did not help

Fedora 16 is not booting
Reply With Quote
  #2  
Old 28th May 2012, 06:47 PM
Colors Offline
Registered User
 
Join Date: Dec 2011
Location: Urziceni, Romania
Posts: 129
linuxfirefox
Re: Live USB not working even with new syslinux for fedora 16

You need f16 installed on hdd. For testing create minimal iso image:

As root:

# livecd-creator --config /home/your_name/f16.cfg --cache=/home/your_name/16/i686/ --fslabel=f16

Put this code into a text file (f16.cfg) in your home directory:

Code:
lang en_US.UTF-8
keyboard us
timezone Europe/Bucharest
auth --useshadow --enablemd5
selinux --enforcing
firewall --enabled
xconfig --startxonboot
services --enabled=restorecond --disabled=avahi-daemon,dnsmasq,fcoe,ip6tables,lldpad,lvm2-monitor,mdmonitor,mdmonitor-takeover,multipathd,ntpdate,pppoe-server,rdisc,snmpd,snmptrapd,wpa_supplicant
part / --fstype=ext4

repo --name=fedora --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-16&arch=i386
repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f16&arch=i386

######## minimal installation ########

%packages
@core
anaconda
kernel-PAE

isomd5sum
memtest86+

grub2
grub2-efi
efibootmgr

firstboot
ntp

yum-plugin-fastestmirror
yum-presto

gdm
gnome-panel
plymouth-theme-charge
xorg-x11-drivers

-audit
gnome-shell
nautilus
-sendmail

gnome-packagekit
NetworkManager-gnome
xdg-user-dirs-gtk

######## minimal installation ########

%end

%post
# FIXME: it'd be better to get this installed from a package
cat > /etc/rc.d/init.d/livesys << EOF
#!/bin/bash
#
# live: Init script for live image
#
# chkconfig: 345 00 99
# description: Init script for live image.

. /etc/init.d/functions

if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ]; then
    exit 0
fi

if [ -e /.liveimg-configured ] ; then
    configdone=1
fi

exists() {
    which \$1 >/dev/null 2>&1 || return
    \$*
}

touch /.liveimg-configured

# Make sure we don't mangle the hardware clock on shutdown
ln -sf /dev/null /etc/systemd/system/hwclock-save.service

# mount live image
if [ -b \`readlink -f /dev/live\` ]; then
   mkdir -p /mnt/live
   mount -o ro /dev/live /mnt/live 2>/dev/null || mount /dev/live /mnt/live
fi

livedir="LiveOS"
for arg in \`cat /proc/cmdline\` ; do
  if [ "\${arg##live_dir=}" != "\${arg}" ]; then
    livedir=\${arg##live_dir=}
    return
  fi
done

# enable swaps unless requested otherwise
swaps=\`blkid -t TYPE=swap -o device\`
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then
  for s in \$swaps ; do
    action "Enabling swap partition \$s" swapon \$s
  done
fi
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /mnt/live/\${livedir}/swap.img ] ; then
  action "Enabling swap file" swapon /mnt/live/\${livedir}/swap.img
fi

mountPersistentHome() {
  # support label/uuid
  if [ "\${homedev##LABEL=}" != "\${homedev}" -o "\${homedev##UUID=}" != "\${homedev}" ]; then
    homedev=\`/sbin/blkid -o device -t "\$homedev"\`
  fi

  # if we're given a file rather than a blockdev, loopback it
  if [ "\${homedev##mtd}" != "\${homedev}" ]; then
    # mtd devs don't have a block device but get magic-mounted with -t jffs2
    mountopts="-t jffs2"
  elif [ ! -b "\$homedev" ]; then
    loopdev=\`losetup -f\`
    if [ "\${homedev##/mnt/live}" != "\${homedev}" ]; then
      action "Remounting live store r/w" mount -o remount,rw /mnt/live
    fi
    losetup \$loopdev \$homedev
    homedev=\$loopdev
  fi

  # if it's encrypted, we need to unlock it
  if [ "\$(/sbin/blkid -s TYPE -o value \$homedev 2>/dev/null)" = "crypto_LUKS" ]; then
    echo
    echo "Setting up encrypted /home device"
    plymouth ask-for-password --command="cryptsetup luksOpen \$homedev EncHome"
    homedev=/dev/mapper/EncHome
  fi

  # and finally do the mount
  mount \$mountopts \$homedev /home
  # if we have /home under what's passed for persistent home, then
  # we should make that the real /home.  useful for mtd device on olpc
  if [ -d /home/home ]; then mount --bind /home/home /home ; fi
  [ -x /sbin/restorecon ] && /sbin/restorecon /home
  if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi
}

findPersistentHome() {
  for arg in \`cat /proc/cmdline\` ; do
    if [ "\${arg##persistenthome=}" != "\${arg}" ]; then
      homedev=\${arg##persistenthome=}
      return
    fi
  done
}

if strstr "\`cat /proc/cmdline\`" persistenthome= ; then
  findPersistentHome
elif [ -e /mnt/live/\${livedir}/home.img ]; then
  homedev=/mnt/live/\${livedir}/home.img
fi

# if we have a persistent /home, then we want to go ahead and mount it
if ! strstr "\`cat /proc/cmdline\`" nopersistenthome && [ -n "\$homedev" ] ; then
  action "Mounting persistent /home" mountPersistentHome
fi

# make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches
mount -t tmpfs -o mode=0755 varcacheyum /var/cache/yum
mount -t tmpfs tmp /tmp
mount -t tmpfs vartmp /var/tmp
[ -x /sbin/restorecon ] && /sbin/restorecon /var/cache/yum /tmp /var/tmp >/dev/null 2>&1

EOF

# bah, hal starts way too late
cat > /etc/rc.d/init.d/livesys-late << EOF
#!/bin/bash
#
# live: Late init script for live image
#
# chkconfig: 345 99 01
# description: Late init script for live image.

. /etc/init.d/functions

if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e /.liveimg-late-configured ] ; then
    exit 0
fi

exists() {
    which \$1 >/dev/null 2>&1 || return
    \$*
}

# read some variables out of /proc/cmdline
for o in \`cat /proc/cmdline\` ; do
    case \$o in
    ks=*)
        ks="\${o#ks=}"
        ;;
    xdriver=*)
        xdriver="\${o#xdriver=}"
        ;;
    esac
done

# if liveinst or textinst is given, start anaconda
if strstr "\`cat /proc/cmdline\`" liveinst ; then
   plymouth --quit
   /usr/sbin/liveinst \$ks
fi
if strstr "\`cat /proc/cmdline\`" textinst ; then
   plymouth --quit
   /usr/sbin/liveinst --text \$ks
fi

# configure X, allowing user to override xdriver
if [ -n "\$xdriver" ]; then
   cat > /etc/X11/xorg.conf.d/00-xdriver.conf <<FOE
Section "Device"
	Identifier	"Videocard0"
	Driver	"\$xdriver"
EndSection
FOE
fi

touch /.liveimg-late-configured

EOF

chmod 755 /etc/rc.d/init.d/livesys
/sbin/restorecon /etc/rc.d/init.d/livesys
/sbin/chkconfig --add livesys

chmod 755 /etc/rc.d/init.d/livesys-late
/sbin/restorecon /etc/rc.d/init.d/livesys-late
/sbin/chkconfig --add livesys-late

%end

%post
cat > /root/chkconfig.sh << EOF
#!/bin/bash
/sbin/chkconfig --del iscsi
/sbin/chkconfig --del iscsid
#/sbin/chkconfig --del livesys		#used in usb stick installation
#/sbin/chkconfig --del livesys-late	#used in usb stick installation
/sbin/chkconfig --del netconsole
/sbin/chkconfig --del netfs
/sbin/chkconfig --del network

EOF

/bin/chmod u+x /root/chkconfig.sh
/bin/bash /root/chkconfig.sh

%end

%post --nochroot
cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL

# 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
fi
%end
You will see some warnings about not finding couple services, that is becouse i left this line:

services --enabled=restorecond --disabled=avahi-daemon,dnsmasq,fcoe,ip6tables,lldpad,lvm2-monitor,mdmonitor,mdmonitor-takeover,multipathd,ntpdate,pppoe-server,rdisc,snmpd,snmptrapd,wpa_supplicant

unmodified for this minimal installation.

The iso image will be in /root (f16.iso) and write it on usb:

# livecd-iso-to-disk --format --reset-mbr --noverify --overlay-size-mb 512 --unencrypted-home --home-size-mb 2048 f16.iso /dev/sdb

If your usb is /dev/sdb...

# growisofs -dvd-compat -Z /dev/dvd=f16.iso

for a dvd, succes.
Reply With Quote
  #3  
Old 29th May 2012, 07:40 AM
k18kumar Offline
Registered User
 
Join Date: May 2012
Location: India
Posts: 4
windows_xp_2003firefox
Re: Live USB not working even with new syslinux for fedora 16

Thanks Colors. Let em try that

there is no way that we can create a live USB from windows OS?
I was using live usb creator software with latest syslinux .
Reply With Quote
  #4  
Old 29th May 2012, 11:25 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,077
linuxfirefox
Re: Live USB not working even with new syslinux for fedora 16

Try http://unetbootin.sourceforge.net/
Reply With Quote
  #5  
Old 29th May 2012, 01:44 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,303
linuxchrome
Re: Live USB not working even with new syslinux for fedora 16

Quote:
Originally Posted by k18kumar View Post
Thanks Colors. Let em try that

there is no way that we can create a live USB from windows OS?
I was using live usb creator software with latest syslinux .
Do you want a live USB using an existing live image?
You can do that with the LiveUSB-Creator from the FedoraProject.org pages, its a windows exe.
EDIT: See this Guide


However, you cannot (at least i'm not aware of) create a live image iso yourself in an environment thats not linux,
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot

Last edited by sea; 29th May 2012 at 01:47 PM.
Reply With Quote
  #6  
Old 2nd June 2012, 07:11 AM
k18kumar Offline
Registered User
 
Join Date: May 2012
Location: India
Posts: 4
windows_7firefox
Re: Live USB not working even with new syslinux for fedora 16

Live usb with a existing image. I tried live USB from windows OS. did not work. Let me try Unet booting
Reply With Quote
  #7  
Old 4th June 2012, 08:51 AM
k18kumar Offline
Registered User
 
Join Date: May 2012
Location: India
Posts: 4
windows_xp_2003firefox
Re: Live USB not working even with new syslinux for fedora 16

Thanks all. Its working now. Actually the issue was with the HP startup software and i disabled it and its booting fedora from USB now.
Reply With Quote
Reply

Tags
fedora, live, syslinux, usb, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Live- wireless not working j13860 Installation, Upgrades and Live Media 2 27th February 2011 01:45 AM
Fedora 10 SysLinux Splash, Login Manager cvk Using Fedora 3 5th May 2009 02:40 PM
Fedora 8 Live CD not working Ohioan Installation, Upgrades and Live Media 0 25th February 2008 03:24 PM
Fedora Core 8 PPC Live CD Not Working AdriaticBlue Mac Chat 6 5th February 2008 06:47 AM
Can Fedora Core 5 be made to work with syslinux at all? Nazo Using Fedora 1 3rd September 2006 06:37 PM


Current GMT-time: 08:31 (Saturday, 30-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat