Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Gentoo (2.6 kernel), and i've emerge'd qemu with kqemu support. I've managed to create a HDD image using the following command
Code:
dd if=/dev/zero of=hdd.img bs=1024 count=200000
Or something similar. I've got a 2GB hdd.img file, which I booted and installed Windows 2000 SP4 using this:
Code:
qemu -boot d -cdrom /dev/cdrom -hda hdd.img
The Win2k install went perfectly, and it even rebooted into Windows when it was finished. However, now when I try and run:
Code:
qemu hdd.img
I get an error that says "A disk read error occurred". I've checked perms on the hdd.img file, they're fine. I can boot from a CD using the same command as before.
I have found this: http://lists.gnu.org/archive/html/qe.../msg00017.html
And it says something about a patch NT-BOOT-MAIN. However, I have no idea what to do with this patch. Compile it? Run it? Copy it somewhere?
qemu has its own image creation tool, for a 2G image use the command line
Code:
qemu-img create -f raw hdd.img 2G
The difference between dd image and the qemu created image is the qemu image is a drive image, it has a boot sector, partition table etc.
HTH
Mad.
Thanks, that's perfect!
I've got another qemu related question: How do you change the "resolution"... if you do it in the guest operating system (in my case WXP), the display drivers can't seem to take it properly. I'm getting weird graphical problems. When I fullscreen it (which I have yet to work out how to do), I want it to be at the same res as my X desktop.
Just a guess, but a 2G image might be too small, the smallest image I've ever used (with win2k) is 4G, typically I specify 10G as the actual image size. The actual size of this image is only a bit larger than the files it contains so it doesn't actually use 10G.
Just a guess, but a 2G image might be too small, the smallest image I've ever used (with win2k) is 4G, typically I specify 10G as the actual image size. The actual size of this image is only a bit larger than the files it contains so it doesn't actually use 10G.
HTH
Mad.
The thing is it does boot perfectly fine after the install - it just doesn't boot properly straight from the image. Besides, when I made my second image I made it 3GB, which should be enough.
Is there any way to "check" the drive image? Maybe even fix it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.