Rasyk
Posts: 7
Joined: Wed Jul 24, 2013 7:31 am

FTP help request

Thu Aug 22, 2013 6:57 am

I am having some trouble setting up an FTP server on my pi. I managed to get the server running. However; I am trying to hook up my and external hard drive.

The server is going through the home directory (/home/FTP/*)
I am trying to mount the hard drive to a folder in that directory (/home/FTP/HD1/*)
I am using the command "mount /dev/sda1 /home/FTP/HD1" and the command retrurns no errors.
When I try to put files in that folder the FTP server claims there is no space left in that location. Does anyone have any ideas?


I assume the output of fdisk -l will speed things up so I will print it below.

Code: Select all

Disk /dev/mmcblk0: 15.9 GB, 15912140800 bytes
4 heads, 16 sectors/track, 485600 cylinders, total 31078400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014d34

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192      122879       57344    c  W95 FAT32 (LBA)
/dev/mmcblk0p2          122880     3788799     1832960   83  Linux

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa0c7b3cd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  1953521663   976759808    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x152b45e3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  1953521663   976759808    7  HPFS/NTFS/exFAT

Rasyk
Posts: 7
Joined: Wed Jul 24, 2013 7:31 am

Re: FTP help request

Thu Aug 22, 2013 6:59 am

I forgot to mention. Yes there are suppose to be two drives. My plan is to mount both of them, but I figured I would start with just one.

smithg400
Posts: 148
Joined: Sat Dec 24, 2011 3:37 pm

Re: FTP help request

Thu Aug 22, 2013 7:16 am

Could you post the output from just typing

Code: Select all

mount
please after mounting the filesystem. It helps to see how the drive is mounted.

itimpi
Posts: 1088
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: FTP help request

Thu Aug 22, 2013 7:30 am

It looks like that is a NTFS format drive? If so then your problem is probably that the default NTFS driver does not support write access. The thing to do is to do a

Code: Select all

sudo apt-get install ntfs-3g
to get a driver that supports write access (and is required for NTFS drives larger than 2TB).

You then need to use the

Code: Select all

-t ntfs-3g
option to the mount command to use this driver

Angelus88
Posts: 442
Joined: Mon May 13, 2013 9:25 am
Location: Ivrea, TO (Italy)

Re: FTP help request

Thu Aug 22, 2013 2:58 pm

Well, actually it could be a permission issue.
Probably the hard disk is mounted with root rights or just for roots and if you login through FTP with a normal user, you can't write there.
Anyway, why do you mount it manually?
It should mount automatically and you should find it in /media or /mnt.

Return to “Beginners”