Hi All, I have a Solaris and some Linux Guest image files at hand. I want to mount them and do some jobs in these images. Is there an easy way to do that in a Solaris host environment? Best Regards Jiajun
Xu, Jiajun wrote:> Hi All, > I have a Solaris and some Linux Guest image files at hand. I want to > mount them and do some jobs in these images. Is there an easy way to do > that in a Solaris host environment? > > Best Regards > Jiajun > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >Hi Xu, you''d use lofi just like under Solaris 10 afaik. See this page: http://www.cyberciti.biz/faq/howto-mount-sun-solaris-cd-iso-image/ James
> Hi Xu, you''d use lofi just like under Solaris 10 afaik. > > See this page: > http://www.cyberciti.biz/faq/howto-mount-sun-solaris-cd-iso-image/James, I can use "lofiadm" to export a ISO as block device and use "mount -F hsfs" command to mount it. But for Solaris or Linux image file, I did not find a proper method to mount it. Seems "mount" command can not recognize these images'' filesystem. [vt-dp3@images]lofiadm -a /export/home/images/solaris10u4_32.img /dev/lofi/1 [vt-dp3@images]mount /dev/lofi/1 /media/ mount: /dev/lofi/1 is not this fstype Best Regards Jiajun
On Mon, Jan 07, 2008 at 10:52:49PM +0800, Xu, Jiajun wrote:> I can use "lofiadm" to export a ISO as block device and use "mount -F > hsfs" command to mount it. But for Solaris or Linux image file, I did > not find a proper method to mount it. Seems "mount" command can not > recognize these images'' filesystem. > > [vt-dp3@images]lofiadm -a /export/home/images/solaris10u4_32.img > /dev/lofi/1 > [vt-dp3@images]mount /dev/lofi/1 /media/ > mount: /dev/lofi/1 is not this fstypeUnfortunately the disk images includes a label, which lofi doesn''t understand. I don''t think that there is away to do what you want right now, which is a real pain :-( dme.
Xu, Jiajun wrote:>> Hi Xu, you''d use lofi just like under Solaris 10 afaik. >> >> See this page: >> http://www.cyberciti.biz/faq/howto-mount-sun-solaris-cd-iso-image/ > > James, > I can use "lofiadm" to export a ISO as block device and use "mount -F > hsfs" command to mount it. But for Solaris or Linux image file, I did > not find a proper method to mount it. Seems "mount" command can not > recognize these images'' filesystem. > > [vt-dp3@images]lofiadm -a /export/home/images/solaris10u4_32.img > /dev/lofi/1 > [vt-dp3@images]mount /dev/lofi/1 /media/ > mount: /dev/lofi/1 is not this fstypeThe best way to mount these today is from another domU. MRJ
> The best way to mount these today is from another domU. >Can you explain more about how to do it as you mentioned? These image files are all based on HVM Guest. Best Regards Jiajun
Xu, Jiajun wrote:>> The best way to mount these today is from another domU. >> > Can you explain more about how to do it as you mentioned? These image > files are all based on HVM Guest.If I want to mount a Linux domUs root disk to fix something, I boot a different Linux domU and mount the first domUs disk from it. If I want to mount a solaris domUs disk, I boot a different Solaris domU.. e.g. with xm block-attach MRJ
The problem is that ext2/3 is GPLv2, it''s incompatible with the kernel licensing, using FUSE would be the only option, it''s a flip side of the whole ZFS on Linux issue. James On Jan 7, 2008, at 2:33 PM, Mark Johnson wrote:> > > Xu, Jiajun wrote: >>> The best way to mount these today is from another domU. >>> >> Can you explain more about how to do it as you mentioned? These image >> files are all based on HVM Guest. > > If I want to mount a Linux domUs root disk to fix > something, I boot a different Linux domU and mount > the first domUs disk from it. > > If I want to mount a solaris domUs disk, I boot a > different Solaris domU.. > > e.g. with xm block-attach > > > > MRJ >