LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   booting hardisk image on qemu (https://www.linuxquestions.org/questions/linux-newbie-8/booting-hardisk-image-on-qemu-920583/)

slayerking 12-26-2011 12:18 PM

booting hardisk image on qemu
 
Didn't find where to post this so I am posting it here.
Please excuse me If this not the perfect place !!
I just downloaded the minix 1.5 disk image from www.oldlinux.org .The site says "The environment that Linus developped linux system. The hard disk parameters are: cyls=685, hds=16, sects=38. Username/Passwd: root/root". I downloaded it because I wanted to compile the ancient kernel Linux 0.01 myself but when I used the disk image on qemu it says not a bootable disk.

Has anybody tried this can anybody help me to boot this disk image ??
I have tried it on bochs2.1 and bochs2.5 but without any success !!

jefro 12-26-2011 05:08 PM

If you had received a raw hard drive image of some OS you just use it as -hda /filename. It needs to be uncompressed.

I doubt minix has a real linux kernel in it.

To get real linux you need to go to kernel.org http://www.kernel.org/pub/linux/kern.../old-versions/

slayerking 12-28-2011 01:11 AM

What do you mean by minix real linux kernel ?
I couldn't make any sense from your post.
Please try to explain in more detail if you really know about it.
Minix uses its own kernel it doesn't use linux.
Yes ,I know that -hda <image> parameter boot the raw hardisk image and the image format is .img
As this is really old system (older than linux) ,I guess it need something more to boot as the concept of harddisk was not similar back in those days.

brianL 12-28-2011 03:03 AM

It might not be what you're looking for, but somebody has adapted the 0.01 kernel source so it builds with gcc 4:
http://kerneltrap.org/Linux/Dusting_Off_the_0.01_Kernel

Satyaveer Arya 12-28-2011 03:58 AM

slayerking,

Now you have downloaded minix, now open a terminal, change directory to where you want to create the Hard Disk Image, and write:

Quote:

# qemu-img create minix.img 4.7G
This will create a 4.7GB hard disk image named minix.img, which you can use to install the operating system.

You have downloaded the image from www.oldlinux.org, first using gunzip decompress the image:

Quote:

#gunzip <image_name>
Now you can mount the iso image:

Quote:

# qemu -localtime -net user -net nic -m 256 -cdrom minix.iso -hda minix.img -boot d
when the installation is over, type:

Quote:

#shutdown
to exit minix

Now you have installed minix on the virtual machine. To boot minix from the virtual disk image, type:

Quote:

# qemu -localtime -net user -net nic -m 256 -hda minix.img

slayerking 12-28-2011 08:13 AM

O my goodness !!
What are you trying to teach me ?
I know how to use qemu pretty well. I am not a noob in linux.
Minix 1.5 was released on 1987. Back in those days cdrom were not even developed how could you find the cd image of minix 1.5 .It was only distributed on floppy. We are talking here about time when hard-disk size use to be 40mb.
I have got this old hard-disk image in oldlinux.org.I have just tried every possible combination and tricks that I know to boot this hard-disk image but was unable to boot.The thing I am asking is to boot this hard-disk image not because I don't know qemu ,its because the hard-disk layout use to be different back in those days.
I can't even ask this on oldlinux.org because the forum are all in chinese .Even when I use google translator the forum is still shown in broken english which doesn't make sense at all.
Are there any experienced member who can guide me through this?

Satyaveer Arya 12-28-2011 08:41 AM

Ohhh OHh Ohh, I'm really sorry for my last post. I think I havn't read your post correctly.. Sorry for the mistake.


All times are GMT -5. The time now is 02:47 AM.