12

I retried to build my persistent Linux USB stick, now Ubuntu 16.04 is out. But still it boot only to a busyBox prompt when using the persitent boot entry:

BOOT_IMAGE=/casper/vmlinux.efi file=/cdrom/preseed/ubunutu.seed boot=casper verbose persistent ramdisk_size=4294967296 keyb=de locale=de_DE no_splash ---

I have four partions:

  • 100 MiB FAT32 ESP
  • 2 GiB FAT32 for the sqashfs
  • 1 GiB SWAP
  • ~ 12 GiB for peristent data

My problem is that mount -n -o move /dev {rootmnt}/dev fails with:

run-init: current directory on the same filesystem as the root : error 0

How should I proceed?

There are news to this question. I can refine it now and I found a start of an anwser. The Problem is located around the bootfiles not going into the ESP as they are intended to be installed there. Can confirm that this question is related, but doesn't answer this problem. I found that problem was caused by my failure to install all bootfiles nessary into the ESP. I create a specifice question about a possible sulution attempt here to not clutter up this question as I was try to repair my mess on my own. @videonauth pointed me to this answer in chat, but it has to be converted for using with UEFI boot.

Feel free to help me to straiten up this question if you find doubleings or coment to provide questions about information that can help you and me to anwser my question.

  • I upgrade to a second 4 GiB pendrive (non-perstistent) with ubuntu 16.04 and recreated the perstistent one with this live system. If I start it non-perstistent it boots fine to desktop, but it auto configs to us keyboard layout. but if I use the perstistent boot entry it fails on initramfs to move to root. – Kupferdrache May 04 '16 at 12:30
  • Following things are still, the last entries on stdout: cp: can't create '/root/var/log/': Is directory cp: can't create '/root/etc/': Is directory done. Begin: Running 7scripts/nfs-bottom ... done Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. mount: mounting /run on /root/run failed: No such file or directory run-init:current directory on the same filesystem as root: error 0 Target filesystem doesn't have requested /sbin/init. run-init: current directory on the same filesystem as root: error 0 5 lines – Kupferdrache May 04 '16 at 12:46
  • I switched to building it within Ubuntu it self meanwhile, but that seemed to been not noticed (I edited It also not futher yet). but I created a more general one here: Busybox on persistent USB Livesystem – Kupferdrache Jun 02 '16 at 15:31
  • Now, I know how to make it persistent, the problem, is another one, it boots to busybox, altrough it souldn't from all I know. The linked question also contains no new information. – Kupferdrache Jun 03 '16 at 20:46
  • I worked around by installing the system to the stick for now. But I would appriate a solution for that way anyway. No answer as it don't solve the question. – Kupferdrache Jul 03 '16 at 15:55
  • @DavidFoerster you are welcome. – Kupferdrache Jul 05 '16 at 08:36
  • FYI: If you put the casper-rw partition on a second thumb drive persistence will likely work... – C.S.Cameron Jul 20 '17 at 16:17

1 Answers1

1

I don't know exactly what causes the boot to terminate in a busybox/initramfs prompt but I can provide you with an alternate solution that does not involve installing Ubuntu to USB and still gives true persistence.

Try to use the mkusb tool to make your persistent USB system.

Detailed instructions are given here.

Complete documentation+working can be found at https://help.ubuntu.com/community/mkusb

Harsh
  • 898