https://media.readthedocs.org/pdf/fight-flash-fraud/latest/fight-flash-fraud.pdf
https://github.com/AltraMayor/f3#examples
sudo apt update sudo apt install f3 Stick mounten! f3write /media/peer/<drive-UUID> f3read /media/peer/<drive-UUID> Achtung: Daten auf Stick werden zerstört!
f3probe --destructive --time-ops /dev/sdX
http://manpages.ubuntu.com/manpages/wily/man1/f3read.1.html
Entpacken und compilieren
make make install => f3write, f3read
Test starten
/d/usb/f3-6.0/f3write /media/peer/<drive-UUID> /d/usb/f3-6.0/f3read /media/peer/<drive-UUID>
f3fix creates a partition that fits the actual size of the fake drive. Use f3probe's output to determine the parameters for i3fix:
f3fix --last-sec=16477878 /dev/<drive-UUID>
knoppix@Microknoppix:~$ for i in b c d e f g h i j k; do flash-knoppix -f -m p -p 2500 /dev/sd$i /media/sdl1 & done
zypper in imagewriter imagewriter
Download d4e-LIVE 2012 Installationsskript
#Voraussetzung: alle Dateien in einem Verzeichnis #mit fdisk -l Gerätenamen suchen - z.B.: /dev/sdb #start z.B. mit: ./d4e2012-live.sh sdb dd if=/dev/zero of=/dev/$1$p1 bs=512 count=1 #Stick neu partitionieren fdisk /dev/$1<<EOF n p 1 t c w EOF sync p="1" umount /dev/$1$p #Formatieren Patition 1 mkfs.vfat /dev/$1$p sync umount /dev/$1$p #Label DEVICE="/dev/$1$p" NAME="d4eLIVE2012" ISO="d4e2012-live.iso" echo -n " "|dd bs=1 seek=71 count=11 of=$DEVICE;echo -n "$NAME"|dd bs=1 seek=71 count=11 of=$DEVICE mkdir /mnt/$1$p mount /dev/$1$p /mnt/$1$p ./unetbootin-linux-568 method=diskimage isofile=$ISO installtype=USB targetdrive=/dev/$1$p autoinstall=yes sync #Branding cp boot.cat /mnt/$1$p cp boot.msg /mnt/$1$p cp german.kbd /mnt/$1$p cp logo.16 /mnt/$1$p cp syslinux.cfg /mnt/$1$p sync umount /mnt/$1$p
Terminal sudo su fdisk -l ^^^ nachschauen, wie der "alte" Stick heißt. In dem Beispiel nun sdc dd if=/dev/zero of=/dev/sdc bs=512 count=1 fdisk /dev/sdc o ENTER n ENTER p ENTER 1 ENTER ENTER (von anfang) ENTER (bis ende) t ENTER c ENTER a ENTER 1 ENTER w ENTER
Platte /dev/sdd: 7969 MByte, 7969177600 Byte
256 Köpfe, 20 Sektoren/Spur, 3040 Zylinder
Einheiten = Zylinder von 5120 × 512 = 2621440 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Gerät boot. Anfang Ende Blöcke Id System
/dev/sdd1 * 1 3040 7782384 c W95 FAT32 (LBA)
/var/lib/YaST2/product-creator/images/suse-live-stick
peer:/d/iso # dd if=openSUSE-Edu-li-f-e-11.2-2-i686.iso of=/dev/sdX bs=4M;sync oder peer:/d/iso # dd_rescue openSUSE-Edu-li-f-e-11.2-2-i686.iso /dev/sdX;sync