Re: tar a flash drive

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

 



On 9/4/19 11:24 PM, Francis.Montagnac@xxxxxxxx wrote:

Hi.

On Wed, 04 Sep 2019 22:55:56 -0700 ToddAndMargo via users wrote:
This is what I finally wound up doing to back up this stick.
Dead Stick is a play on words off of Live USB:

Backup:

     1) shutdown: zero out unused space
...
           # zerofree -v  /dev/sd..

Beware that zerofree only works for ext filesystems.

     2) shutdown: make a dd and gzip
...
           # dd bs=4096 if=/dev/sdx of=DeadStick.[date]
           # gzip DeadStick.[date]  # creates DeadStick.[date].gz
           # rm DeadStick.[date]

If you have a recent version of dd (for status=progress), you may try:

   dd bs=4096 if=/dev/sdx status=progress | gzip DeadStick.[date].gz

and if you have pigz (faster than gzip):

   dd bs=4096 if=/dev/sdx status=progress | pigz DeadStick.[date].gz

That will save the intermediate full backup and show periodically the
transfer rate.

You may also save less disk space in the backup than with gzip, but (I
think) gain in speed by doing a sparse file (again with a recent dd):

   dd bs=4096 if=/dev/sdx of=DeadStick.[date] conv=sparse status=progress

Hi Francis,

Thank you!

status=progress, got to try that next time!  I usually
open another terminal and peek.

The partitions in question are Ext4.

If Windows read Ext4, I'd convert all my flash drives over to it.

-T
_______________________________________________
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