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

Hintergrund + Anleitungen

https://help.ubuntu.com/community/Installation/FromUSBStick (allg. diverse Varianten)
https://help.ubuntu.com/community/LiveCD/Persistence
http://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
http://rudd-o.com/linux-and-free-software/a-better-way-to-create-a-customized-ubuntu-live-usb-drive
http://shallowsky.com/blog/linux/install/ubuntu-persistent-live-cd.html

Zusammenfassung: [casper-rw, persistance, Prinzip ]

Idee Workshop fuer blug

boot USB medien (z.B. von alten PC's)

auf alten PC's, wenn von BIOS nicht korrekt unterstützt
http://www.supergrubdisk.org/wiki/SuperGRUB2Disk (experimentelle UBS-Unterstützung Grub2)
http://www.plop.at/de/ploplinux/livecd.html
Plop u.Grub2 USB-Funktionalität kann natürlich auch von installiertem Grub2-Bootmanager verwendet werden.

ISO-Boot ab USB-Medium

Ideal für unveränderte FAT USB-Stick (CD od DVD imgs max 4GB)
testen eines ISO bei guter Geschwindigkeit
optionale Datenpartition (persist) casper-rw

bem: kein el torrito-boot (->grub2 mountet images, und bootet "normal"
d.h. Grub-Einträge sind z.T. schwierig bis unmöglich zu erstellen (ohne Beispiele)
qemu-boot des iso auf USB
ev. Möglichkeit gtub2-qemu cd-boot. ( zu recherchieren)

LinuxXY.iso (bootbares CD-Image)
With Grub2:
(advantage: more than one iso can be booted)

FAT32-Stick (unverändert wie aus Laden)
grub-install erstellt /boot/grub und beschreibt MBR:
grub-install --force --no-floppy --root-directory=/mnt/USB /dev/sdx
grub.cfg Einträge von Hand (grub-update erstellt Einträge auf Grund /etc/grub)

$ mount (if mounted automatically)
$ fdisk -l (and note which device is your USB) and mount manually /mnt/USB
$ grub-install --force --no-floppy --root-directory=/mnt/USB /dev/sdx
creates /boot/grub/... on usb-media
copy grub.cfg (below or penlinuxdrive)

Grub2 USB Flash Drive Install using the Ubuntu Live CD:


Boot from your Live Ubuntu Linux CD
Once booted, insert your USB Flash Drive
Open a terminal and type sudo su
Type fdisk -l (and note which device is your USB)
Type mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB (replacing x with your actual usb device)
Type grub-install --force --no-floppy --root-directory=/mnt/USB /dev/sdx (replacing  x with your actual USB device)
Type cd /mnt/USB/boot/grub
Type [=wget=] pendrivelinux.com/downloads/grub.cfg
Type df (and locate where cdrom is mounted I.E./dev/sr0)
Type dd if=/dev/sr0 of=/mnt/USB/ubuntu.iso (replacing sr0 with the device found in step 9)
Remove your Live CD and reboot your PC, setting your BIOS or Boot Menu to boot from the USB device.

#/boot/grub/grub.cfg (on usb-media)
# [=wget=] pendrivelinux.com/downloads/grub.cfg
set timeout=10
set default=0

# t i p t o p -> Keyboard und Lang und Flash in Mint 14.1  
menuentry "[very nice] Linux Mint 14.1 - Nadia (12.10) Mate" {
        set isofile="linuxmint-14.1-mate-dvd-32bit.iso"
        loopback loop /$isofile
        echo "kernel loading"
        linux (loop)/casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper iso-scan/filename=/$isofile noeject noprompt splash -- locale=de_CH bootkbd=sg console-setup/layoutcode=ch 
        echo "initrd loading"
        initrd (loop)/casper/initrd.lz
        echo "booting"
}

## Persistent ->  partition oder img casper-rw/casper-rw.img   
## Tests: scheinbar wird youtube-buffer dann auf file gebuffert, Performance!!
## weitere Tests und Verbesserungen nötig
menuentry "[--] Ubuntu 12.04 Live ISO-image persistent" {
       loopback loop /ubuntu-12.04.1-desktop-i386.iso
       linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04.1-desktop-i386.iso splash -- persistent
       initrd (loop)/casper/initrd.lz
}

menuentry "Run Ubuntu Live ISO" {
 loopback loop /ubuntu.iso
 linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso splash --
 initrd (loop)/casper/initrd.lz
}

Make resistant

http://en.wikipedia.org/wiki/UnionFS
http://wiki.ubuntuusers.de/Nur-Lesen_Root-Dateisystem
http://wiki.ubuntuusers.de/Nur-Lesen_Root-Dateisystem_mit_aufs
http://www.thelinuxdaily.com/2010/03/merging-or-creating-read-only-filesystems-with-unionfs/
http://askubuntu.com/questions/109413/how-do-i-use-overlayfs

http://www.pendrivelinux.com/how-to-create-a-larger-casper-rw-loop-file/
dd if=/dev/zero of=casper-rw bs=1M count=1024 (1GB)
mkfs.ext3 -F casper-rw
e2label casper-rw casper-rw (ev. für img nicht nötig)
vergrössern
dd if=/dev/zero bs=1M count=1024 >> casper-rw
resize2fs casper-rw

caspar-rw (ergänzt ganzes System)
home-rw

Mittels folgenden Filesystemen kann man read und write-Ordner am gleichen Ort Einhängen
zur Erweiterung eines read only Mediums (Security oder isobootable)

unionfs - aufs (knoppix)
overlayfs (ubuntu)

Test

sudo qemu /dev/sdx (or phyically boot)

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on August 05, 2014, at 04:45 PM, visited:$PageCount