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

Re: Bug#497110: improved dmraid support in D-I



On Sunday 07 September 2008, Giuseppe Iuculano wrote:
> Giuseppe Iuculano ha scritto:
> > Approximately "dmraid -rD" generates three files, from this we can
> > extrapolate metadata, and with a hex editor we can add the fake
> > signature to the qemu/virtualbox drive

Let's take this out of the BTS as it is unrelated to the BR.

> Ok,this procedure seems to work for me:
> dmraid -rD and i got:
[...]

*.size is the disk size in sectors.
hda_{0,1,2,3}_sil.dat are all identical, but there are some differences 
between .dat files for hda and hdb.
*.offset files are numbers close to the end of the disk, so apparently the 
SATA RAID signature is saved 4 times near the end of the disk for 
redundancy.

The offsets are probably some fixed distance from the end of the disk.

Question is if the disk size is encoded in the .dat files. IMO the main 
reason to use the procedure you devised would be to generate disk images 
of a different size (80GB was a bit of a pain for the conversion from 
vbox to VirtualBox format for example).


Reply to: