search for: from_image

Displaying 1 result from an estimated 1 matches for "from_image".

2010 Dec 08
0
copy old CF image to new CF device
...ION_2=/dev/sde2 fdisk $DEVICE << EOF o n p 1 +7000M n p 2 t 2 82 a 1 w EOF echo "" fdisk -l $DEVICE echo "" mke2fs -j $PARTITION_1 mkswap $PARTITION_2 # mount the first partition in the image file mount -t ext3 -o loop,offset=32256 ebox4300.centos.5.5.cf.img /mnt/from_image mount -t ext3 $PARTITION_1 /mnt/to_image PUSH_PWD=`pwd` # Directories to copy cd /mnt/from_image for DIRECTORY in bin boot dev etc home install lib misc net opt root sbin selinux srv tftpboot tmp usr var do tar -cf - $DIRECTORY | (cd /mnt/to_...