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

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] pygrub CentOS domU - unable to mount lvm partition form dom0 - SOLVED
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=dj4eurYC37gen+GTL4ycJEQH0j6W9ADXZrkpk73dSkg=; b=A04Q1D5bK93dvM+jDJusvCqejXS5iu4TYg5kDUAMVh/CSyKaVDxqTLmzOuoFkFcMJp cxSFKpWrTz6ULwAYFsQkYgEDalF0DgPw5vw6i3RsIL0Fa7QZIZ2vgQ9faGrRwB9WE7sa SaJCLjCJu16LQSlo+M8sRmNyzNUKyvMQ7jhBY=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] pygrub CentOS domU - unable to mount lvm partition form dom0 - SOLVED, Peter Braun <=