Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am setting up a openSuSE DomU using image files. But I would like to handle each image file as a partition inside the DomU, not a complete disk (i.e., I would like to access the image files as hda1, hda2, hda3 instead of hda, hdb, hdc).

Is there any way to achieve this? I know how to handle this in Gentoo, but that's a tinkerer's distro anyway and makes such things easy...

share|improve this question
    
I would have deleted the question for being stupid, but seeing there's been an upvote on it, I answered myself and unveiled the full amount of my incompetence. :-D – DevSolar Aug 5 '10 at 13:11
up vote 0 down vote accepted

Gosh, I must have been blind.

Instead of:

disk=[  'file:/var/lib/xen/images/suse/disk0-root,hda,w',
        'file:/var/lib/xen/images/suse/disk1-swap,hdb,w',
        'file:/var/lib/xen/images/suse/openSUSE-11.3-DVD-x86_64.iso,hdc,r' ]

simply use:

disk=[  'file:/var/lib/xen/images/suse/disk0-root,hda1,w',
        'file:/var/lib/xen/images/suse/disk1-swap,hda2,w',
        'file:/var/lib/xen/images/suse/openSUSE-11.3-DVD-x86_64.iso,hdb,r' ]

...which is just the same as I've used for the Gentoo setup. Serves you right when you're copy&pasting tutorials without actually having a close look at them.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .