Multiboot Linux Persistent USB Stick

Dann schau doch mal im Kali während es läuft nach, ob /etc und /home noch immer in einer RAM-Disk liegen oder auf den USB-Stick gemountet sind. Wenn sie noch im RAM liegen, solltest du mal die Logs des Systemstarts durchschauen, ob dort was bezüglich der Persistenz steht.
 
Kannst du mir bitte etwas genauer erkl'ren was ich da machen muss

Danke

Kannst du dir bitte wenigstens die Basics selbst aneignen? Fühle mich hier langsam etwas verarscht, weil man dir jeden Scheiss auf dem goldenen Teller servieren muss. Befehle, die du erstmal ausführen und deren Output durchlesen solltest:

man bash
man df
man mount
man grep
man less
man grub

Weiterer Lesestoff:

- http://www.kali.org/official-documentation/
- Linux-Einführung: Das Dateisystem
- Linux Devices

Und danach kannst du dich nochmal mit einem Kali auf einem USB-Stick auseinandersetzen. Ansonsten such dir jemand anderen für's Spoonfeeding. Reicht, wenn ich das bei meiner 4 Monate alten Tochter tun muss.
 
Hallo, und erstmal Herzlichen Glueckwunsch das du das gleiche Glueck wie ich hast, und eine fast 5 Monatige Tochter hast.

Ich bin leider nicht so fit in den Themen wie du, wie du merkst, und mir fehlt auch ein wenig die Zeit.
Zugegeben, bin auch ein wenig such faul. Was ich versuchen werde zu aendern

Ich denke ich habe den Fehler gefunden, aber nicht gel;st.
Im Boot log steht folgendes
Code:
Begin: Running /scripts/live-realpremount ... done.
Begin: Mounting "/live/medium//multiboot/kali/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0" ... done.
mount: mounting /dev/sda on /live/persistence/sda failed: No such device
mount: mounting /dev/sdb2 on /live/persistence/sdb2 failed: No such device
mount: mounting /dev/sdb5 on /live/persistence/sdb5 failed: No such device
mount: mounting /dev/sdb on /live/persistence/sdb failed: No such device
mount: mounting /dev/sdc on /live/persistence/sdc failed: No such device
sort: /tmp/custom_mounts.list: No such file or directory
/init: line 1: can't open /tmp/custom_mounts.list: no such file
rm: can't remove '/tmp/custom_mounts.list': No such file or directory
umount: can't umount /live/overlay: Device or resource busy
done.
Begin: Configuring fstab ... done.
Begin: Preconfiguring networking ... done.

Die persentence.conf sieht so aus
Code:
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
 
Hi,
muss hier doch noch mal fragen, habs immer noch nicht hinbekommen.

Hab jetzt nochmal einen USB Stick mit verschiedenen Distris erstellt, und dann versucht Kali Peristent einzustelen.

Habs wie hier beschribene Kali Linux Live USB Persistenz | Kali Linux Offizielle Dokumentation mit LUKS versucht, die Konfig bei mir sieht jetzt so aus:

Code:
size=4,8gb
read bytes _ < <(du -bcm kali-linux-1.0.9a-amd64.iso |tail -1); echo $bytes
parted /dev/sdb2 mkpart primary $bytes $size
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
cryptsetup luksOpen /dev/sdb3 my_usb
mkfs.ext3 -L persistence /dev/mapper/my_usb
e2label /dev/mapper/my_usb persistence
mkdir -p /mnt/my_usb
mount /dev/mapper/my_usb /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/mapper/my_usb
cryptsetup luksClose /dev/mapper/my_usb

und die Partitionenierung des Sticks wie auf dem Screen zu sehen.

Leider klappt es trotzdem noch nicht mit der perestens, was könnte ich noch falsch machen...


ein df ergibt bei laufendem Kali Live

Code:
Filesystem     1K-blocks    Used Available Use% Mounted on
rootfs           4086568   53580   4032988   2% /
udev               10240       0     10240   0% /dev
tmpfs             817316     720    816596   1% /run
/dev/sdc1       25619216 2953744  22665472  12% /lib/live/mount/medium
/dev/loop0       2664448 2664448         0 100% /lib/live/mount/rootfs/filesystem.squashfs
tmpfs            4086568       0   4086568   0% /lib/live/mount/overlay
tmpfs            4086568       0   4086568   0% /lib/live/mount/overlay
aufs             4086568   53580   4032988   2% /
tmpfs               5120       0      5120   0% /run/lock
tmpfs            1634620      76   1634544   1% /run/shm
 
Zuletzt bearbeitet:
Das ist so denke ich richtig da, wie in dem gParted Screen yu sehen,der Stick bei mir sdb2 ist!

Da ein mount folgendes Zeigt,
denke ich das die Perestenz nivht richtig gemountet wird.
Code:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1018647,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=817316k,mode=755)
/dev/sdc1 on /lib/live/mount/medium type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
/dev/loop0 on /lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,relatime)
tmpfs on /lib/live/mount/overlay type tmpfs (rw,noatime,mode=755)
aufs on / type aufs (rw,relatime,si=75f6eefb0f3116d9,noxino)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1634620k)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

sdc1 wird als vfat, gemountet, die perestens.conf liegt aber ja auf der ext4!_
 
Zuletzt bearbeitet:
Usb

Hallo

Der Stick kann nicht sdb2 sein, der ist sdb

sdb1 und sdb2 sind Partitionen des sticks

Anpassen meinten die jungs von Kali, anstatt sdb z.B. sdc wie in meinem Fall

mach mal lsusb

dann siehst du, das der Stick sdb heißt




mfg
schwedenmann
 
lsusb yeigt
Bus 003 Device 004: ID 5986:0308 Acer, Inc
Bus 003 Device 003: ID 147e:1001 Upek TCS5B Fingerprint sensor
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Dann 'nder ich das mal auf sdb in der .conf und dann mal sehn was passiert
 
Hi,
also laut gParted heisst er wenn ich Kali gestartet habe sdd,
hab die config dann mal so abgeändert.

Code:
size=4,8gb
read bytes _ < <(du -bcm kali-linux-1.0.9a-amd64.iso |tail -1); echo $bytes
parted /dev/sdd mkpart primary $bytes $size
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
cryptsetup luksOpen /dev/sdb3 my_usb
mkfs.ext3 -L persistence /dev/mapper/my_usb
e2label /dev/mapper/my_usb persistence
mkdir -p /mnt/my_usb
mount /dev/mapper/my_usb /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/mapper/my_usb
cryptsetup luksClose /dev/mapper/my_usb

funktioniert aber trotzdem nicht.

fdisk -l

liefert

Code:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1b96bacd

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   929523711   464760832    7  HPFS/NTFS/exFAT
/dev/sdb2       929523712  1953521663   511998976    7  HPFS/NTFS/exFAT

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb63f3e69

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   107493375    53745664    7  HPFS/NTFS/exFAT
/dev/sda2   *   107493376   107698175      102400    7  HPFS/NTFS/exFAT
/dev/sda3       107698176   250068991    71185408    7  HPFS/NTFS/exFAT

Disk /dev/sdd: 31.0 GB, 31024349184 bytes
255 heads, 63 sectors/track, 3771 cylinders, total 60594432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00035e12

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *        2048    51265535    25631744    b  W95 FAT32
/dev/sdd2        51265536    59457535     4096000   83  Linux
und der Stick ist /dev/sdd
 
Zuletzt bearbeitet:
Komm einfach nicht weiter, sieht jetzt so aus,
hab die grub.cfg jetzt mal so geändert:
Code:
#insmod gpt
#insmod pc
#insmod gfxmenu
#
#insmod videotest
insmod tga
insmod png
insmod gfxterm
insmod lspci
#insmod vbeinfo
insmod vbe
insmod ntfs
insmod chain
insmod biosdisk
insmod font
#http://grub.enbug.org/ThemeFormat
#http://grub.gibibit.com/Theme_format#colors
#http://code.google.com/p/burg/wiki/InstallUbuntu
#http://code.google.com/p/burg/downloads/list
#http://ubuntuforums.org/showthread.php?t=1195275
#pour acces a grub2 du bootloader principal modifier dans fichier: /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=10 #0 par defaut
#GRUB_HIDDEN_TIMEOUT_QUIET=false #true d'origine
#sudo update-grub
#echo -n "Press ESC to see the menu... "
#if sleep --verbose --interruptible 5 ; then
#set timeout=0
#fi
set default=0
set timeout=30
set fallback=1
search --no-floppy --fs-uuid --set=root A575-02FD
set root=${root}
#http://grub.enbug.org/gfxterm
if loadfont /boot/polices/unicode.pf2 ; then
set gfxmode=640x480
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
#set gfxmode=auto
#set gfxpayload=keep
fi
fi
#set locale_dir=/boot/grub/locale
#set lang=en
#insmod gettext
if background_image /boot/splash/splash.png ; then
#text no sel/fond ecran
set color_normal=white/black #1
#text sel/fond ecran sel
set color_highlight=green/white #1
else
set menu_color_normal=white/black #2
set menu_color_highlight=green/white #2
set color_normal=white/magenta #2
set color_highlight=green/white #2
fi
#set gfxpayload="1280x1024,1024x768,800x600,640x480"
#set gfxpayload=keep
#Ne supprimez pas ce marqueur! / Do not remove this marker!
#MULTISYSTEM_START
#MULTISYSTEM_MENU_DEBUT|04-03-2015-12:32:07-282959358|debian1|multisystem-kali|2911Mio|
menuentry "Kali Live (amd64-pae)" {
linux /debian1/live/vmlinuz root=UUID=A575-02FD live-media-path=/debian1/live boot=live persistence noconfig=sudo username=root hostname=kali
initrd /debian1/live/initrd.img
}
menuentry "Kali Live (amd64-pae failsafe)" {
linux /debian1/live/vmlinuz root=UUID=A575-02FD live-media-path=/debian1/live boot=live persistence config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd /debian1/live/initrd.img
}
menuentry "Kali live-forensic" {
linux /debian1/live/vmlinuz root=UUID=A575-02FD live-media-path=/debian1/live boot=live persistence noconfig=sudo username=root hostname=kali noswap noautomount
initrd /debian1/live/initrd.img
}

#MULTISYSTEM_MENU_FIN|04-03-2015-12:32:07-282959358|debian1|multisystem-kali|2911Mio|
#MULTISYSTEM_STOP
#Ne supprimez pas ce marqueur! / Do not remove this marker!
menuentry "______________Grub4Dos______________" {
echo
}
#http://grub4dos.sourceforge.net/
#http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial
menuentry "Grub4Dos" {
linux /boot/grub.exe --config-file=/boot/grub/menu.lst
}
menuentry "______________Syslinux______________" {
echo
}
#solution tordue, mais qui passe partout ...
#menuentry "Syslinux" {
#search --set -f /boot/syslinux/redir.img
#linux16 /boot/syslinux/memdisk
#initrd16 /boot/syslinux/redir.img
#}
#http://syslinux.zytor.com
menuentry "Syslinux" {
search --set -f "/boot/syslinux/ldlinux.sys"
drivemap -s (hd0) $root
chainloader +1
}
#Autre solution pour chainer Syslinux via une copie du mbr
#dd if=/dev/sd?1 of=/media/multisystem/boot/img/syslinux.mbr bs=512 count=1
#menuentry "Syslinux" {
#search --set -f "/boot/img/syslinux.mbr"
#drivemap -s (hd0) $root
#chainloader /boot/img/syslinux.mbr
#}
menuentry "______________UTIL______________" {
echo
}
## for debugging set debug=efi
#menuentry "0-testfakebios" {
#hexdump -s 0xc0000 (mem)
#fakebios
#hexdump -s 0xc0000 (mem)
## deliberate error to get wait for key
#xxx
#}
#How to test GRUB 2 on Macbook
#http://grub.enbug.org/TestingOnMacbook
#
#http://wiki.gentoo.org/wiki/GRUB2
#
#menuentry "Windows 7 BIOS/MBR" {
#     insmod part_msdos
#     insmod ntldr
#     insmod ntfs
#     ntldr (hd0,msdos1)/bootmgr
#}
#menuentry "Windows XP BIOS/MBR" {
#     insmod part_msdos
#     insmod ntldr
#     insmod ntfs
#     ntldr (hd0,msdos1)/ntldr
#}
#
#chainer un autre grub
#menuentry "grub.cfg auf /dev/sdb1" {
#configfile (hd1,1)/boot/grub/grub.cfg
#}
#menuentry "Chain other configfile" {
#configfile /boot/grub/grub-xxx.cfg
#}
#
#menuentry "Return default menu" {
#chainloader /boot/grub/boot.img
#}
#chainer win ou autre OS
#menuentry "Chainer UUID de la partition" {
#insmod=ntfs
#set root=(hd0,1)
#search --no-floppy --fs-uuid --set=root xxx-xxx
#drivemap -s (hd0) $root
#chainloader +1
#}
#http://www.plop.at/en/bootmanagerdl.html
menuentry "PLoP Boot Manager" {
linux16 /boot/img/plpbt
}
#http://www.supergrubdisk.org/
#http://developer.berlios.de/project/showfiles.php?group_id=10921
#SG2D (Floppy, CD & USB in one)
#super_grub_disk_hybrid-1.98s1.iso
menuentry "Super Grub2 Disk" {
search --set -f /boot/img/sgdh.iso
linux16 /boot/syslinux/memdisk
initrd16 /boot/img/sgdh.iso
}
menuentry "Super Grub Disk" {
search --set -f /boot/img/sgdfr.img
linux16 /boot/syslinux/memdisk
initrd16 /boot/img/sgdfr.img
}
menuentry "Smart Boot Manager" {
search --set -f /boot/img/sbootmgr.dsk
linux16 /boot/syslinux/memdisk
initrd16 /boot/img/sbootmgr.dsk
}
#Site: http://boot.kernel.org/index.html
#Téléchargement: http://boot.kernel.org/gpxe_images/gpxe.lkrn
menuentry "BKO (boot.kernel.org)" {
search --set -f /boot/img/gpxe.lkrn
linux16 /boot/img/gpxe.lkrn
}
#http://www.memtest.org/#downiso
menuentry "memtest86+" {
linux16 /boot/img/memtest86+.bin
}
menuentry "vbeinfo" {
vbeinfo
read
}
menuentry "lspci" {
lspci
read
}
menuentry "gfxpayload 640x480" {
set gfxpayload=640x480
echo gfxpayload=${gfxpayload} press enter
read
}
menuentry "gfxpayload 800x600" {
set gfxpayload=800x600
echo gfxpayload=${gfxpayload} press enter
read
}
menuentry "gfxpayload 1024x768" {
set gfxpayload=1024x768
echo gfxpayload=${gfxpayload} press enter
read
}
menuentry "gfxpayload 1280x1024" {
set gfxpayload=1280x1024
echo gfxpayload=${gfxpayload} press enter
read
}
menuentry "Reboot" {
insmod reboot
reboot
}

die peristence.conf

Code:
size=5,4gb
read bytes _ <  /mnt/my_usb/persistence.conf
umount /dev/mapper/my_usb
cryptsetup luksClose /dev/mapper/my_usb



Trotzdem gehts nicht.
Beim Booten von Kali kommt auch eine Fehlermeldung, das sda nicht gemountet werden konnte wo auch die perestence.conf gesucht wird, wieso auch immer....
Die Fehlermeldung geht aber so schnell wieder weg, das ich nicht mehr genau weiss was da steht. Gibts eine Boot.log bei Kali?

Ich hoffe es hat noch einer eine idee
 
gibt dort leider keine boot.log

Habs es jetzt mal genau wie hier You are being redirected... beschrieben gemacht, mit
Code:
dd if=kali-linux-1.0.8-amd64.iso of=/dev/sdb bs=1M
und
Code:
size=5gb
read bytes _ < <(du -bcm kali-linux-1.0.8-amd64.iso |tail -1); echo $bytes 
parted /dev/sdb mkpart primary $bytes $size
mkfs.ext3 -L persistence /dev/sdb3
e2label /dev/sdb3 persistence
mkdir -p /mnt/my_usb
mount /dev/sdb3 /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/sdb3
in der
,
die persistence.conf liegt dann auf sdb3

Ich hatte die ganze Zeit Multisysstem im Verdacht, wieso die perestence nicht klappte, aber jetzt klappt es auch nicht..... Verzweifel langsam.....
 
Keiner eine Idee wie ich einen multiboot Stick mit 2 (1xTails, 1xKali) perestenten Systemen erstellen kann

Danke


Gesendet von iPhone mit Tapatalk
 
Zurück
Oben