Menu

File systems support

Now ModulOS has support for file systems, floppy controller and ext2 file system used on Linux.

They're simple implementations that don't handle all errors, but they work.

I'm making available mkext2boot program too, that makes a file with ext2 file system boot ModulOS. Now it's possible to create a floppy disk to boot ModulOS or, what I do, create a file that Bochs (http://bochs.sourceforge.net) uses as floppy disk.

The steps that I use on Linux to create a file that Bochs uses are:

* Create a file of 1.44 MB: dd if=/dev/zero of=fd0.img bs=1024 count=1440

* Attch it to /dev/loop0: losetup /dev/loop0 fd0.img

* Create an ext2 file system in /dev/loop0: mke2fs /dev/loop0

* Mount /dev/loop0 on a dir: mount -t ext2 /dev/loop0 disk

* Copy start file created with startfile to dir: cp modulos.bin disk

* Create test.txt file in dir: echo 'String from file.' > disk/test.txt

* Get modulos.bin inode: ls -i disk

* Unmount /dev/loop0: umount /dev/loop0

* Detach /dev/loop0: losetup -d /dev/loop0

* Run mkext2boot: mkext2boot fd0.img inode_num_get_with_ls_-i

Now just run Bochs that ModulOS starts and shows first 50 bytes from test.txt.

I'm making available InputDev, InterManager and UserModManager interfaces that are needed to implement support for keyboards, mice, user interfaces and run programs.

Soon ModulOS will run programs!

Posted by Luiz Henrique Shigunov 2001-07-01

Log in to post a comment.