linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can I abuse md like this?
@ 2006-12-24  3:35 Bill Davidsen
  2006-12-24  3:44 ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Davidsen @ 2006-12-24  3:35 UTC (permalink / raw)
  To: Linux Raid List

I hope I can use the md code to solve a problem, although in a way 
probably not envisioned by the author(s).

I have a disk image, a physical dump of every sector from start to 
finish, including the partition table. What I hope I can do is to create 
a one drive RAID-1 partitionable array, and then access it with fdisk or 
similar. These partitions are not "nice" types such as FAT, VFAT, ext2, 
etc, this is an odd disk, and I "saved it" by saving everything. Now I'd 
like to start dismembering the information and putting it into useful 
pieces. I even dare to hope that I could get the original software 
running on a virtual machine at some point.

The other alternative is to loopback mount it, I'm somewhat reluctant to 
do that if I can avoid it.

Yes, the partition table is standard in format if not in content.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

* Re: Can I abuse md like this?
  2006-12-24  3:35 Can I abuse md like this? Bill Davidsen
@ 2006-12-24  3:44 ` Neil Brown
  2006-12-25 19:10   ` Bill Davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Brown @ 2006-12-24  3:44 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: Linux Raid List

On Saturday December 23, davidsen@tmr.com wrote:
> I hope I can use the md code to solve a problem, although in a way 
> probably not envisioned by the author(s).
> 
> I have a disk image, a physical dump of every sector from start to 
> finish, including the partition table. What I hope I can do is to create 
> a one drive RAID-1 partitionable array, and then access it with fdisk or 
> similar. These partitions are not "nice" types such as FAT, VFAT, ext2, 
> etc, this is an odd disk, and I "saved it" by saving everything. Now I'd 
> like to start dismembering the information and putting it into useful 
> pieces. I even dare to hope that I could get the original software 
> running on a virtual machine at some point.
> 
> The other alternative is to loopback mount it, I'm somewhat reluctant to 
> do that if I can avoid it.
> 
> Yes, the partition table is standard in format if not in content.

Maybe...
Is this image in a file?
md only works with block devices, so you would need to use the 'loop'
driver to create a block-device "/dev/loopX".

But as loop devices cannot be partitioned, you could then
  mdadm -Bf /dev/md/d9 -amdp8 -l1 -f -n1 /dev/loopX
  
and then look at the partitions in /dev/md/d9_*

Should work.

NeilBrown

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

* Re: Can I abuse md like this?
  2006-12-24  3:44 ` Neil Brown
@ 2006-12-25 19:10   ` Bill Davidsen
  2006-12-30 22:15     ` Bill Davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Davidsen @ 2006-12-25 19:10 UTC (permalink / raw)
  To: Neil Brown; +Cc: Linux Raid List

Neil Brown wrote:
> On Saturday December 23, davidsen@tmr.com wrote:
>   
>> I hope I can use the md code to solve a problem, although in a way 
>> probably not envisioned by the author(s).
>>
>> I have a disk image, a physical dump of every sector from start to 
>> finish, including the partition table. What I hope I can do is to create 
>> a one drive RAID-1 partitionable array, and then access it with fdisk or 
>> similar. These partitions are not "nice" types such as FAT, VFAT, ext2, 
>> etc, this is an odd disk, and I "saved it" by saving everything. Now I'd 
>> like to start dismembering the information and putting it into useful 
>> pieces. I even dare to hope that I could get the original software 
>> running on a virtual machine at some point.
>>
>> The other alternative is to loopback mount it, I'm somewhat reluctant to 
>> do that if I can avoid it.
>>
>> Yes, the partition table is standard in format if not in content.
>>     
>
> Maybe...
> Is this image in a file?
> md only works with block devices, so you would need to use the 'loop'
> driver to create a block-device "/dev/loopX".
>   
I was thinking nbd, actually.
> But as loop devices cannot be partitioned, you could then
>   mdadm -Bf /dev/md/d9 -amdp8 -l1 -f -n1 /dev/loopX
>   
> and then look at the partitions in /dev/md/d9_*
>
> Should work.
Sounds worth a try. Will be a learning experience if nothing else.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

* Re: Can I abuse md like this?
  2006-12-25 19:10   ` Bill Davidsen
@ 2006-12-30 22:15     ` Bill Davidsen
  0 siblings, 0 replies; 4+ messages in thread
From: Bill Davidsen @ 2006-12-30 22:15 UTC (permalink / raw)
  To: Linux Raid List; +Cc: Neil Brown

Bill Davidsen wrote:
> Neil Brown wrote:
>> On Saturday December 23, davidsen@tmr.com wrote:
>>  
>>> I hope I can use the md code to solve a problem, although in a way 
>>> probably not envisioned by the author(s).
>>>
>>> I have a disk image, a physical dump of every sector from start to 
>>> finish, including the partition table. What I hope I can do is to 
>>> create a one drive RAID-1 partitionable array, and then access it 
>>> with fdisk or similar. These partitions are not "nice" types such as 
>>> FAT, VFAT, ext2, etc, this is an odd disk, and I "saved it" by 
>>> saving everything. Now I'd like to start dismembering the 
>>> information and putting it into useful pieces. I even dare to hope 
>>> that I could get the original software running on a virtual machine 
>>> at some point.
>>>
>>> The other alternative is to loopback mount it, I'm somewhat 
>>> reluctant to do that if I can avoid it.
>>>
>>> Yes, the partition table is standard in format if not in content.
>>>     
>>
>> Maybe...
>> Is this image in a file?
>> md only works with block devices, so you would need to use the 'loop'
>> driver to create a block-device "/dev/loopX".
>>   
> I was thinking nbd, actually.
>> But as loop devices cannot be partitioned, you could then
>>   mdadm -Bf /dev/md/d9 -amdp8 -l1 -f -n1 /dev/loopX
>>   and then look at the partitions in /dev/md/d9_*
>>
>> Should work.
> Sounds worth a try. Will be a learning experience if nothing else.
>
Rather than setup nbd I did try a loop mount, and the whole process 
worked flawlessly. I was able to look at partitions, read the partition 
table, and generally do anything I could from a device. It worked so 
well I backed it up as an image, just in case I ever want to do 
something else with it.

Many thanks.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

end of thread, other threads:[~2006-12-30 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24  3:35 Can I abuse md like this? Bill Davidsen
2006-12-24  3:44 ` Neil Brown
2006-12-25 19:10   ` Bill Davidsen
2006-12-30 22:15     ` Bill Davidsen

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).