Help with bootloader

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
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Help with bootloader

Post by meh »

I'm using a loopback device to try and test my operating system, but my bootloader will not load my operating system. I think the reason is because when I write my bootloader to it, it wipes out the filesystem.
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 »

Well, the obvious question: Is your bootloader actually compatible with the filesystem?
"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 ]
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

Yes, it is the bootloader that John Fine made, and the filesystem that I am using is FAT.
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Post by jerryleecooper »

AusZero wrote:Yes, it is the bootloader that John Fine made, and the filesystem that I am using is FAT.
Yes, JOhn Fine is doing fine bootloaders, is a reputed source for you to get source from. Of course the problem doesn't come from your assembly of "objects" that you got from the internet.
I think it's your use of your linux that is the problem.

The solution, use mkfat12 or something what is called, mount it, copy your files, unmount it, and copy your bootloader on your file, dont use your loopback thing I dont know what it is because Im using Windows not linux.
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

Without the loopback device, I can't mount it.
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Post by jerryleecooper »

sorry for my previous message, I wasnt clear. What I wanted to say is, dont have your image mounted while you copy your bootloader on it. I don't know if it can cause problem, but probably yes. My theory was that linux doesnt let you write your bootloader while the image is still mounted, but... how do you copy your bootloader to your image?
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Post by meh »

I've tried that too.

I use dd if=./boot/boot of=floppy.img conv=notrunc to copy the bootloader.
Post Reply