Install ntfs-support¶
Requirements¶
To install ntfs-support you will need the following:- a installed and supported operating system (e.g. Raspian Jessie)
- root-access
- a fast internet connection
Preliminary Note¶
This procedure is based on http://www.techjawab.com/2013/06/how-to-setup-mount-auto-mount-usb-hard.html
There is no native support for NTFS, so use this filesystem on your own risk.
do not use encrypted ntfs
Install¶
Install ntfs-3g
:
sudo apt-get install ntfs-3g
Usage¶
Plug in your USB HDD / Drive to Raspberry Pi
Log on pi using ssh terminal and execute:
ls -l /dev/disk/by-uuid/
You will see something like the following:
lrwxrwxrwx 1 root root 10 Jan 1 1970 0AC4D607C4D5F543 -> ../../sda1
Note down the value of the UUID --> 0AC4D607C4D5F543
Create a location for mount point:
sudo mkdir /media/NASDRIVE
Give proper permission:
sudo chmod 775 /media/NASDRIVE
Mount the USB Drive and then check if it is accessible at /media/NASDRIVE
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/NASDRIVE
Note:
ntfs-3g for NTFS Drives
vfat for FAT32 Drives
ext4 for ext4 Drives
Now, we will configure RasPi to do this after every reboot:
Take a backup of current fstab
sudo cp /etc/fstab /etc/fstab.backup
Add the mount information in the fstab file:
UUID=0AC4D607C4D5F543 /media/NASDRIVE ntfs-3g rw,defaults 0 0
Reboot
sudo reboot
Turn on the GUI mode by sudo raspi-config, only if required.
You should see your USB drive automatically mounted at /media/NASDRIVE
Von Jeremias Keihsler vor fast 8 Jahren aktualisiert · 1 Revisionen