====== booten von USB ====== ===== ISO-Image in den Hybrid-Mode konvertieren ===== [[https://wiki.gentoo.org/wiki/LiveUSB]] Damit man ein ISO-Image nicht nur auf einen optischen Rohling (CD bzw. DVD) kopieren kann, sondern auch auf einen USB-Stick, muss das ISO-Image im Hybrid-Mode vorliegen. so konvertiert man ein ISO-Image in den Hybrid-Mode: # isohybrid filename.iso Dieses Programm ist bei Gentoo und bei Ubuntu im Paket "syslinux" enthalten. ===== UNetbootin ===== Wie immer führen viele Wege nach Rom, ich möchte hier nicht auf alle Wege aufmerksam machen, sondern nur auf einen, der mit vielen Betriebssystemen funktioniert. So funktioniert dieses Programm zum Beispiel mit FreeBSD, NetBSD und vielen Linuxdistributionen. * [[http://unetbootin.sourceforge.net/]] * [[http://www.freiesmagazin.de/mobil/freiesMagazin-2010-04-bilder.html#10_04_booten-von-usb]] Zuerst das Paket installieren: # aptitude install unetbootin Dann USB-Stick reinstecken und das Programm starten: # unetbootin Der Rest ist selbsterklärend! ===== Debian 11.5 auf einen USB-Stick schreiben ===== ISO-Image auf einen USB-Stick (''/dev/sdg'') schreiben: > lsblk -e7 > dd if=/dev/zero of=/dev/sdg bs=1M count=1024 > sync > parted /dev/sdg (parted) mklabel gpt (parted) u % (parted) mkpart primary 0% 100% (parted) p (parted) q > dd if=debian-11.5.0-amd64-DVD-1.iso of=/dev/sdg1 > sync ===== Debian 12.7 auf einen USB-Stick schreiben ===== [[https://de.linux-console.net/?p=13522|So erstellen Sie ein bootfähiges USB-Stick für Debian 12]] > lsblk -e7 > dd if=/dev/zero of=/dev/sdf bs=1M count=1024 > sync > parted /dev/sdf (parted) mklabel gpt (parted) u % (parted) mkpart primary 0% 100% (parted) p Model: Samsung Flash Drive (scsi) Disk /dev/sdf: 100% Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 0,00% 100% 100% primary (parted) q > dd if=debian-live-12.7.0-amd64-cinnamon.iso of=/dev/sdf bs=1M status=progress conv=noerror,sync > sync 3363831808 Bytes (3,4 GB, 3,1 GiB) kopiert, 39 s, 86,2 MB/s 808+0 Datensätze ein 808+0 Datensätze aus 3388997632 Bytes (3,4 GB, 3,2 GiB) kopiert, 39,4853 s, 85,8 MB/s > mount /dev/sdf1 /mnt/ mount: /mnt: WARNING: source write-protected, mounted read-only. > ls -lha /mnt/ insgesamt 738K dr-xr-xr-x 1 root root 4,0K 31. Aug 11:45 . drwxr-xr-x 1 root root 256 13. Okt 19:00 .. dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 boot lr-xr-xr-x 1 root root 1 31. Aug 11:45 debian -> . dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 .disk dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 dists dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 EFI -r--r--r-- 1 root root 544K 31. Aug 11:45 efi.img dr-xr-xr-x 1 root root 10K 31. Aug 11:45 firmware dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 install dr-xr-xr-x 1 root root 4,0K 31. Aug 11:45 isolinux dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 live -r--r--r-- 1 root root 198 31. Aug 11:45 md5sum.README -r--r--r-- 1 root root 67K 31. Aug 11:45 md5sum.txt dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 pool dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 pool-udeb -r--r--r-- 1 root root 210 31. Aug 11:45 sha256sum.README -r--r--r-- 1 root root 91K 31. Aug 11:45 sha256sum.txt dr-xr-xr-x 1 root root 2,0K 31. Aug 11:45 tools ===== Ubuntu 24.04.1 auf einen USB-Stick schreiben ===== * [[https://de.linux-console.net/?p=13816|So erstellen Sie einen bootfähigen USB-Stick unter Ubuntu]] * [[https://wiki.ubuntuusers.de/Live-USB/|Live-USB]] * [[https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview|]] > lsblk -e7 > dd if=/dev/zero of=/dev/sdf bs=1M count=1024 > sync > parted /dev/sdf (parted) mklabel gpt (parted) u % (parted) mkpart primary 0% 100% (parted) p Model: Intenso cMobile Line (scsi) Disk /dev/sdf: 100% Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 0,00% 100% 100% primary (parted) q > dd if=ubuntucinnamon-24.04.1-desktop-amd64.iso of=/dev/sdf1 bs=1M status=progress oflag=sync 5255462912 Bytes (5,3 GB, 4,9 GiB) kopiert, 177 s, 29,7 MB/s 1254+1 Datensätze ein 1254+1 Datensätze aus 5262936064 Bytes (5,3 GB, 4,9 GiB) kopiert, 177,738 s, 29,6 MB/s > sync > mount /dev/sdf1 /mnt/ mount: /mnt: WARNING: source write-protected, mounted read-only. > df -h Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf ... /dev/sdf1 5,0G 5,0G 0 100% /mnt > ls -lha /mnt/ insgesamt 37K dr-xr-xr-x 1 root root 2,0K 27. Aug 16:46 . drwxr-xr-x 1 root root 256 13. Okt 19:00 .. dr-xr-xr-x 1 root root 2,0K 6. Aug 23:21 boot -r--r--r-- 1 root root 2,0K 27. Aug 16:48 boot.catalog dr-xr-xr-x 1 root root 4,0K 27. Aug 16:46 casper dr-xr-xr-x 1 root root 2,0K 27. Aug 16:46 .disk dr-xr-xr-x 1 root root 2,0K 27. Aug 16:42 dists dr-xr-xr-x 1 root root 2,0K 6. Aug 23:21 EFI dr-xr-xr-x 1 root root 2,0K 27. Aug 16:42 install -r--r--r-- 1 root root 17K 27. Aug 16:48 md5sum.txt dr-xr-xr-x 1 root root 2,0K 27. Aug 16:42 pool lr-xr-xr-x 1 root root 1 27. Aug 16:42 ubuntu -> .