Description
This test verifies that a Fedora ISO image can be written to a USB stick with Fedora Media Writer, and successfully boots and installs.
Setup
- Ensure you have a USB stick larger than the image file, and whose contents you can afford to lose (the contents of the stick will be destroyed as a part of the test).
- Install Fedora Media Writer (FMW):
- On Fedora, install the mediawriter RPM package:
sudo dnf install mediawriter
- To test the Flathub version, install it the Flathub package on any Linux distribution.
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.fedoraproject.MediaWriter
- On Windows, visit the project download page, download the latest release and install it.
- On macOS, visit the project download page and download the dmg file.
- On Fedora, install the mediawriter RPM package:
Image metadata alteration (optional)
If you want to test FMW's downloading capabilities on a pre-release image (e.g. a Beta or nightly image), you need to alter its image metadata. Please note this is necessary only when you want to test the FMW download process, otherwise you can simply download such image manually and provide it through a file open dialog. The metadata can be altered this way:
- Download releases.json
- Edit the file, add a new entry to the list (after the initial bracket) with a link to desired Fedora pre-release ISO and be sure to set proper version, for example:
[{"link": "https://.../Fedora-Workstation-Live-44-1.1.x86_64.iso", "subvariant": "Workstation", "version": "44", "arch": "x86_64", "variant": "Workstation", "sha256": "HASH", "size": "SIZE"}, ...lines omitted... ]Please note that the image filename must contain important identifiers, like Workstation/Server/Everything, Live/DVD/netinst, etc. Replace
HASHwith the hash computed bysha256sum FILE.iso, andSIZEwith size printed byls -l FILE.iso. - Run the FMW from command line pointing to your custom download list:
$ mediawriter --releasesUrl file:///path/to/edited/releases.json - You should see your specified image in the list.
How to test
- Start Fedora Media Writer.
- Let it download an image of your preference (try a random spin/version/architecture) or provide it with a custom ISO image file using a file dialog.
- Check: The image should download without error.
- Write it to your flash drive.
- Check: Writing should finish without error.
- Check: The previous contents of the USB stick should be wiped, you should no longer see any previous data.
- Now check that the image was written correctly. You have several options:
- a) On Fedora, install isomd5sum package (
sudo dnf install isomd5sum) and verify consistency of the written image usingcheckisomd5:$ sudo checkisomd5 -v /dev/sdX ... Checking: 100.0% The media check is complete, the result is: PASS. It is OK to use this media.
where
sdXis the device of the flash drive, to be retrieved using e.g. gnome-disks or fromlsblkoutput. The result must be PASS. - b) On Fedora, compare the flash drive device with the downloaded ISO image, e.g.:
$ sudo cmp /dev/sdX Fedora-Workstation-Live-44-1.1.x86_64.iso cmp: EOF on ‘Fedora-Workstation-Live-44-1.1.x86_64.iso’ after byte 2740275200, in line 10568132
where
sdXis again to be replaced (see above) together with the image name. The command must end withEOF(end of file) on the ISO file. That means that the whole ISO file was compared to the flash drive, and no differences were found. Any other line that doesn't containEOFand mentions differences (see thedifferword) would mean an error, e.g.:$ sudo cmp /dev/sdX Fedora-Workstation-Live-44-1.1.x86_64.iso /dev/sdX Fedora-Workstation-Live-44-1.1.x86_64.iso differ: byte 459, line 2
- c) Boot the system from the USB stick and select Test this media & start ... in the boot menu. Make sure the verification process passes (the progress is printed, no error is shown, the boot process is not halted and continues after verification).
- a) On Fedora, install isomd5sum package (
- Test flash drive restoration in FMW:
- Start Fedora Media Writer again in the original system that you created the flash drive in.
- Insert the flash drive you used now.
- A "Restore <flash drive name>" option should appear in FMW.
- Restore the partition layout from FMW.
- Check that the flash drive now contains a single regular partition spanning the whole drive (using exfat or some similar filesystem popular for data transfer) that is empty and usable.
Expected Results
- Fedora Media Writer should behave as expected
- If you see a media verification error at 4.8%, it is a known common issue, please repeat the test case again.
