[osol-discuss] Does Solaris has similar Linux command mount -o which can mount IMG file with specified offset?

2007-12-11 Thread Zhang, Frank F
Does Solaris has similar Linux command mount -o  which can mount IMG
file with specified offset? Or if I can get an Utility to do this kind
of job?

 

 

 

 

Thanks!

Frank

 

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] Does Solaris has similar Linux command mount -o which can mount IMG file with specified offset?

2007-12-11 Thread Josh Lange
On Dec 11, 2007 1:25 AM, Zhang, Frank F [EMAIL PROTECTED] wrote:

  Does Solaris has similar Linux command mount -o  which can mount IMG
 file with specified offset? Or if I can get an Utility to do this kind of
 job?



Are you talking about mapping an image file to a loop device, and mount it
-o loop ?

I haven't tried the loop arguement to mount on solaris, but it's pretty easy
to manually mapping a file to a loop device, and then mounting the loop
device. Check out: lofiadm(1M)

As for mounting the image with an offset, I'm not aware of how you are doing
this in linux, and generally this isn't needed for an iso image, but you may
consider using dd(1M) to cut the image into multiple files.







 Thanks!

 Frank



 ___
 opensolaris-discuss mailing list
 opensolaris-discuss@opensolaris.org

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] Does Solaris has similar Linux command mount -o which can mount IMG file with specified offset?

2007-12-11 Thread Frank . Hofmann
On Tue, 11 Dec 2007, Josh Lange wrote:

 On Dec 11, 2007 1:25 AM, Zhang, Frank F [EMAIL PROTECTED] wrote:

  Does Solaris has similar Linux command mount -o  which can mount IMG
 file with specified offset? Or if I can get an Utility to do this kind of
 job?



 Are you talking about mapping an image file to a loop device, and mount it
 -o loop ?

 I haven't tried the loop arguement to mount on solaris, but it's pretty easy
 to manually mapping a file to a loop device, and then mounting the loop
 device. Check out: lofiadm(1M)

 As for mounting the image with an offset, I'm not aware of how you are doing
 this in linux, and generally this isn't needed for an iso image, but you may
 consider using dd(1M) to cut the image into multiple files.

On Solaris, it depends on the filesystem. FAT filesystems within images of 
PC-style partitioned disks can be mounted using the 'normal' PCFS syntax 
/dev/lofi/1:[c-z] but that functionality is limited to PCFS. It's not a 
generic lofi thing.

Although it should be - the request is not new, see:

http://bugs.opensolaris.org/view_bug.do?bug_id=4765069

and what's associated with it.


But then, there's always more than one way to do it ... and in case of 
what you can do right now, creating an iSCSI target where the backing 
store is your partitioned image file, and then using the iSCSI initiator 
on the same machine to access it (as a sd-managed disk) should allow you 
to get the partitions. Sounds a bit like poke around the back, through 
the ribs and up right into the eye, but hey ... :)

Have you tried the iscsitadm / iscsiadm workaround ?

FrankH.









 Thanks!

 Frank



 ___
 opensolaris-discuss mailing list
 opensolaris-discuss@opensolaris.org



--
No good can come from selling your freedom, not for all the gold in the world,
for the value of this heavenly gift far exceeds that of any fortune on earth.
--
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org