Re: Partition tables on devices

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

 



	Hi Christophe,

On Thu, 21 Jun 2007, Christophe Saout wrote:
> > I have a disk that embeds another disk image (including a partition table and
> > partitions).  Using dmsetup and the linear target I created a new device to
> > access the embedded disk image. Cfdisk shows me the partitions on the new
> > device, but the kernel didn't scan for partitions and hence didn't created
> > devices for them.
> > 
> > Does there exist a way to let the kernel scan for partition tables on a device
> > created using dmsetup? Or should I use a script like the one proposed by
> > Christophe Saout in http://lkml.org/lkml/2003/7/18/141?
> 
> There's a small tool
> "kpartx" ( http://www.die.net/doc/linux/man/man8/kpartx.8.html ), which
> I think, IIRC is a simple port of the kernel partition detection code to
> userspace, which uses the device mapper to set things up. I have used it
> at times, it works nicely (it can even replace the kernel detection code
> seamlessly, if put into an initramfs for instance). 
> 
> There's a copy of it in the distributed with the multipath tools.

Great! Exactly what I needed. I did `apt-get install multipath-tools', and now
it works fine. Thanks!

With kind regards,
 
Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   Geert.Uytterhoeven@xxxxxxxxxxx	
Internet: http://www.sony-europe.com/
 	
Sony Network and Software Technology Center Europe	
A division of Sony Service Centre (Europe) N.V.	
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium	
VAT BE 0413.825.160 · RPR Brussels	
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux