qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] diskimage HOWTO


From: Bai Shuwei
Subject: Re: [Qemu-devel] diskimage HOWTO
Date: Tue, 25 Aug 2009 11:55:29 +0800



On 8/25/09, Mulyadi Santosa <address@hidden> wrote:
On Mon, Aug 24, 2009 at 2:48 PM, Kevin Wolf<address@hidden> wrote:
> Bai Shuwei schrieb:
>> Hi, All:
>>   I want to build a test enviroment with QEMU and buildroot. But I don't
>> know how to build the diskimage which same as linux-0.2.img offered by
>> BUILD-ROOT. I build the diskimage following the
>>    buildroot-2009.05/docs/README.diskimage
>> <http://192.168.1.102/crosscopile/buildroot-2009.05/docs/README.diskimage>,
>> but failure.
>>
>>    The bellow is my process.
>>
>>    # dd if=/dev/zero of=img bs=4096 count=16384
>>    # echo -e "n\np\n1\n\nw\n" | fdisk -C 16065 -H 255 -S 63 ./img
>>    # losetup -o 512 /dev/loop0 img
>
> This looks like the wrong offset. The first partition usually starts at
> sector 63.

I agree, perhaps Bai should instead use 32256.

From "man losetup":
-o, --offset offset
             The  data start is moved offset bytes into the specified file or
             device

So it has to be converted into bytes.

Bai, that could be the answer. Please kindly try it.
 
Hi, all!
   Thanks!
   Yes, It's work now. I try 32256!

--
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com



--
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!

Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/
E-Mail: address@hidden or address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]