Strona 1 z 1

Przenoszenie /home

: 25 wrz 2009, 21:39
autor: Tayos
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ć?

Odp: Przenoszenie /home

: 25 wrz 2009, 21:56
autor: berniekk

Odp: Przenoszenie /home

: 25 wrz 2009, 21:59
autor: dyschemist
Coś mam problem z zrozumieniem o co Ci chodzi? Zakładam, że podpinasz drugi dysk i chcesz aby partycja na nim była teraz twoim nowym /home'em.
Jeśli tak to proces wygląda tak:

1) utworzyć partycje ext3/ext4 na nowym dysku
2) zamontować nową partycję
3) przekopiować dane z /home na nowy dysk
4) trzeba przedytować fstab

z tym możemy Ci pomóc:
wklej

Kod: Zaznacz cały

 sudo fdisk -l
 cat /etc/fstab 
5) reboot systemu
jak wszystko działa można usunąc starą partycję /home

Odp: Przenoszenie /home

: 25 wrz 2009, 22:37
autor: goferrr
Z tym kopiowaniem to sie tak nie rozpędzajcie.
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.