[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issue writing image to disk via dd



On Mon, Apr 25, 2011 at 7:48 AM, Mark Kane <mark@mkproductions.org> wrote:
> On Sun, Apr 24, 2011, at 22:54:48 +0800, Huang, Tao wrote:
[...]
> When using either of the above commands, there is no difference
> outputted from diff between the data written by Lenny (where it works)
> and Squeeze (where it doesn't).
>
> That got me to think that maybe it's not at the very beginning/end, so
> I tried this:
>
> # dd if=/dev/sda bs=1024 count=30720 | hexdump -x > outfile
>
> In that case, there is a difference between Lenny and Squeeze and I
> have attached the diff.
>
> As another test, I tried writing the image to sdb which is a blank
> disk. If I do this:
>
> # dd if=/dev/sdb bs=1024 count=30720 | hexdump -x > outfile
>
> ...there is no difference between the data written from Lenny and
> Squeeze as there was above when it was written to sda (which contains
> the live running file system).

what do u mean by "live running file system"?
a mounted file system?

> So I guess that narrows it down a bit. The problem in Etch and
> Squeeze only happens when overwriting the device with the live
> file system. When writing to a separate disk everything works as
> expected.


Tao


Reply to: