File dump.test of Package dump

#!/bin/sh -x 
umount /mnt 
cd / 
dd if=/dev/zero of=/testd1 count=10000 
mke2fs -F /testd1 
dd if=/dev/zero of=/testd2 count=10000 
mke2fs -F /testd2 
mount -o loop /testd1 /mnt 
cd /mnt 
dd if=/dev/zero of=test1 count=10 seek=10000000 
dd if=/dev/zero of=test2 count=10 
dd if=/dev/zero of=test3 count=10 seek=10000000 
cd / 
umount /mnt 
dump -f dfile /testd1 
mount -o loop /testd2 /mnt 
cd /mnt 
restore rf /dfile 
openSUSE Build Service is sponsored by