[geeks] SunOS disk image manipulations/reading

Mouse mouse at Rodents-Montreal.ORG
Tue Mar 31 15:27:17 CDT 2020


> Normally I'm working on Linux machines (I can feel Mouse's glare)

:-)  More eye-roll than glare, to the extent it's anything at all.  I
don't believe Linux is never a right answer, just that it hasn't been
for my use cases.

> The images I presently have, however, are only full raw disk images,
> inclusive of partition table.  I'd rather not have to write them out
> to disks to read them back in. Logically I need to peel a partition
> off this image so that it can be mounted and data from it copied -
> but I'm not entirely sure how to do that.

On Linux, I'm not sure either; I don't know its partitioning
capabilities.  But I do have a user-level program that can read and
manipulate Sun disk labels.  The "push the partition table to the
kernel" code will need to be changed or removed, of course, but the
rest should work.

It's in NetBSD in /usr/sbin/sunlabel as of 4.0.1 and 5.2; I don't know
what, if anything, has happened to it more recent versions.  It's also
up for anonymous ftp from ftp.rodents-montreal.org, in
/mouse/hacks/sunlabel.c and .doc, and I can also mail out copies.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse at rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


More information about the geeks mailing list