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.
You specified "count = 1" which only copies one block(the first) and "bs = 512" means each block is 512 bytes. So you end up writing only the bootloader to your /dev/sdb and not your kernel.
Even the smallest person could change the course of the future- Lord Of The Rings.
In the end all that matters is what you have done- Alexander.
Even after a decade oh god those still gives me the shivers.
Didn't work, I've tried everything else and can't seem to get anywhere
Your command will write your linked file (kernel.bin) to your second hard drive (sdb) in the Master Boot Record (MBR). When you say it didn't work, the error message would help us help you. I would bet you do not have 2 hard disks.
eryjus wrote:Your command will write your linked file (kernel.bin) to your second hard drive (sdb) in the Master Boot Record (MBR). When you say it didn't work, the error message would help us help you. I would bet you do not have 2 hard disks.
Unfortunately, modern Linux likes to pretend that lots of devices are SCSI, including everything that isn't SCSI (e.g. SATA, USB flash, USB external hard drives, etc). This is done to confuse the unsuspecting user, and to increase the chance of the same device name refers to completely different devices at different times.
kr651129 wrote:So I'm new to this and I'm trying to do the Basic C kernel tutorial. I executed the following
Why would anyone want to link a kernel with a boot loader in the first place?
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Have you read (and done) everything your tutorial reference has to say on GRUB? The way the compilation instructions are listed I have to assume you haven't done anything on the bootloader side (that besides the fact that you have a pretty bad tutorial for recommending a.out and no GCC Cross-Compiler).
"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 ]