[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • From: Peter Braun <xenware@xxxxxxxxx>
  • Date: Sat, 31 Jan 2009 10:11:51 +0100
  • Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sat, 31 Jan 2009 01:13:11 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ZnAvSIJ6IHzjvepRloRL+BUUy8N6PsVjCvePPmT8DSkGKi4DG2cHpmNCVq1qQYDbOY JVwG5R0yCVuVPvp3BTyunBhbai9Jd5f3GFsD91Bfj3zdYRywL5MzY1Y/z7k607+Sdu+G POkh1zsEiSOp1Q2XvgJCcQcbnhDe0qiuhwjws=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi Fajar

mount -o offset=32256 /dev/vg/centospy /mnt/lvm     did the trick!

Thank you very much for your help.


Br

Peter



2009/1/31 Fajar A. Nugraha <fajar@xxxxxxxxx>:
> 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.