From Fedora Project Wiki
(Redirected from QA:Testcase Fedora Media Writer basic windows)
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:
- 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.
- 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:
- Start Fedora Media Writer
How to test
- Decide whether you want to write a stable Fedora release image, or an unstable release image (Alpha, Beta, or even some nightly image):
- If you want to write a stable image, skip to the next step.
- (optional) If you want to write an unstable image, you either need to download it manually and use the Custom image menu item to select it in FMW, or you need to create a custom download list and include the link to that image in it. This is how to do it:
- 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-x86_64-42-1.1.iso", "subvariant": "Workstation", "version": "42", "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
HASH
with the hash computed bysha256sum FILE.iso
, andSIZE
with 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.
- Let it download an image of your preference (try a random spin/version/architecture)
- Write it to your flash drive
- Boot the system from the USB stick. For Intel images, if possible, try both:
- UEFI boot
- BIOS boot
- For validation testing, and optionally for other testing, if the image is installable:
- Start the installer
- Proceed with the installation
- Verify the installation is fully operational
- Start Fedora Media Writer again in the original system you started testing in
- Insert the flash drive you used now
- Restore its partition layout inside the tool
Expected Results
- The USB stick should be wiped before being written with the image
- The image should download without error
- Writing should finish without error
- The stick should boot without error
- Media consistency verification before the actual boot should end without error.
- For validation testing, and optionally for other testing:
- The installer should start without error
- The installation should finish successfully
- The installed system should boot properly. Note that problems after boot that do not seem to be related to writing the image to a USB stick are likely out of the scope of this test case, though they may count as failures of another test case. If you observe the same failure booting the image in a virtual machine or from an optical disc, it is likely not a failure of this test case.
- While restoring, you should get a notification that you can restore the drive. After restoring, the drive should contain a single FAT32 partition spanning over the whole drive.