Re: udev doesn't detect ddf-format raid array

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

 



On Fri, Oct 3, 2008 at 10:17 AM, Kay Sievers <kay.sievers@xxxxxxxx> wrote:
> On Fri, Oct 3, 2008 at 9:59 AM, Peter Leipold <ple@xxxxxxxxxx> wrote:
>> On Friday 03 October 2008 00.47.23 Kay Sievers wrote:

>>> Can you send me a copy of the sectors containing the ddf header? Along
>>> with the exact dd commandline you used to extract it, so can copy it
>>> to a drive and test it.
>>
>> Attached. I hope I did the right thing. I got the offset and size with
>> dmraid's help (dumping raid metadata). So these dd commands resulted the same
>> files as dmraid -rD:
>>
>> dd if=/dev/sda of=sda_ddf1.dat bs=1 count=6144 skip=200048559616
>> dd if=/dev/sdb of=sdb_ddf1.dat bs=1 count=6144 skip=200049641472
>
> Looks good:
>  hexdump -C sda_ddf1.dat  | head -1
>  00000000  11 de 11 de e2 e6 4c ae  38 5a b0 49 95 10 42 02  |......L.8Z.I..B.|
>
> 0xDE11DE11 is the signature we are looking for. I'll see if I can make
> that work.

Here is what I get now from the sector you sent:
  $ dd if=~/Desktop/sdb_ddf1.dat bs=1 seek=200049641472 of=ddf-header.img
  $ losetup /dev/loop0 ddf-header.img
  $ ./vol_id /dev/loop0
  ID_FS_USAGE=raid
  ID_FS_TYPE=ddf_raid_member
  ID_FS_VERSION=02.00.0
  ID_FS_UUID=8Z_I__B_8Z_I_e_I_q_I____
  ID_FS_UUID_ENC=8Z\xb0I\x95\x10B\x028Z\xb0I\xc8e\xb0I\xb8q\xb0I\xff\xff\xff\xff
  ID_FS_LABEL=
  ID_FS_LABEL_ENC=

If you want to try, let me know what it says:
  $ git clone git://git.kernel.org/pub/scm/linux/hotplug/udev.git
  $ cd udev
  $ ./autogen.sh
  $ cd extras/volume_id/
  $ make
  $ ./vol_id /dev/sda
  $ ./vol_id /dev/sdb

Note, that ./vol_id is just a autotools wrapper script, which runs the
program with libvolume_id from the source tree, so don't copy the
script to your system. :)

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux