home | list info | list archive | date index | thread index

[OCLUG-Tech] how to mount a filesystem *inside* an SD card image?

  • Subject: [OCLUG-Tech] how to mount a filesystem *inside* an SD card image?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sun, 11 Dec 2011 14:08:35 -0500 (EST)
  i may regret asking this if i suddenly realize how to do it after i
hit ENTER but i still don't see a simple way to do this.

  for booting beagleboards and pandaboards, one normally uses an SD
card that is formatted as a tiny hard drive -- there's a partition
table, an initial DOS partition, and the rest of the card is typically
an ext2 or ext3 partition containing the root filesystem.

  if i have a byte-for-byte image file for the SD card, is it possible
to mount one of those internal filesystems?  i'm well aware of the "-o
loop" option for mounting image files, but now i want to mount a
filesystem that's *inside* such an image file, so i can make changes
to it.

  can i do this?  am i missing something stupidly obvious?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================