How to build a hard disk image in Linux?
Posted: Mon Sep 18, 2006 12:51 am
I read the article "Disk Images under Linux", and followed the steps in this article to build a hard disk image. But it seems that I failed.
The only difference is that #cylinders I use is 40, and I attached the image file to /dev/loop1, but /dev/loop0.
But I don't think these differences will cause the error.
When I tried to install grub in this hard disk image, I got the following errors:
grub> device (hd0) /dev/loop1
grub> root (hd0)Unknown partition table signature
Filesystem type unknown, using whole disk
grub> setup (hd0)
Error 17: Cannot mount selected partition
So does anyone have some ideas?
The only difference is that #cylinders I use is 40, and I attached the image file to /dev/loop1, but /dev/loop0.
But I don't think these differences will cause the error.
When I tried to install grub in this hard disk image, I got the following errors:
grub> device (hd0) /dev/loop1
grub> root (hd0)Unknown partition table signature
Filesystem type unknown, using whole disk
grub> setup (hd0)
Error 17: Cannot mount selected partition
So does anyone have some ideas?