Przenoszenie /home
: 25 wrz 2009, 21:39
Witam, dostalem drugi dysk, ktory podpielem pod kompa i sformatowalem, teraz potrzebuje przeniesc /home z jednego dysku na drugi(ten nowy), tylko jak najlepiej to zrobić?
Polskie forum użytkowników Ubuntu
https://ubuntu.pl/forum/
Kod: Zaznacz cały
sudo fdisk -l
cat /etc/fstab
There is lot's of debate about which command to copy your files to the new /home partition. This debate stems from a time in the past when cp was not able to do it properly (I think it skipped files?). cp was not designed to be a powerful backup tool. The fix, then, was to use a combo of find and cpio (See section 8.3.5). cp has had improvements since, but why not use rsync, a tool that is designed for backups like moving your /home, and much more. Rsync is not only able to copy over all the files, but is also able to maintain other characteristics of the file, like permissions, ownership, and timestamps.