Hi,

Andrew Wood wrote:
> > How do I restore the contents of the USB flash drive so that it has the
> > same contents as the /run/media/awood/7160-75C1 ??

Samuel Sieb wrote:
> sudo mkfs.fat -i 716075C1 /dev/sdb1

One will normally want to erase the partition table brought by the ISO
and instead create the normal partition table of a freshly bought USB
stick.

The MBR partition table of Fedora-Workstation-Live-x86_64-31-1.9.iso
looks like

  Device        Boot Start     End Sectors  Size Id Type
  Fedora...iso1 *        0 3768319 3768320  1.8G  0 Empty
  Fedora...iso2        172   21887   21716 10.6M ef EFI (FAT
  Fedora...iso3      21888   67407   45520 22.2M  0 Empty

The partition types alone will probably cause confusion in various
interpreters of USB sticks.
Further 1.8 GB of size is probably only a small part of a modern
stick's capacity.

My youngest USB stick initially looked like

  Device         Boot Start       End   Sectors   Size Id Type
  intenso_128gb1 *      128 245759999 245759872 117.2G  c W95 FAT32 (LBA)

(The use of FAT32 for a 100+ GB storage device seems awkward, though.)

-----------------------------------------------------------------------

In general one should make a (compressed) device backup of an USB stick
before temporarily using it for a bootable ISO:

  dd if=/dev/sdd bs=1M | gzip >red_64gb_usb_stick.img.gz

This can later be restored by

  gunzip <red_64gb_usb_stick.img.gz | dd of=/dev/sdd bs=1M

Beware not to use the wrong of= device address. If you have a safe
copier program for USB stick images, gunzip the backup file and use
that safe copier to put it on stick.

Note that these commands use the base device sdd, not a partition device
like sdd1 or sdd2. This way the partition table gets backed up and
restored together with any filesystems or other data on the stick.


Have a nice day :)

Thomas
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to