Page 1 of 1

mbrfs - will it be useful for os developers

Posted: Fri Dec 12, 2008 5:24 pm
by uzytkownik
I tried to work with the disk images and what I found less UF was the necessity of:
- Setting loopback device with magic parameters
- Mounting device
- Coping
- Unmounting
- Release of lookback device
All of those steps needed to be run from root. I thought that since I have access to all files there is no need to have 0 rights. However I couldn't find anything so I write my own.

I implemented mbrfs as a FUSE program. The usage is quite 'standard':

Code: Select all

% mbrfs -o image=your_disk_image.img dir_to_mount
I don't know will you find it useful or not. However of you do please test it (plese note that it is on earlt stage of development). The code is open source (GPLv3).

Github repository

PS. I cannot find any practical application except os dev so I posted it here. I'm sorry if you considered it as spam.

Re: mbrfs - will it be useful for os developers

Posted: Mon Dec 15, 2008 5:35 am
by Khaoticmind
Haven't tested it but good work!
I was looking for something like this for the same problems you were having :)

But, I've found out that mtools can work with disk images as well. Thats good enough for me, since i'm working with FAT12 :)
Now i'm doing

Code: Select all

mcopy -i floppy.img mykern.bin ::/
The last part is important, the absense of any drive letter, just another column.

Cheers,
KM

Re: mbrfs - will it be useful for os developers

Posted: Mon Dec 15, 2008 12:21 pm
by uzytkownik
Probably. But I wanted to use ext2. There is ext2fuse.

There is a chance that I'll add ext2/fat support.