WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] pygrub CentOS domU - unable to mount lvm partition form

On Sat, Jan 31, 2009 at 5:45 AM, Peter Braun <xenware@xxxxxxxxx> wrote:
> 2009/1/30 Fajar A. Nugraha <fajar@xxxxxxxxx>:
>> On Sat, Jan 31, 2009 at 5:05 AM, Peter Braun <xenware@xxxxxxxxx> wrote:
>>>       Device Boot      Start         End      Blocks   Id  System
>>> /dev/vg/centospy   *           1        3916    31455238+  83  Linux
>>
>> Shouldn't it be /dev/vg/centospy1 ?
>
> mount /dev/vg/centospy1 /mnt/lvm
> mount: special device /dev/vg/centospy1 does not exist

What I meant was, shouldn't the output of fdisk -l has "1" on it (e.g.
centospy1 instead of cenotspy) ? If yes, then you need to create the
device mappings first with kpartx, and THEN mount it (it will be on
/dev/mapper, NOT /dev/vg)


> Unfortunately kpartx is only for debian lenny or sid and I dont wannt
> to mess my dom0 :(

Then you're out of luck.
Well there's a hard way to do it, actually. Something like

mount -o offset=32256 /dev/vg/centospy /mnt/lvm

To get the offset (in my example 32256), do "fdisk -lu" and multiply
the starting sector (usually 63) with 512

Regards,

Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>