[parted-devel] partprobe gives errors with dvh partition no. >16

Petr Uzel petr.uzel at suse.cz
Thu Jun 26 11:38:54 UTC 2008


> FYI, here's shell code to create 16 primary partitions on
> a DVH partition.
>
>   N=50 dev=dev-file; dd if=/dev/null of=$dev bs=1 seek=${N}M
>   ./parted -s $dev mklabel dvh mkpart primary fat32 2M 10M
>   for i in $(seq 11 23); do
>     echo $i
>     ./parted -s $dev mkpart primary fat32 ${i}M $((i+1))M
>   done
>
> Can you add to that (or change it) -- using dvhtool, or some other tool --
> to create a table that makes partprobe fail?

This one 'works' for me:

--
#!/bin/bash
dev=/dev/sdb

dd if=/dev/zero of=${dev} bs=512 count=100000
parted -s ${dev} mklabel dvh
dd if=/dev/urandom of=/tmp/data bs=1 count=4k
dvhtool -d ${dev} --unix-to-vh /tmp/data data
--

It creates a partition layout which makes partprobe fail.


I hope it will be useful to you.
Please feel free to contact me in case you need some further testing.


-- 
Best regards / s pozdravem

Petr Uzel, Packages maintainer
---------------------------------------------------------------------
SUSE LINUX, s.r.o.                          e-mail: petr.uzel at suse.cz
Lihovarská 1060/12                          tel: +420 284 028 964
190 00 Prague 9                             fax: +420 284 028 951
Czech Republic                              http://www.suse.cz   



More information about the parted-devel mailing list