<div>Hi, All:</div>
<div>  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  </div>
<div>   <a href="http://192.168.1.102/crosscopile/buildroot-2009.05/docs/README.diskimage">buildroot-2009.05/docs/README.diskimage</a>, but failure. </div>
<div> </div>
<div>   The bellow is my process.</div>
<div> </div>
<div>   # dd if=/dev/zero of=img bs=4096 count=16384</div>
<div>   # echo -e "n\np\n1\n\nw\n" | fdisk -C 16065 -H 255 -S 63 ./img</div>
<div>   # losetup -o 512 /dev/loop0 img</div>
<div>   # mkfs.ext2 -m0 -Lslash /dev/loop0</div>
<div>   # mount -oloop,rw /dev/loop0 fs/</div>
<div>   # cp -a ../root/* fs/</div>
<div>..root is the filesystem built by BUILD-ROOT and the bzImage has been copied into root/boot/, grub.lst has been created too.</div>
<div>  # umount fs/</div>
<div>  # losetup -d /dev/loop0<br>  # losetup /dev/loop0 img<br>  # grub --device-map=/dev/null</div>
<div>grub> device (hd0) img<br>device (hd0) img<br>grub> geometry (hd0) 16065 255 63<br>geometry (hd0) 16065 255 63<br>drive 0x80: C/H/S = 16065/255/63, The number of sectors = 258084225, img<br>   Partition num: 0,  Filesystem type unknown, partition type 0x83<br>
grub> root (hd0,0)<br>root (hd0,0)<br> Filesystem type unknown, partition type 0x83<br>grub> setup (hd0)<br>setup (hd0)</div>
<p><strong>Error 17: Cannot mount selected partition</strong></p>
<div>I don't know why it is error. Gald if you can help or give me some document on it.</div>
<div> </div>
<div>Best Regards!</div>
<div> </div>
<div>Bai SHuwei<br> </div>
<div><br><br><br><br clear="all"><br>-- <br>Love other people, as same as love yourself!<br>Don't think all the time, do it by your hands!<br><br>Personal URL: <a href="http://dslab.lzu.edu.cn:8080/members/baishw/">http://dslab.lzu.edu.cn:8080/members/baishw/</a><br>
E-Mail: <a href="mailto:baishuwei@gmail.com">baishuwei@gmail.com</a> or <a href="mailto:baishuwei@dslab.lzu.edu.cn">baishuwei@dslab.lzu.edu.cn</a><br> </div>