[Top][All Lists]

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

[Qemu-discuss] Fwd: Re: qemu-img resize corrupted image?

From: Tony Su
Subject: [Qemu-discuss] Fwd: Re: qemu-img resize corrupted image?
Date: Mon, 21 Oct 2013 08:28:00 -0700

---------- Forwarded message ----------
From: "Tony Su" <address@hidden>
Date: Oct 21, 2013 8:27 AM
Subject: Re: [Qemu-discuss] qemu-img resize corrupted image?
To: "Ray Morris" <address@hidden>

Although I haven't tried to repair a qcow image specifically,
In general the first step in any recovery is to mount the disk.

A quick Google returns a number of solutions, all the ones I've read suggest that the nbd utility (network block device) should be able to mount qcow images. After that, if you can read your disk you should be able to perform repairs.

Needless to say,
- Backups should always be made before performing any risky disk alterations
- Backups should be made before new alterations, so regardless whether you copied the disk file before re-sizing, you should make new copies before attempting to mount and repair.
- With 20/20 hindsight, I guess the question has to be asked how you could consider re-sizing a disk which was already known to be faulty. Prerequisites to resizing should have been to ensure disk file integrity (fschk) and zero the empty space.

Some Google links which look promising

And, of course the cautious would always re-size a <copy> of the disk file, not the production disk file itself.

Good Luck,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]