2

Is there a way to mount an HTTP resource in Raspbian (default Raspberry Pi OS)? I have an HTTP server hosting music, and I would like to be able to have read-only filesystem access to that music on my Pi. It's a simple HTTP directory, with directory listing enabled (aka, browse to http://192.168.1.60/music/ will give you a list of contents)

Also, I would prefer an answer that doesn't involve connecting my Pi to the internet, but instead gives a package/binary executable/something else that I can download offsite and bring there on a thumb drive.

3
  • What operating system is the HTTP host? Commented Nov 6, 2015 at 20:19
  • 1
    I haven't used it, but httpfs may be a possibility... Commented Nov 6, 2015 at 20:34
  • httpfs can only mount a single resource, not a directory. Commented Nov 6, 2015 at 23:48

1 Answer 1

2

I have a raspberry pi too and it works great for this type of thing, but I don't think so over http.

The best way to do this is to export a network share from the server.

  • If the server runs Unix or Linux, then export as NFS (the unix native "Network File System").

  • If the server runs Windows, then just share a drive readonly on the network.

With either of the above solutions, you can then mount the remote directory directly to your raspberry pi Raspian system.

9
  • OK, so how would I mount the SMB share from Windows? Commented Nov 6, 2015 at 23:48
  • 1
    And I'd rather not have to connect the Pi itself to the internet. Commented Nov 6, 2015 at 23:48
  • First you make an empty directory where it will show up, then use the Linux mount command to make it show up under your empty directory. Try this: sudo mkdir /mnt/windowsharename; sudo mount -t cifs -o guest "//windowshost/sharename" /mnt/windowsharename Commented Nov 6, 2015 at 23:59
  • Just curious, why don't you want to connect the Pi to the internet? Commented Nov 7, 2015 at 0:01
  • I've got parents. It's a big hassle to get temporary internet. Commented Nov 7, 2015 at 1:16

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.