Skip to content
Snippets Groups Projects
Commit 5682efea authored by Valentin Bruch's avatar Valentin Bruch
Browse files

delete old files

parent e94ebad5
No related branches found
No related tags found
No related merge requests found
\subsection{anaconda}
Anaconda ist ein umfassendes Tool für wissenschaftliche Berechnungen in Python, es beinhaltet Standard-Bibliotheken, Tools und eine IDE.
Aufzurufen über die graphische Oberfläche.\\
Für Hilfe: \texttt{conda help}
acpi=copy_dsdt Korrigiert DSDT, insbesondere bei Toshiba-Notebooks.
acpi=force Für BIOS-Versionen vor 2002, aktiviert die ACPI
-Unterstützung zwangsweise im Kernel.
acpi=off Deaktiviert ACPI vom BIOS (kann helfen, aber auch zur
"Kernelpanic" führen).
all_generic_ide Generischen IDE-Treiber für alle Geräte verwenden,
die vom BIOS erkannt wurden.
bootchart=disable Deaktiviert die Visualisierung bzw. die Aufzeichung
eines Boot-Charts bei installiertem BootChart
BOOT_DEBUG=2|3 Fehlersuche während des Startvorgangs
bootdegraded Bootet Ubuntu auch auf einem inkonsistenten RAID-1
DEBCONF_DEBUG=5 Ausführliche Fehlersuche
elevator=deadline so wird für alle Blockgeräte der Deadline Scheduler
verwendet anstatt CFQ, kann bei SSD-Festplatten
nützlich sein
fb=false Deaktiviert den Framebuffer.
hpet=force Erzwingt die Aktivierung das HPET-Timers, hilfreich
beim Energiesparen bei Laptops, dessen BIOS die HPET
vor dem Betriebssystem verstecken
(z.B. IBM Thinkpad X31)
ht=on Aktiviert Hyper-Threading.
irqpoll zusammengezogen aus IRQ und Polling. IRQ ist eine
Unterbrechungsanforderung per Leitung an den Prozessor.
Polling ist das Verfahren zur Steuerung des Zugriffs
auf angeschlossene Geräte.
noapic, noagp, noapm Deaktiviert die automatische Erkennung von APIC
(IRQ-Verwaltung), AGP (Grafik) oder der
Energieverwaltung.
nolapic Deaktiviert die lokale APIC-Erkennung.
nolapic_timer Deaktiviert den lokalen APIC-Timer. Selektiver als
noapic und nolapic. Instabilitäten durch den Timer
werden umgangen, der Rest von APIC bleibt voll
funktionsfähig. Erste Wahl bei Notebooks, da das
Energiemanagement funktional bleibt.
nomodeset deaktiviert modesetting im Kernel, und die
Infrastruktur von X.org wird verwendet
(z.B. Acer Extensa 5635Z)
pci=bios
pci=biosirq
pci=noacpi Schaltet die ACPI-Erkennung während der PCI-
Konfiguration aus (ist insbesondere bei manchen VIA-
Chipsätzen notwendig).
pci=nomsi Deaktiviert "Message Signaled Interrupts". Hilft oft
bei Problemen mit dem SATA-Controller auf neueren
Mainboards.
pci=routeirq IRQ-Autorouting, hilfreich für einige Mainboards
(zum Beispiel Asus A7N8X).
processor.max_cstate=3 behebt das Problem des "C4-Fiepen" -
(siehe unten)
single booten in den Single-User-Mode
text booten in die Konsole, X bleibt aussen vor, interaktiver Modus
mit Netzwerk vergleichbar Runlevel 3
usb=bios
vga=... Stellt die Auflösung von Grub und der Konsole ein.
xforcevesa Der XServer (graphische Oberfläche) wird unabhängig von der
verwendeten Hardware nur für "vesa" konfiguriert.
nomodeset Verhindert, dass der Kernel die Mode-Settings für die
Grafikkarte durchführt. Die Mode-Settings werden wie vor
Kernel 2.6.28 im User-Mode durchgeführt
(siehe auch:Mode-Settings).
noplymouth Schaltet die Anzeige von Plymouth ab, diese Ergänzung
ersetzt das nosplash aus dem alten Ubuntu-Splash.
pcie_aspm=force Erzwingt Active State Power Management (Kernel 2.6.38+)
nomodeset Verhindert, dass der Kernel die Mode-Settings für die
Grafikkarte durchführt. Die Mode-Settings werden wie vor
Kernel 2.6.28 im User-Mode durchgeführt
(siehe auch:Mode-Settings).
noplymouth Schaltet die Anzeige von Plymouth ab, diese Ergänzung
ersetzt das nosplash aus dem alten Ubuntu-Splash.
pcie_aspm=force Erzwingt Active State Power Management (Kernel 2.6.38+)
#!/bin/sh
# lipnsa.sh -- collecting your data for a better world
# Lars Beckers, larsb@fsmpi.rwth-aachen.de, September 2014
LIPSTICK="/root/cdrom"
LOGFUNCTIONSSOURCE="/scripts/casper-functions"
TARGET="/root"
if [ -e "${LOGFUNCTIONSSOURCE}" ]; then
. ${LOGFUNCTIONSSOURCE}
else
echo "Warning: ${LOGFUNCTIONSSOURCE} does not exist. Cannot source casper functions!"
fi
if [ -n "$1" ] && [ -d "$1" ]; then
LIPSTICK="$1"
shift
else
log_warning_msg "LIPSTICK mount point not specified. Falling back to ${LIPSTICK}."
fi
LIPSTATS="${LIPSTICK}/lipstats"
if [ $# -gt 0 ]; then
echo "collects system information, i.e. hardware and what the kernel thinks about it"
echo "called as liphook before leaving initramfs"
echo "usage: lipnsa.sh [lipstick directory]"
echo ""
echo "requires proc and sysfs to be mounted"
echo "append 'fnord' to your kernel cmdline to disable this tool"
echo "data is saved to ${LIPSTATS}/product-uuid/kernel-boot-id/"
echo "${LIPSTICK} is remounted rw in the process, remounted ro at the end"
echo "considering the product-uuid we generally trust what dmidecode says"
echo "if it's unavailable we may use a fallback instead (sysfs, random by kernel)"
echo "some commands are processed outside the initramfs, in a chroot using the prepared system"
echo ""
echo "currently lipnsa.sh collects the following:"
echo " running architecture"
echo " ip link information"
echo " block device listing"
echo " pci device listing"
echo " usb device listing"
echo " cpu information"
echo " listing of kernel modules"
echo " kernel command line"
echo " decoded dmi table"
echo " detection of active efi"
echo " detection of secureboot"
echo " memory information"
echo " partition information"
echo " and the current timestamp"
exit
fi
if [ -f /proc/cmdline ]; then
grep fnord /proc/cmdline
if [ $? == 0 ]; then
log_warning_msg "lipnsa.sh has been deactivated. :("
exit
fi
else
log_failure_msg "It seems that /proc is not mounted. lipnsa.sh aborting."
exit
fi
if [ ! -d /sys/class ]; then
log_failure_msg "It seems that /sys is not mounted. lipnsa.sh aborting."
exit
fi
log_success_msg "This is lipnsa.sh -- collecting your data for a better world"
# mounts for chrooted commands
# actually lsblk, lscpu and dmidecode work without chroot
# but i think it is more sane to not depend on that
TARGETMOUNTS=1
mount -t proc proc ${TARGET}/proc
if [ $? != 0 ]; then
log_warning_msg "> could not mount proc on the target, this might produce wrong results"
TARGETMOUNTS=0
fi
mount -t sysfs sysfs ${TARGET}/sys
if [ $? != 0 ]; then
log_warning_msg "> could not mount sysfs on the target, this might produce wrong results"
TARGETMOUNTS=0
fi
UUID="unavailable"
UUID_SOURCE="dmidecode"
if [ $TARGETMOUNTS -gt 0 ]; then
UUID=`chroot ${TARGET} dmidecode --string system-uuid`
if [ $? != 0 ]; then
log_warning_msg "> dmidecode was unable to retrieve the system-uuid from chroot, trying without chroot"
else
UUID_SOURCE="dmidecode-chroot"
fi
fi
if [ $UUID_SOURCE == "dmidecode" ]; then
UUID=`dmidecode --string system-uuid`
if [ $? != 0 ]; then
log_warning_msg "> dmidecode was unable to retrieve the system-uuid, trying sysfs dmi product_uuid"
UUID_SOURCE="sysfs"
UUID=`cat /sys/class/dmi/id/product_uuid`
if [ $? != 0 ]; then
log_warning_msg "> sysfs dmi product_uuid is unavailable, using random uuid"
UUID=`cat /proc/sys/kernel/random/uuid`
if [ $? != 0 ]; then
UUID_SOURCE="unavailable"
else
UUID_SOURCE="random"
fi
fi
fi
fi
BOOTID=`cat /proc/sys/kernel/random/boot_id`
log_success_msg "> using ${UUID}/${BOOTID}"
DIR="${LIPSTATS}/${UUID}/${BOOTID}"
mount -o remount,rw ${LIPSTICK}
mkdir -p "${DIR}"
if [ $? != 0 ]; then
log_failure_msg "> could not create directory, aborting"
exit
fi
log_success_msg "> remounted lipstick rw, created directory"
echo ${UUID_SOURCE} > "${DIR}/uuid_source" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save uuid source"
else
log_success_msg "> saved uuid source"
fi
echo ${TARGETMOUNTS} > "${DIR}/targetmounts" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save usage of target mounts"
else
log_success_msg "> saved usage of target mounts"
fi
date +%s > "${DIR}/timestamp" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save timestamp"
else
log_success_msg "> saved timestamp"
fi
uname -m > "${DIR}/architecture" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save architecture"
else
log_success_msg "> saved architecture"
fi
ip link > "${DIR}/ip-link" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save ip devices"
else
log_success_msg "> saved ip devices"
fi
kmod list > "${DIR}/kmod-list" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save the formatted module list"
else
log_success_msg "> saved the formatted module list"
fi
blkid > "${DIR}/blkid" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save block device information"
else
log_success_msg "> saved block device information"
fi
if [ -d /sys/firmware/efi ]; then
echo "yes" > "${DIR}/efi" 2>&1
ls /sys/firmware/efi/efivars | grep -i SecureBoot > "${DIR}/secureboot"
if [ $? != 0 ]; then
echo "not found" > "${DIR}/secureboot" 2>&1
fi
else
echo "no" > "${DIR}/efi" 2>&1
echo "not found" > "${DIR}/secureboot" 2>&1
fi
log_success_msg "> saved detection of efi and secureboot"
cat /proc/cmdline > "${DIR}/cmdline" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save the kernel command line"
else
log_success_msg "> saved the kernel command line"
fi
cat /proc/modules > "${DIR}/modules" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save the module list"
else
log_success_msg "> saved the module list"
fi
cat /proc/cpuinfo > "${DIR}/cpuinfo" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save cpu information"
else
log_success_msg "> saved cpu information"
fi
cat /proc/meminfo > "${DIR}/meminfo" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save memory information"
else
log_success_msg "> saved memory information"
fi
cat /proc/partitions > "${DIR}/partitions" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save the partition list"
else
log_success_msg "> saved the partition list"
fi
if [ $TARGETMOUNTS -gt 0 ]; then
chroot ${TARGET} lspci -mm > "${DIR}/lspci" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save listing of pci devices"
else
log_success_msg "> saved listing of pci devices"
fi
else
log_warning_msg "> not trying to gather pci devices due to unavailable mounts"
fi
TRY_UNCHROOTED=0
if [ $TARGETMOUNTS -gt 0 ]; then
chroot ${TARGET} lsblk > "${DIR}/lsblk" 2>&1
if [ $? != 0 ]; then
log_warning_msg "> listing of block devices unsuccessful, trying without chroot"
TRY_UNCHROOTED=1
else
log_success_msg "> saved listing of block devices"
fi
else
TRY_UNCHROOTED=1
fi
if [ $TRY_UNCHROOTED -gt 0 ]; then
lsblk >> "${DIR}/lsblk" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save listing of block devices"
else
log_success_msg "> saved listing of block devices"
fi
fi
TRY_UNCHROOTED=0
if [ $TARGETMOUNTS -gt 0 ]; then
chroot ${TARGET} lscpu > "${DIR}/lscpu" 2>&1
if [ $? != 0 ]; then
log_warning_msg "> listing of cpus unsuccessful, trying without chroot"
TRY_UNCHROOTED=1
else
log_success_msg "> saved listing of cpus"
fi
else
TRY_UNCHROOTED=1
fi
if [ $TRY_UNCHROOTED -gt 0 ]; then
lscpu >> "${DIR}/lscpu" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save listing of cpus"
else
log_success_msg "> saved listing of cpus"
fi
fi
TRY_UNCHROOTED=0
if [ $TARGETMOUNTS -gt 0 ]; then
chroot ${TARGET} dmidecode > "${DIR}/dmidecode" 2>&1
if [ $? != 0 ]; then
log_warning_msg "> unable to retrieve decoded dmi table, trying without chroot"
TRY_UNCHROOTED=1
else
log_success_msg "> saved decoded dmi table"
fi
else
TRY_UNCHROOTED=1
fi
if [ $TRY_UNCHROOTED -gt 0 ]; then
dmidecode >> "${DIR}/dmidecode" 2>&1
if [ $? != 0 ]; then
log_failure_msg "> could not save decoded dmi table"
else
log_success_msg "> saved decoded dmi table"
fi
fi
if [ $TARGETMOUNTS -gt 0 ]; then
chroot ${TARGET} lsusb > "${DIR}/lsusb" 2>&1
if [ $? != 0 ]; then
grep "unable to initialize libusb: -99" "${DIR}/lsusb"
if [ $? != 0 ]; then
log_failure_msg "> could not save listing of usb devices"
else
echo "no usb controller found" > "${DIR}/lsusb" 2>&1
log_success_msg "> saved listing of usb devices"
fi
else
log_success_msg "> saved listing of usb devices"
fi
else
log_warning_msg "> not trying to gather usb devices due to unavailable mounts"
fi
if [ $TARGETMOUNTS -gt 0 ]; then
umount ${TARGET}/sys
if [ $? != 0 ] && [ $TARGETMOUNTS -gt 0 ]; then
log_warning_msg "> could not unmount sysfs on the target, this might cause some trouble"
fi
umount ${TARGET}/proc
if [ $? != 0 ] && [ $TARGETMOUNTS -gt 0 ]; then
log_warning_msg "> could not unmount proc on the target, this might cause some trouble"
fi
fi
sync
if [ $? != 0 ]; then
log_failure_msg "> could not flush filesystem buffers"
else
log_success_msg "> flushed filesystem buffers"
fi
mount -o remount,ro ${LIPSTICK}
if [ $? != 0 ]; then
log_failure_msg "> could not remount lipstick ro"
else
log_success_msg "> remounted lipstick ro"
fi
log_success_msg "lipnsa.sh has finished, thank you for your cooperation"
qemu-kvm -m 2G -drive file=/path/to/stick,if=scsi
qemu -enable-kvm -m 2G -drive file=/data/data/stick.img,if=scsi
Alte Optionen. Funktionieren (warscheinlich) nicht mit aktuellem Stick/Image
qemu -boot c -m 128 -hda /dev/sdX -net none -localtime
qemu-system-x86_64 -boot c -m 128 -hda /dev/sdX -net none -localtime
qemu-i386 -boot c -m 128 -hda /dev/sdX -net none -localtime
qemu-system-x86_64 -enable-kvm -hda /dev/sdX -net none -localtime
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment