Ubuntu Desktop 3.3: A bootable USB drive
Checking the signature on Ubuntu's checksum file, seeing a changed copy
fail, and writing an ISO image to a drive with dd. A spare disk stands
in for the USB drive.
Before you start
The lab adds an empty spare disk, /dev/loop40 (64 MiB), and an empty
folder /root/usb to work in. The VM needs to reach
releases.ubuntu.com. xorriso isn't installed.
Tasks
- In
/root/usb, downloadSHA256SUMSandSHA256SUMS.gpgfor Ubuntu 24.04 (wget https://releases.ubuntu.com/24.04/SHA256SUMS https://releases.ubuntu.com/24.04/SHA256SUMS.gpg) and check the signature. - Copy
SHA256SUMSto/root/usb/SHA256SUMS.copy, change one character of the copy, and check its signature again. - Make a small ISO with the volume label
TEST(installxorriso, thenxorriso -as mkisofs -V TEST -o test.iso SOMEDIR) and write it to the spare disk/dev/loop40withdd.
Hints
gpgv --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg SHA256SUMS.gpg SHA256SUMSshould printGood signature.- Change a single letter or digit, for example with
sed -i '1s/^./0/'or in an editor; gpgv should now printBAD signature. dd if=test.iso of=/dev/loop40 bs=4M conv=fsync, thenblkid /dev/loop40showsLABEL="TEST"andTYPE="iso9660".