sh Netboot Ubuntu Live CD

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Netboot Ubuntu Live CD相关的知识,希望对你有一定的参考价值。

# Ubuntu 16.04

sudo apt install git golang nfs-kernel-server

mkdir -p /home/me/gopath/bin/
mkdir -p /home/me/gopath/src/
cd /home/me/gopath/src/
git clone https://github.com/danderson/pixiecore
cd pixiecore
export GOPATH=/home/me/gopath/
go install

cat > /etc/exports <<EOF
/cdrom/   *(ro,sync,no_subtree_check)
EOF

# sudo /home/me/gopath/bin/pixiecore -kernel /cdrom/casper/vmlinuz.efi -initrd /cdrom/casper/initrd.lz --cmdline 'boot=casper netboot=nfs nfsroot=192.168.0.10:/cdrom/ locale=de_DE bootkbd=de console-setup/layoutcode=de --'

## DOES LOAD KERNEL AND INITRD
## DOES NOT SEEM TO LOAD THE FS VIA NFS
## Perhaps due to
## https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1327412
# Working workaround:

sudo /home/me/gopath/bin/pixiecore -kernel /cdrom/casper/vmlinuz.efi -initrd /cdrom/casper/initrd.lz --cmdline 'boot=casper netboot=nfs nfsroot=192.168.0.10:/cdrom/ ip=192.168.0.11::192.168.0.1:255.255.255.0::enp0s25 locale=de_DE bootkbd=de console-setup/layoutcode=de --'

# Ubuntu boots successfully

#############################

# Works!!! a tiny GUI based distro
wget -c http://mirror.slitaz.org/iso/5.0/slitaz-5.0-rc3.iso
mount -o loop slitaz-5.0-rc3.iso /mnt/ -o loop
/isodevice/Applications/pixiecore -kernel /mnt/boot/vmlinuz-3.2.53-slitaz -initrd /mnt/boot/rootfs.gz -cmdline rw root=/dev/null autologin

以上是关于sh Netboot Ubuntu Live CD的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu Live CD模式联网修复

ubuntu live cd修复grub引导项

关于linux live cd问题

ubuntu 10.10桌面版Live cd的语言是部分汉化还是完整的中文语言包?

如何从 Windows 系统硬盘启动 ubuntu live-cd 的 ISO 镜像文件

python 一个终端代码片段,在mac上生成可启动的usb live CD,以运行类似ubuntu或debian的内容。