Anuskuss
Posts: 3
Joined: Sun Dec 06, 2015 5:17 pm

Correctly mount hard drive

Sun Dec 06, 2015 5:28 pm

I recently got a RPi2 and was trying to create a NFS. I installed ntfs-3g and then started to format the hdd with fdisk (had a hidden partition named Hidden NTFS WinRE) and it all went successfully.

Now fsdisk shows a /dev/sda1 with a start of 2048 and an end of 2930277167 (1.4TB). But when I run df -Bm, it shows that only 5902MB (42%) are available. That exactly the available space on my SD card.

What should I do to use the full space of my hdd? I mounted it with

Code: Select all

sudo mount -t auto /dev/sda1 /media/hdd1
and created the line

Code: Select all

/dev/sda1 /media/hdd1 auto noatime 0 0
in /etc/fstab.

I don't know what I'm doing wrong. I can't put large files on my hdd via samba because it tells me that I don't have enough empty space.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Correctly mount hard drive

Mon Dec 07, 2015 8:42 pm

There is no such thing as a "hidden partition" because all space is accounted for (have a look see in GParted) so just use a normal ext4, and use LUKS if you want some security.
to mount your non-indexed partition use;

Code: Select all

-o offset=XXXX
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Troubleshooting”