jwilliams991
Posts: 31
Joined: Thu Jul 12, 2012 5:02 pm
Location: Norwich
Contact: Website Yahoo Messenger

Accessing a USB Drive through FTP?

Sun Mar 03, 2013 10:30 am

I have set up an FTP server on my raspberry pi and want to be able to access the contents of a USB drive through it. How could I do this?
Jake Williams

bobray
Posts: 3
Joined: Sun Mar 03, 2013 11:00 am

Re: Accessing a USB Drive through FTP?

Sun Mar 03, 2013 11:16 am

You will have to mount the usb.
I found some pretty good tutorials
for mounting and setting up a file
server using samba:
Mounting: http://elinux.org/RPi_Adding_USB_Drives
Smb server: http://elinux.org/R-Pi_NAS

Good luck

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Accessing a USB Drive through FTP?

Sat Mar 09, 2013 2:16 pm

Wheezy Raspbian appears to have a SFTP (Secure FTP, normally port 22 as opposed to 21 for FTP) server running "out of the box". Having ensured the USB (flash) is auto-mounted at boot-time it's directory structure should be found below /media . I run a local MoinMoin wiki on a USB stick plugged into my first (model B1) Pi and use SFTP to (via a FileZilla client on my netbook) to transfer an export of this to my external webpages. BTW I "have to" also recommend the "mounting link" - I contributed to it :) . Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Networking and servers”