Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got Xen running on Debian testing, and I have created VG_Guests volume to hold all domUs partitions, but that's besides the point.
The problem is that when I created 4G lvm partition for a guest os, instead of formatting is as ext3 or similar, I left it as unpartitioned space, and later, when Installed a guest OS with default partitioning so now it looks something like:
----------------
|MBR|SWAP|EXT3 "/"|
-----------------
So single LVM partition contains two partiton and master boot record.
Now I need to mount ext3 part of it while I'm in dom0 ( when the os that occupies that partition is turned off) and I have no idea how to do it.
If anyone interested in the answer, this is possible if you use loopback device, more specifically losetup program. Read a manual, you'd have to mount existing partition onto loopback device with offset specified by -o. The following command will work in most cases:
I'm planning on setting up something similar soon.
Quote:
The problem is that when I created 4G lvm partition for a guest os, instead of formatting is as ext3 or similar, I left it as unpartitioned space...
Do you recommend formatting the Guest OS area as ext3 in advance? I expect one of my Guest OSes to eventually be Windows. Am I correct in assuming that I should leave at least that much disk space as "free space?" Any other tips you picked up in the process?
Xen looks to me like the wave of the future, but documentation is still a bit advanced for my skills.
I wrote that post a while ago, so there a couple of things I've learnt since then. Do not partition the space you want to install a fully virtualized guest os in it, since the guest os will not see the partition anyway, it will just see a physical disk, of undetermined format, so don't bother.
My original question was concerning the problem, of mounting guest os partition into host os, something that is less relevant when you have windows install. If you would want to do that anyway, your partition would look like I drawn above, and in order to mount the main partition you'd have to skip the boot sector, which is easily done using loopback device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.