using 'mv' instead of 'cp' to transfer directories to other partitions or disks

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

 



In another thread Re: shrinking reiserfs partitions, filesystems
Roberto Ragusa responded

Do not forget another option: copy everything somewhere else
(external USB drive or something...), destroy the partition,
recreate it smaller, format and copy back.

In this way you get an implicit perfect defrag of your data,<<<<<<<<<<
which could be more or less useful, depending on the current
fragmentation of your filesystem.

-----
my question: isn't it true that use of 'mv' is much faster than 'cp' or rsync?
ie to "copy everything somewhere else" 
instead
"mv everything somewhere else"  
and
instead of
"..and copy back"
do
".. mv back"

Are there gotchas using 'mv' instead of the various copy tools?
more fragmentation perhaps?

I made one test case here  to test mv
I first made a copy of /lib  to /libfc5copy
and then tested mv on the latter to move it to my external usb

mv libfc5copy /media/disk-1/mvlibfc5copy

this seemed to complete in only a second or two.
Of course this is only useful if you want to erase the original.

thanks for any advice
Jack


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux