Multiboot Linux Persistent USB Stick

Hallo,
ich würde gerne einen USB Stick mit 3 Verschiedenen Distris erstellen (Tails, JonDo und Kali) alle drei Systeme sollen Persistent sein.

Wie stelle ich das an?

Danke
 
Danke für die Links, werd die trotz meinen schlechten Englich versuchen zu verstehen, allerdings soll der multiboot stick, bzw. Die einzelnen Systeme persistent sein
 
Die Persistenz stellt man in der jeweils gebooteten Distri ein. Sowohl . Kali als auch Tails bieten die Option an.
 
How To Boot 10 Different Live CDs From 1 USB Flash Drive
QUOTE]

Hab dort diese Daei runtergeladen http://liveusb.info/multisystem/multisystem.tar.bz2 und anschliessend per tar -xvjpf multisystem.tar.bz2 entpackt, dann in das neuerstellte verzeichniss gewechselt und dort ein sudo ./install ausgeführt, nach eingabe des Passworts kommt dann dieser Fehler.

Code:
sudo ./install.sh
root's password:
error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server

(zenity:3011): Gtk-WARNING **: cannot open display:

was mache ich falsch?

Ich hab auch den aktuellen gtkdialog installiert

Circuidipity | Transform a USB stick into a boot device packing multiple Linux distros
QUOTE]

Hier hänge ich bei punkt 2 der grub installation.
Bei
sudo grub-install --force --no-floppy --boot-directory=MOUNTPOINT/boot /dev/sdc
bekomme ich die meldung
WARNING! You are trying to invoke the unsupported grub-install script
with a parameter. To really do this, call grub-install.unsupported.
You should rather call "yast2 bootloader" or create configuration files
appropriate for the intended target.

Wenn ich dann
sudo grub-install.unsupported --force --no-floppy --boot-directory=MOUNTPOINT/boot /dev/sdc
kommt:
Code:
Unrecognized option `--force'
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

  -h, --help              print this message and exit
  -v, --version           print the version information and exit
  --root-directory=DIR    install GRUB images under the directory DIR
                          instead of the root directory
  --grub-shell=FILE       use FILE as the grub shell
  --no-floppy             do not probe any floppy drive
  --force-lba             force GRUB to use LBA mode even for a buggy
                          BIOS
  --recheck               probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.

The grub source distribution carries this script to ease the
installation of grub as a boot loader. In Suse Linux however, grub
installation is much better handled by Yast; use of this script is
generally discouraged and therefore unsupported. Consequently, the
script has been renamed to grub-install.unsupported.

In order to (re-)install grub for the currently running system, simply
use Yast. For an installation aiming at a differing system, the
crafting of an appropriate device.map and grub shell script is
strongly advised, e.g.
"grub --batch --device-map=target-device.map < target-grub.conf"
 
Zuletzt bearbeitet:
Ich würde darauf tippen, dass entweder kein XServer läuft oder der Benutzer, mit dem du install.sh ausführst, nicht auf diesen zugreifen darf.
 
Wenn du meinen ersten eintrag meinst, bin unter kdem arbeiten, also sollte doch der xserver laufen oder!? und hab den befehl auch als root ausgeführt, der sollte das ja dürfen

sudo sh install.sh
root's password:
error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server

(zenity:6929): Gtk-WARNING **: cannot open display:
 
Zuletzt bearbeitet:
Hab den xserver jetzt per init 5 als Root gestartet und mich dann auch als Root eingeloggt, aber der Fehler ist der gleiche.

Ist egal wo ich es versuche, Konsole, xterm, init 3, immer der gleiche Fehler
 
Zuletzt bearbeitet:
Dann bist du vermutlich auf einem Wayland-XServer? Probier's mal mit folgendem:

Code:
export XDG_RUNTIME_DIR=/tmp/
./install.sh
 
Auch nach dem export kommt der gleiche Fehler
Code:
sudo ./install.sh
error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server

(zenity:2245): Gtk-WARNING **: cannot open display:



Hab mir mal noch yumi angesehen, da es aber kein opensuse rpm gibt, wie baue ich das aus den yumi sourcen?
 
sudo übernimmt per Default die Umgebungsvariablen nicht. D.h. wenn du erst einen export-Befehl machst und danach ein 'sudo befehl' aufrufst, dann ist der exportierte Wert nicht für die sudo-Umgebung gültig. Daher:

Code:
sudo su
cd /dein/entpackter/ordner
export XDG_RUNTIME_DIR=/tmp/
./install.sh

Wobei in sudo auch nicht notwendig wäre, wenn dein XServer als root läuft. In dem Fall hast du auch eine Root-Shell zur Verfügung.
 
So, bin jetzt nochmal dazu gekommen, der Stick hat zwei fat32 Partitionen, auf die erste hab ich mittels yumi unter Windows die verschiedenen LiveCD's gepackt, auf die zweite Partition dann die
mit diesem inhalt
size=5,4gb
read bytes _ < <(du -bcm kali-linux-1.0.7-amd64.iso |tail -1); echo $bytes
parted /dev/sdc mkpart primary $bytes $size
mkfs.ext3 -L persistence /dev/sdc2
e2label /dev/sdc2 persistence
mkdir -p /mnt/my_usb
mount /dev/sdc2 /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/sdc2

Der stick ist sdc, die Partition wo die Live Cd's sind ist sdc1 und die
ist auf sdc2

Leider funktioniert es so nicht, was könnte falsch sein? ALso start von Kali ist kein Problem, nur wird beim beenden nichts gespeichert

Danke
 
Zurück
Oben