[geeks] SunOS disk image manipulations/reading
JP Hindin
jplist2008 at kiwigeek.com
Wed Apr 1 08:05:09 CDT 2020
On Tue, 31 Mar 2020, Andrew Jones wrote:
> The "-o loop" as mount arguments sets up a loopback device for you.
>
> In order to scan for partitions you have to run losetup yourself, and then
> mount the resulting partitions:
>
> # Create the loopback device, and scan for parts
> losetup -Pf $IMAGE
>
> # Print out the loopback devices in existence.
> losetup -a
>
> # Mount the darn thing.
> mount -t ufs -o whatevr /dev/loop0p2 /mnt
Thank you! This is exactly what I needed, it worked perfectly.
Thank you very much to all, and have a sublime Wednesday;
- JP
> bbbbbbb Original Message bbbbbbb
> On Tuesday, March 31, 2020 8:06 PM, JP Hindin <jplist2008 at kiwigeek.com>
> wrote:
>
>> Good afternoon to you all in these bizarre times,
>>
>> I'll skip the long back story, which is both fascinating and utterly
>> uninteresting at the same time, and skip to it - I have a couple of disk
>> images made from Solaris9 disks from Sun Netra compactPCI boards that I
>> need to be able to work with.
>>
>> Normally I'm working on Linux machines (I can feel Mouse's glare) so those
>> are the kinds of tools I'd be hoping for, but I can be... flexible.
>>
>> Generally when I do this sort of thing I'll connect the Sun disk to a
>> Linux machine, and walk through the partitions doing partition-level
>> images,
>> dd if=/dev/sdX2 of=sunXYZ_home.img bs=1M
>> dd if=/dev/sdX3 of=sunXYZ_var.img bs=1M
>> Which I can then work with later, if necessary, with Linux's VFS loopback
>> driver,
>> mount -oufstype=sun -tufs -oro -oloop ./sunXYZ_home.img /mnt
>> As well as making a whole-disk image should I need to blow it back onto a
>> disk later.
>>
>> 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.
>>
>> At least, I think I'm looking at this problem the right way. I would
>> love some advice.
>>
>> My thanks to all, and do take care of yourselves;
>>
>> - JP
>>
>> GEEKS: http://www.sunhelp.org/mailman/listinfo/geeks
> _______________________________________________
> GEEKS: http://www.sunhelp.org/mailman/listinfo/geeks
More information about the geeks
mailing list