Talk:Перенос системы


 * http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK
 * http://keramida.wordpress.com/2008/09/14/moving-a-freebsd-installation/
 * http://www.freebsdonline.com/content/view/572/517/


 * http://forums.freebsd.org/showthread.php?t=185

then extract the contents of the "disk1" ISO image onto the file system. You can use tar for that: cd /mnt ; tar xf /tmp/disk1.iso

dump ...

pax cd /; pax -p e -X -rw. /mnt/backup/root; \

cp - не умеет нормально копировать hardlinks cp -RpP `find / -depth 1 | grep -v mnt` /mnt  -p   Cause cp to preserve the following attributes of each source file in the copy: modification time, access time, file flags, file mode, user ID, and group ID, as allowed by permissions.

If the user ID and group ID cannot be preserved, no error message is displayed and the exit value is not altered.

-P   If the -R option is specified, no symbolic links are followed. This is the default.

-R   If source_file designates a directory, cp copies the directory and the entire subtree connected at that point. If the source_file ends in a /, the contents of the directory are copied rather than the directory itself. This option also causes symbolic links to be          copied, rather than indirected through, and for cp to create spe- cial files rather than copying them as normal files. Created directories have the same mode as the corresponding source direc- tory, unmodified by the process' umask.

Note that cp copies hard linked files as separate files. If you need to preserve hard links, consider using tar(1), cpio(1), or          pax(1) instead.



tar cd /mnt (куда примонтирован новый диск) tar -C /boot -cf -. | tar -C /mnt/boot -xvf - tar -C source --exclude foo/bar -cf -. | tar -C target -xvf -

CPIO ...

Минимум необходимый для запуска системы
 drwxr-xr-x  2 root  wheel     1024 24 июн 18:48 bin drwxr-xr-x  7 root  wheel      512 24 июн 18:28 boot dr-xr-xr-x  5 root  wheel     2048 24 июн 19:08 dev drwxr-xr-x 20 root  wheel     2048 24 июн 18:48 etc drwxr-xr-x  3 root  wheel     1536 24 июн 18:48 lib drwxr-xr-x  2 root  wheel      512 24 июн 19:18 libexec (не будет shell запускаться без неё) drwxr-xr-x  2 root  wheel     2560 24 июн 18:48 sbin 