linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Partitions on a loopback block device?
@ 2003-12-01 22:20 christophe varoqui
  0 siblings, 0 replies; 3+ messages in thread
From: christophe varoqui @ 2003-12-01 22:20 UTC (permalink / raw)
  To: linux-kernel


> A simple approach would be to use losetup with the offset function for
> every single parttion (while I'm not sure whether this works through 
> the CHS geometry).
> 
Or simply map the partitions with the device mapper.
Tools like partx/dmpartx may help.

regards,
cvaroqui


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Partitions on a loopback block device?
  2003-12-01 12:40 hadmut
@ 2003-12-01 14:24 ` Gerardo Exequiel Pozzi
  0 siblings, 0 replies; 3+ messages in thread
From: Gerardo Exequiel Pozzi @ 2003-12-01 14:24 UTC (permalink / raw)
  To: hadmut; +Cc: linux-kernel

On Mon, 1 Dec 2003 13:40:34 +0100, hadmut@danisch.de wrote:
>Would it be possible to have a loopback blockdevice recognize
>partition tables and to provide partitions as any other block device?
>
>Obviously, naming is not very elegant, but /dev/loopa0 would be a nice
>analogon to /dev/hda0 and /dev/sda0

Hi,

try this patch.

ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/patches

>
>regards
>Hadmut

chau,
 djgera


-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.vmlinuz.com.ar http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Partitions on a loopback block device?
@ 2003-12-01 12:40 hadmut
  2003-12-01 14:24 ` Gerardo Exequiel Pozzi
  0 siblings, 1 reply; 3+ messages in thread
From: hadmut @ 2003-12-01 12:40 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm currently trying to do hard disk backups of some machines 
with different operating systems using a bootable Linux CD.

Backing up every single partition is fine, but overhead and
requires additional backup of the partition table in order
to be able to play it back. 

What I would like to do is to have a full backup with

dd if=/dev/hda of=somewhere

and to mount the partitions of this file with the loopback block
driver.

A simple approach would be to use losetup with the offset function for
every single parttion (while I'm not sure whether this works through 
the CHS geometry).

Would it be possible to have a loopback blockdevice recognize
partition tables and to provide partitions as any other block device?

Obviously, naming is not very elegant, but /dev/loopa0 would be a nice
analogon to /dev/hda0 and /dev/sda0

regards
Hadmut

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-01 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-01 22:20 Partitions on a loopback block device? christophe varoqui
  -- strict thread matches above, loose matches on Subject: below --
2003-12-01 12:40 hadmut
2003-12-01 14:24 ` Gerardo Exequiel Pozzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).