Problems faced in HTTPFS

I am following the exaple given at http://httpfs.sourceforge.net/ and code used is downloaded from http://sourceforge.net/project/showfiles.php?group_id=171260

What I am trying to do is

  1. mount the dsl.iso which is on webserver on directory called test (this works fine)
  2. Check the content of directory. It should contain dsl.iso (even it works fine)
  3. mount this test/dsl.iso somewhere else (this does not work)

problem

I am able to mount but the problem I am facing is that file is mounted as nosuid,nodev, which does not allow further mounting.

$ $ ./httpfs http://www.alien.doesntexist.org/dsl.iso ./test
$ mount
httpfs on /home/pravin/Etherboot/v2/httpfs/test type fuse.httpfs (rw,nosuid,nodev,user=pravin)

$ sudo losetup /dev/loop0 ./test/dsl.iso 
./test/dsl.iso: Permission denied

$ sudo mount -o loop,ro ./test/dsl.iso mpoint/
./test/dsl.iso: Permission denied

$ sudo losetup -f
/dev/loop0

$ sudo losetup -r /dev/loop0 ./test/dsl.iso
./test/dsl.iso: Permission denied
$ sudo losetup -f
/dev/loop0
$ lsmod | grep loop
loop                   23052  0 

Solution

Problem was that ./httpfs was not executed as root because of which there were problems Finally, following solution worked

$ sudo su -

# ./httpfs http://www.alien.doesntexist.org/dsl.iso ./test

# mount
httpfs on /home/pravin/Etherboot/v2/httpfs/test type fuse.httpfs (rw,nosuid,nodev)

# losetup -r /dev/loop0 ./test/dsl.iso

# mount -t iso9660 /dev/loop0 ./mpoint/

# mount
httpfs on /home/pravin/Etherboot/v2/httpfs/test type fuse.httpfs (rw,nosuid,nodev)
/dev/loop0 on /home/pravin/Etherboot/v2/httpfs/mpoint type iso9660 (ro)

Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:2009:pravin:journal:httpfsprobs (generated for current page)