PDA

Bekijk de volledige versie : Can someone compile loop.o



xection
22-02-2005, 04:46
I want to mount ext3 file system from a single file (something like this (http://puzzle.dl.sourceforge.net/sourceforge/souptonuts/README_Virtual_FS.html)). I found that full busybox has losetup, so the only thing I need is loop.o. I don't have a linux box, so can somebody please compile it for me (and others :D )? Thanx.

I need this because I have a flash drive and don't want to format it with some linux file system, but want to run thttpd with php from it.

Here's how I planed to do it:

dd if=/dev/zero of=/tmp/harddisk/disk-image count=10000
mke2fs -q /tmp/harddisk/disk-image
insmod loop.o
./busybox losetup /dev/loop0 /tmp/harddisk/disk-image
mkdir /tmp/fs
mount -o loop=/dev/loop0 /tmp/harddisk/disk-image /tmp/fs

Oleg
22-02-2005, 20:39
Grab it here (http://wl500g.dyndns.org/bin/loop.o)
You do not need losetup, it should work this way:


mount -oloop /tmp/harddisk/disk-image /tmp/fs