From: Wei Huang <w1.huang@samsung.com>
To: duqi <duqi_2009@163.com>, Ian Campbell <Ian.Campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: "Julien Grall" <julien.grall@linaro.org>, 宫晓利 <nkgongxl@163.com>,
"Stefano Stabellini (Xen mainlister)"
<stefano.stabellini@eu.citrix.com>
Subject: Re: the /dev/xvda can not be mounted and read/write when using xl create domU
Date: Thu, 17 Apr 2014 09:58:57 -0500 [thread overview]
Message-ID: <534FEC31.9030408@samsung.com> (raw)
In-Reply-To: <5342fdcd.87.1456e35e86f.Coremail.duqi_2009@163.com>
>
> Thanks very much for your advices.
> I want to know how the "54525952" offset can be computed?
> Mr Huang, could you give me some advice?
>
This number comes from the offset of Linaro rootfs image file x 512.
Here is the output from fdisk. You then calculate 106496 * 512.
Disk rootfs.img: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
vexpress-a9-nano.img1 * 63 106494 53216 c W95
FAT32 ()
vexpress-a9-nano.img2 106496 1048575 471040 83 Linux
Given that you can mount /dev/loop2 in Dom0, I think you don't need this
offset. Another advice/question I have is if you have ext4-fs support
compiled in your DomU kernel?
>> Or use root=/dev/xvda2 on the guest command line/cfg, which would be
>> more usual I think.
>>
>> (I'm not convinced this is the error though, since it seems xvda just
>> isn't working).
>>
>> duqi could you post the output of "xenstore-ls -fp" while the guest is
>> running but not able to access its disk.
>>
>
next prev parent reply other threads:[~2014-04-17 14:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
2014-04-16 15:47 ` Wei Huang
2014-04-16 16:47 ` Ian Campbell
2014-04-17 5:43 ` duqi
2014-04-17 14:58 ` Wei Huang [this message]
2014-04-16 16:45 ` Julien Grall
2014-04-17 9:07 ` Ian Campbell
2014-04-17 6:09 ` duqi
2014-04-17 9:10 ` Ian Campbell
2014-04-18 8:44 ` duqi
2014-04-18 9:10 ` Ian Campbell
2014-04-18 10:09 ` duqi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534FEC31.9030408@samsung.com \
--to=w1.huang@samsung.com \
--cc=Ian.Campbell@citrix.com \
--cc=duqi_2009@163.com \
--cc=julien.grall@linaro.org \
--cc=nkgongxl@163.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.