LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2011, 01:18 PM   #1
slayerking
Member
 
Registered: Apr 2011
Posts: 59

Rep: Reputation: 2
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 !!
 
Old 12-26-2011, 06:08 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
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/

Last edited by jefro; 12-28-2011 at 07:00 PM.
 
Old 12-28-2011, 02:11 AM   #3
slayerking
Member
 
Registered: Apr 2011
Posts: 59

Original Poster
Rep: Reputation: 2
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.

Last edited by slayerking; 12-28-2011 at 02:24 AM.
 
Old 12-28-2011, 04:03 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
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
 
Old 12-28-2011, 04:58 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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
 
Old 12-28-2011, 09:13 AM   #6
slayerking
Member
 
Registered: Apr 2011
Posts: 59

Original Poster
Rep: Reputation: 2
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?
 
Old 12-28-2011, 09:41 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

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

Last edited by Satyaveer Arya; 12-28-2011 at 09:43 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount qemu image secretlydead Linux - Software 11 05-14-2010 05:12 PM
Using qemu-kvm image to boot my pc luvshines Linux - Virtualization and Cloud 3 03-01-2010 02:16 AM
Trying to convert VMWare image to raw using Qemu: error - "image open" JamesHall Linux - Software 1 07-22-2008 05:59 AM
Canīt mount a qemu image bruno buys Linux - Software 2 03-31-2006 11:00 PM
qemu create disk image kpachopoulos Linux - General 3 11-29-2005 11:49 AM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration