File System Problems with Ubuntu

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
Hoozim
Member
Member
Posts: 53
Joined: Fri Jul 23, 2010 8:26 am

File System Problems with Ubuntu

Post by Hoozim »

I was trying to get my OS to host from Ubuntu. I was able to get my kernel to compile on my cross compiler. When I tried to copy my two-stage boot loader onto the disk (a 1gB USB MSD), I ran into problems. I did an empty format of the device under Ubuntu's disk utility. I then copied my 1st stage boot loader onto it. It executes fine under VirtualBox (using a floppy image created with 'dd'). When I add the second stage as a regular file, complications arise. The first time the file is copied onto the disk, VirtualBox is able to load and run it perfectly with my boot loader. If I try to copy it again (another build), my boot loader is able to find the file and parse it into memory. The problem being that nothing gets copied into memory. The root directory and FAT tables appear correct. I have only a limited knowledge of the Linux environment. This system works perfectly under Windows. If anyone knows what is happening, I would appreciate enlightenment.

Hoozim
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:

Re: File System Problems with Ubuntu

Post by Combuster »

The enlightenment you need is that the problem is not linux, but rather it's user. :wink:

For the rest, bochs+debugger.
"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 ]
Post Reply