Re: Restoring a USB back-up using Back-ups (Duplicity) on Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux