Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to make a emergency PXE bootloader for a LIVECD (not the ubuntu netboot small cd, but rather a desktop livecd to boot from the command line). Will this work:

# Create a cpio archive of just the ISO and append it to the initrd image. 
( echo "ubuntu-13.10-desktop-amd64.iso" | cpio -H newc --quiet -o ) |  gzip -9 |   cat ubuntu-13.10-desktop-amd64.iso_EXTRACTED/casper/initrd0.img - > tftpboot/initrd0.img

# Kernel image.
cp ubuntu-13.10-desktop-amd64.iso_EXTRACTED/isolinux/vmlinuz0 tftpboot/vmlinuz0

# pxelinux bootloader part:
LABEL pxeboot
    KERNEL vmlinuz0
    APPEND initrd=initrd0.img root=/ubuntu-13.10-desktop-amd64.iso             rootfstype=iso9660 rootflags=loop

What am i doing wrong?

share|improve this question
Does anyone have any guidance on this? :( – Bran Jan 27 '14 at 23:37
anyone? Sorry for bumping – Bran Feb 3 '14 at 7:24
up vote 1 down vote accepted

That configuration loads the whole image through a slow protocol like TFTP.

  • Try other option using NFS protocol.

    apt-get install nfs-kernel-server
    mkdir /mnt/ubuntu
    mount -o loop ubuntu-13.10-desktop-amd64.iso /mnt/ubuntu-desktop-cd
  • Share it through NFS

    sudo nano /etc/exports

    Add this line

  • Start NFS service

    service nfs-kernel-server restart
  • In APPEND line, replace root, rootfstype and rootfstype with:

    netboot=nfs nfsroot=

Note: I used these IP's just as an example. is IP of the NFS server Is local network range.


share|improve this answer
I've tried this to boot the avlinux livecd over PXE. The initial boot works, but then it dies with an kernel exception. I suspect the livecd must have some explicit support for this, or it would not work. – markus_b May 13 '14 at 11:13
@markus_b, have you tried booting avlinux with a ubuntu kernel? – Sneetsher Sep 26 '14 at 6:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.