¹é¾÷ÀÇ ¸ðµç°Í.
±Û   ¾´   ÀÌ linux
³¯         Â¥ 2002³â 08¿ù 12ÀÏ 22½Ã 24ºÐ 36ÃÊ
º»         ¹® 1. Çϵå¹é¾÷
ÇϵåÃß°¡
# fdisk /dev/hdb (ÆÄƼ¼ÇÀ» ³ª´«´Ù.)
# mkfs -t ext2 /dev/hdb1
# mkdir /opt
#mount /dev/hdb1 /opt
#cd /etc
# tar cf - * | (cd /opt; tar xvf -)
-> ¹­Àº´ÙÀ½ /opt¿¡ decompressÇؼ­ ÀúÀå.
#umount /opt

2. Çϵ忡¼­ Çϵ带 Åë°·Î image ¹é¾÷¼ÂÆÃ

1) µÎ°³ÀÇ Çϵ尡 ¼­·Î °°À»¶§
2) µÎ°³ÀÇ Çϵ尡 ¼­·Î ´Ù¸¦¶§

È®Àιæ¹ý : # cat /proc/partitions
=> block size¸¦ È®ÀÎÇÑ´Ù.

±×Àü¿¡ dd if=/dev/zero of =/dev/hdb

1) µÎ°³ÀÇ Çϵ尡 ¼­·Î °°À»¶§
# cat /dev/hda > /dev/hdb
-> ÀÌ·¸°Ô ÇÏ°í ³ª¸é ºÎÆÃÀÌ ¾ÈµÈ´Ù.
# cat /boot/vmlinuz > /dev/fd0
# rdev /boot/vmlinuz /dev/hdb2 (2´Â ·çÆ®ÆÄÀϽýºÅÛ)
-> ÀçºÎÆÃÈÄ Çϵ屳üÈÄ µð½ºÅ© ºÎÆÃ

2)µÎ°³ÀÇ Çϵ尡 ¼­·Î ´Ù¸¦¶§
. catÀ¸·Î´Â image¸¦ ¶ã¼ö ¾ø´Ù
. ¿øº» Çϵåµð½ºÅ©ÀÇ °¢ ÆÄƼ¼Çº¸´Ù ¹é¾÷ÇÒ Çϵåµð½ºÅ©´Â °¢°¢ ÆÄƼ¼ÇÀÌ ¿øº»º¸´Ù Å©°Å³ª °°¾Æ¾ß ÇÑ´Ù.

# fdisk /dev/hdb
# mkfs -t ext2 /dev/hdb?
# mkswap
# mkdir -p /vackup/root
# mount /dev/hdb1 /backup/root
# cd /
# tar cf - * | (cd /backup/root; tar xvf -)
# tar cf -[0-o,q-Z] * | (cd /backup/root; tar xvf -)


°ü·Ã °Ô½Ã¹° : 1 (Total 1 Articles)
¹ø È£ Á¦ ¸ñ ±Û¾´ÀÌ ÀÛ¼ºÀÏ Á¶È¸¼ö ¼± ÅÃ
1  ¹é¾÷ÀÇ ¸ðµç°Í. linux02-08-12409