Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
soc:2009:pravin:journal:httpfsprobs [2009/06/01 19:17]
less1 created
soc:2009:pravin:journal:httpfsprobs [2009/06/01 19:58] (current)
less1
Line 5: Line 5:
  
 What I am trying to do is  What I am trying to do is 
-  - mount the dsl.iso which is on webserver on directory called test (this works fine) +  - mount the //dsl.iso// which is on webserver on directory called ​//test// (this works fine) 
-  - Check the content of directory. It should contain dsl.iso (even it works fine) +  - Check the content of directory. It should contain ​//dsl.iso// (even it works fine) 
-  - mount this test/​dsl.iso somewhere else (this does not work)+  - mount this //test/​dsl.iso// somewhere else (this does not work)
  
 === problem === === 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. 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.
 <​code>​ <​code>​
-$ ./httpfs http://127.0.0.1/dsl.iso ./test+$ ./httpfs http://www.alien.doesntexist.org/dsl.iso ./test
 $ mount $ mount
 httpfs on /​home/​pravin/​Etherboot/​v2/​httpfs/​test type fuse.httpfs (rw,​nosuid,​nodev,​user=pravin) httpfs on /​home/​pravin/​Etherboot/​v2/​httpfs/​test type fuse.httpfs (rw,​nosuid,​nodev,​user=pravin)
Line 24: Line 24:
  
 </​code>​ </​code>​
 +
 +<​code>​
 +$ sudo losetup -f
 +/dev/loop0
 +
 +$ sudo losetup -r /dev/loop0 ./​test/​dsl.iso
 +./​test/​dsl.iso:​ Permission denied
 +
 +</​code>​
 +
 +<​code>​
 +$ sudo losetup -f
 +/dev/loop0
 +$ lsmod | grep loop
 +loop                   ​23052 ​ 0 
 +</​code>​
 +
 +=== Solution ===
 +Problem was that //​./​httpfs//​ was not executed as //root// because of which there were problems
 +Finally, following solution worked
 +
 +<​code>​
 +$ 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)
 +
 +</​code>​
 +

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