It is not surprising, 'dd' knows nothing about mounted state of partitions. It just writes to the drive. Having a mounted partition may cause weird interactions between the filesystem driver/kernel and dd.lp-dolittle wrote:@ Barry
Hi Barry,
maybe, the following observations are of interest to you.
Mainly driven by curiosity, I tested an installation variant for EasyOS 2.3 which I actually expected to cause an error message. Instead, EasyOS showed a surprising reaction. The screenshots (see attachment) illustrate my procedure:
1. After booting EasyOS 2.3 RC from an external HD (sdb; IDE; 6 GB; entire drive populated) on a laptop with an internal HD (sda1), I executed the command <gunzip --stdout easy-2.3-amd64.img.gz | of=/dev/sdb bs=1M> while running sakura in the folder /mnt/sda1/easy 2.3RC. (screenshot 1)
2. To my surprise, no error message appeared, despite sdb2 was mounted and the dd command had to copy EasyOS 2.3 onto this partition. The result is shown in screenshot 2.
That is one reason why I recommend use easydd. It checks if any partitions are mounted and unmounts them.
This issue is particularly important with other distributions that automount partitions.