• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to mount a range of block on a disk as a partition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to mount a range of block on a disk as a partition


  • Subject: Re: How to mount a range of block on a disk as a partition
  • From: Chris Suter <email@hidden>
  • Date: Sat, 13 Jun 2009 10:15:16 -0700

On Sat, Jun 13, 2009 at 7:32 AM, Thomas Tempelmann<email@hidden> wrote:

> This may not be the proper list for this, please forgive. I just need
> a quick answer and couldn't find it myself so far:
>
> On a block device there is a file system hidden inside a partition
> (actually, in an EFI partition).
> The disk's partition table only specifies the larger efi partition,
> but not the actual fs partition inside it.
> I can extract the partition inside by copying (e.g. using dd comand)
> the blocks beginning at offset 39*512, writing them to a file and
> mount that file as a disk image. That proves that it's there, in one
> contiguous blob.
>
> Now, I like to modify that partition in its place instead, hence mount
> it on OS X.
>
> Is there a way I can either create an on-the-fly block device from a
> range of disk blocks, using an existing unix/Apple command?
>
> Or can I tell the mount command to skip the first N blocks of a given
> drive, i.e. provide an offset from where it should assume the start of
> the file system it shall mount?
>
> The intention here is to avoid modifying the partition table.

I don't think there's an easy way of doing what you want, but here are
a few ways:

  1. Write a kernel extension to present the internal range as a new
partition. Probably not that difficult if you know what you're doing.

  2. Use FUSE to write your own filesystem that presents the internal
partition as a file and then mount the presented file as a disk image.

  3. Same as 2 really: if you've got VMWare Fusion, it already has
software that does #2 so you could create a vmdk file (which can be
pretty flexible) and then go from there.

Regards,

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to mount a range of block on a disk as a partition
      • From: Quinn <email@hidden>
References: 
 >How to mount a range of block on a disk as a partition (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: How to mount a range of block on a disk as a partition
  • Next by Date: Re: Need File information
  • Previous by thread: How to mount a range of block on a disk as a partition
  • Next by thread: Re: How to mount a range of block on a disk as a partition
  • Index(es):
    • Date
    • Thread