Quicklinks

EndUser

Test/Virtualisaton


Installieren

Kernel - Tuning

Network

Display / Pads

Bock Devices

Printer

USB-Devices

BenutzerSW

Server

Install Notes

General/Hints

anoyances.org

Collection of installation & troublshooting info related to my linux (debian/mint/ubuntu) installations

Kernel, initramfs, casper

chats?
https://kernelnewbies.org/IRC
Foren
https://stackexchange.com/sites#

Early User Space

initrdinitramfs
ramdiskcpio-Archiv to tempfs (kein FS)
 kann früher geladen werden
kann besser freigegeben werden
 rootfs
 busybox
pivot_rootswitch_root

Unterschiede...

Issue - backup.img, diese Installation starten
https://unix.stackexchange.com/questions/126217/when-would-you-use-pivot-root-over-switch-root
kexec
pivot_root
switch_root

Tools

[- early userspace, initramfs-tools: casper, lupin-casper, live-boot]
manpages.ubuntu.com/manpages/bionic/man7/casper.7.html
https://manpages.debian.org/jessie/live-boot-doc/live-boot.7.en.html

Was ging (Mint 17.3)

kernelparameter .. break=premount (man fällt in busybox)
exit
Startprozess geht weiter, man sieht debug-Meildungen

mount /dev/sda10 /mnt/tmp/storage/
kpartx /mnt/tmp/storage/mint...img
losetup -a -> /dev/loop0 (sah o.k. aus)

Was aber nicht ging

Grub: root=/dev/loop0 (mit vorgängier manipulation)

Bootvorgang

https://wiki.gentoo.org/wiki/Custom_Initramfs (sehr interessant)
https://wiki.debian.org/InitramfsDebug
https://www.pks.mpg.de/~mueller/docs/suse10.3/opensuse-manual_de/manual/cha.boot.html#sec.boot.linuxrc
https://landley.net/writing/rootfs-programming.html
https://busybox.net/FAQ.html#build_system

Minimallinux

http://lockett.altervista.org/linuxboot/linuxboot.html (sehr interessant)

initramfs / busybox / ..

Wunsch:
  • ein Maschine statt einer Partition ein Image unter / einhängen
  • da bei Bootables möglich, gibt es ev. ein "Trick" (Caspar,...), ein anderes Images zu starten, als das auf bootable-Image vorgesehene
  • ev. kann statt initramfs das gewünschte img gebootet werden
  • Ziel: Raspi soll images booten

Busybox

exec switch_root /mnt/root /sbin/init

https://gist.github.com/Gnurou/7190563 (Mount Script und fortfahren)

exit - fortfahren?

Bootprobleme

https://unix.stackexchange.com/questions/5032/trouble-getting-busybox-switch-root-to-work
https://askubuntu.com/questions/137655/boot-drops-to-a-initramfs-prompts-busybox (Superblocks)
https://unix.stackexchange.com/questions/5032/trouble-getting-busybox-switch-root-to-work?rq=1 (switch_root)

Hint

http://www.opopop.net/booting_linux_from_a_loop_file_system/
https://unix.stackexchange.com/questions/87541/busybox-initramfs-loop-mount
www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml (pivot_root)

im Zusammenhang

https://github.com/enclustra-bsp/busybox-rootfs/tree/master/board/raspberrypi
https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt - Doku
https://wiki.gentoo.org/wiki/Custom_Initramfs
https://wiki.gentoo.org/wiki/Early_Userspace_Mounting

Kerneloptimierung

http://mgalgs.github.io/2015/05/16/how-to-build-a-custom-linux-kernel-for-qemu-2015-edition.html

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on February 24, 2020, at 08:49 AM, visited:$PageCount