getting a OS to run

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

getting a OS to run

Post by jaeg »

My biggest problem that I really don't understand is how do I get a os to boot without a floppy? I read about GRUB but I don't understand it.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

You use an emulator that loads your finished disk image. (They can load files in place of a drive.)

As for GRUB, it's installed as the bootloader to your disk image. It loads a file in the disk's directory and jumps to it. (Ignoring everything else it does to simplify the matter.) This way you can ignore writing a boot loader and start with the kernel itself. (ie. the important part.)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

If you mean that you don't have (or want to use) a floppy drive, you can use bootable cd's (rewritables obviously) or boot from harddisk using GRUB (linux recommended)

http://www.osdev.org/wiki/Bootable_CD
http://www.osdev.org/wiki/GRUB
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

Post by jaeg »

Do you have to have Linux for Grubs?

Maybe this will help. The OS I am making doesn't really do much of anything it is just for fun and it is being put on a really old Compaq laptop that currently has Windows 3.1 on it. I want to take Windows 3.1 off it and put my simple OS that I am working on on it. The OS will do only simple tasks and is just for fun.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

jaeg wrote:Do you have to have Linux for Grubs?
Nope.
C8H10N4O2 | #446691 | Trust the nodes.
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

Post by jaeg »

Do you guys use GRUBS Legacy or GRUBS 2?


EDIT
How do I get the laptop to run GRUBS and not the Windows 3.1 loader?
Last edited by jaeg on Wed Jun 13, 2007 8:48 pm, edited 1 time in total.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

jaeg wrote:Do you guys use GRUBS Legacy or GRUBS 2?
Legacy.
C8H10N4O2 | #446691 | Trust the nodes.
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

Post by jaeg »

I am looking through the manual and I am having trouble understanding it. So all I have to do is to put GRUBS and my simple OS which is a .bin file on the computer then tell GRUBS where the file is?
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

Post by jaeg »

My situation has changed I am no longer using the Compaq laptop I now am using a old Compaq computer that has a floppy and a CD drive.

Can anybody help?
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

I personally use VFD (Virtual Floppy Drive) in combination with
Bochs emulator to create a FAT12 bootable virtual floppy image.

VFD can also output the floppy image to disk, so you can easily
burn to a bootable CD.

What exactally are you having problems with?
jaeg
Posts: 6
Joined: Wed Jun 13, 2007 11:08 am

Post by jaeg »

I was just having trouble understanding how to get the OS to boot.
I think I got it figured out. I am going to look at the VFD.
Post Reply