Friday, 23 September 2016

Create a live USB with 2 partitions

Verify the ISO


sha256sum debian-live-9.0.1-amd64-gnome.iso
less SHA256SUMS

Then verify the SHA256SUMS file

> gpg --verify SHA256SUMS.sign 
gpg: Signature made Wed 21 Jun 2017 10:45:45 AM CEST using RSA key ID 6294BE9B

gpg: Can't check signature: No public key

Get the key
> gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 6294BE9B

srubio@pc261:/homelocal/BACKUPS/ISOs> gpg --verify SHA256SUMS.sign SHA256SUMS
gpg: Signature made Wed 21 Jun 2017 10:45:45 AM CEST using RSA key ID 6294BE9B
gpg: Good signature from "Debian CD signing key <debian-cd@lists.debian.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B

srubio@pc261:/homelocal/BACKUPS/ISOs> 

Burn the ISO


# Delete partitions
# dd if=/dev/zero of=/dev/sdb bs=4M count=1

# Create the new ones:
fdisk /dev/sdb
> n
> p (use primary)
> 1 (+10GB)
> t
> c (filesystem type, FAT32 LBA)
> n
> p (primary)
> 2 (defaults)
> t (specify 2nd partition)
> c (filesystem type)
> a (set bootable)
> 1 (toggles boot flag)
> p (print new partition table)
> w (write the new table and quit)

# Create the filesystems:
mkfs.vfat -n usblinux /dev/sdb1
mkfs.vfat -n portable /dev/sdb2

# Use mlabel -i ::

Then write your image to the disk

sudo dd bs=4M if=../openSUSE-Leap-42.1-DVD-x86_64.iso of=/dev/sdb1 && sync

No comments:

Post a Comment