Kali Live Boot Stick erstellen Virtualbox: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Runterladen= *wget https://cdimage.kali.org/kali-2022.3/kali-linux-2022.3-live-amd64.iso *cp /var/www/html/isos/kali-linux-2022.3-live-amd64.iso usb-stick *dd…“)
(kein Unterschied)

Version vom 14. März 2023, 16:30 Uhr

Runterladen

Partition anhängen

  • fdisk usb-stick
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): n
Partition type
   p   primary (2 primary, 0 extended, 2 free)
   e   extended (container for logical partitions)
Select (default p): 

Using default response p.
Partition number (3,4, default 3): 
First sector (7013824-9111575, default 7014400): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (7014400-9111575, default 9111575): 

Created a new partition 3 of type 'Linux' and of size 1 GiB.

Command (m for help): w
The partition table has been altered.
Syncing disks.
  • losetup -f usb-stick

kpartx -av /dev/loop5

add map loop5p1 (253:3): 0 7012288 linear 7:5 64
add map loop5p2 (253:4): 0 1472 linear 7:5 7012352
add map loop5p3 (253:5): 0 2097176 linear 7:5 7014400
  • sudo mkfs.ext3 -L persistence /dev/mapper/loop5p3

Mountpunkt erstellen

  • sudo mkdir -p /mnt/my_usb
  • sudo mount ${usb}3 /mnt/my_usb
  • echo "/ union" | sudo tee /mnt/my_usb/persistence.conf
  • sudo umount ${usb}3