Skip to content

Instantly share code, notes, and snippets.

@Klexx
Created June 18, 2018 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Klexx/c99c012668a7ebcc5fbbd5907a412dd6 to your computer and use it in GitHub Desktop.
Save Klexx/c99c012668a7ebcc5fbbd5907a412dd6 to your computer and use it in GitHub Desktop.
# Partitionierung
DEVICE=/dev/sda
# Partitionierung auf dem USB Stick löschen
dd if=/dev/zero of=$DEVICE bs=1M count=1
# Partitionen einrichten
fdisk ${DEVICE}
n
p
1
ENTER
ENTER
t
c
a
w
# Formatierung, mounten des Laufwerks
mkfs.vfat ${DEVICE}1
mkdir /mnt/usb
mount ${DEVICE}1 /mnt/usb
# Kopieren der Daten
mkdir Win10
mount -o loop Win10_1709_German_x64.iso Win10
cp -a Win10/* /mnt/usb
# Aushängen der Laufwerke
umount /mnt/usb
umount Win10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment