NetBSD-Users archive

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

Re: mounting external ext2 partitions



On Sat, 14 Jun 2008 23:56:59 -0400
Taylor R Campbell <campbell%mumble.net@localhost> wrote:

> Hello!  I have an IDE disk containing about six ext2 partitions that
> I'd like to examine the contents of using a generic USB enclosure for
> IDE disks.  I was able to mount the root partition of this disk, but
> none of the other ones.  It's not clear to me from the output of the
> `disktype' utility[*] how to mount the other partitions -- there is
> not an exact correspondence between the /dev/sd0* devices and the
> partitions on the disk, particularly since only the three devices
> /dev/sd[a-c] are configured anyway.  I've attached a typescript of
> what I tried and the results.  Can I do this at all in NetBSD 4.0?  Am
> I just trying the wrong approach?
> 
> [*] <http://disktype.sourceforge.net/>

It would be good to see the output of the NetBSD disklabel and fdisk
commands.

Anyway -- you can do what you want, but it may be a bit annoying.  You
have to set up the NetBSD disklabel partitions to point to each of the
ext2 slices; for that, you need the start point and length of each
fdisk partition in 512-byte sectors.  That information seems to be in
your disktype output, so it shouldn't be too hard to set up using
disklabel.


                --Steve Bellovin, http://www.cs.columbia.edu/~smb


Home | Main Index | Thread Index | Old Index