Hi folks,
I have a new HD configured with 7 partitions as follows;
/dev/hda1 boot ext2
/dev/hda2 sawp
/dev/hda3 ext3
/dev/hda5 ext3
/dev/hda6 ext3
/dev/hda7 ext3
/dev/hda8 ext3
I ran LFS LiveCD to do the job. OS not yet installed. /dev/hda8 has about 1.2G data.
Later /dev/hda8 enountered mounting problem. I backup its data to /dev/hda7 by running;
# dd if=/dev/hda8 bs=1M | gzip -c - > /mnt/hda7/partition.image.gz
After fixing the problem by running;
# fcsk.ext3 -b 32768 /dev/hda8
I restored the image file to /dev/hda6 to check whether backup did work with following steps;
# mount -t ext3 /dev/hda7 /mnt/hda7
# cd /mnt/hda7
# gunzip -d partition.image.gz | dd bs=1M of=/dev/hda6
gunzip: partition.image: No space left on device
in 0+0
out 0+0
0 bytes transferred in 221.150830 seconds (0 bytes/sec)
# df -hT /mnt/hda6
Filesystem Type size used avail use%
/dev/hda6 ext3 7.4G 33M 7.0G 1% /mnt/hda6
partition /hda6 has 7G available space
# du -h /mnt/hda7/partition.image.gz
2.0G /mnt/hda7/partition.image.gz
The image size is only 2G
# df -hT /mnt/hda8
Filesystem Type size used avail use%
/dev/hda8 ext3 4.9G 1.2G 3.5G 25% /mnt/hda8
The size of original data is only 1.2G
My questions are
1) Why the size of the image is bigger than that of the original data on /dev/hda8?
2) Whether the backup command was wrong, creating a defective image?
3) Or whether the image created including the problem on /dev/hda8 ?
4) Whether the restore command was wrong
Please advise. TIA
B.R.
satimis