On Sat, Jun 23, 2012 at 10:50:18PM +0400, Andrey N. Prokofiev wrote:
> День добрый. Случайно сделал такое: cat file1.raw >> file2.img, где
> file1.raw - raw файл, созданный командой qemu-img create -f raw
> file1.raw 10G, а file2.img - образ в формате qcow2.
> 
> Как теперь наиболее правильно вернуть все обратно? при помощи dd или
> есть более простой способ?

как-то так:

$ truncate file2.img --size -$(stat -c %s file1.raw)

-- 
Stanislav


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить