[Prev][Next][Index][Thread]
Re: LIP General issues
"Marc A. Volovic" <marc@cs.huji.ac.il> wrote:
|If the victim has a virgin disk of equal size, it is even possible to
|
| `dd if=/dev/hda of=/dev/hdb bs=18k`
|
|and sit back and enjoy the ride.
A few points about that:
1. If you read a mounted partition, then things might change on the
filesystem while you do that (block re-allocated and free'd, times
updated etc...), ending with inconsistant destination filesystem.
You could run 'fsck' after that, but why get yourself into this in
the first place?
2. Why 18k? Isn't the number used for floppies? Is it the
approperiate block size of HD's?
3. Last thing - when accessing disks this way (sequencial) on real unix,
I prefer to bypass the entire kernel caching and use the raw devices,
but as I looked at it right now, I couldn't find raw IDE devices on
my 2.0.10 machine, do they exist?
Cheers,
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@dsi.co.il | -- Anonymous
Follow-Ups:
References: