WHAT'S NEW?
Loading...

Install ntfs-3g on Centos 7 - Raspberry 2

Plug in your USB HDD / Drive to Raspberry Pi, follow the simple steps in the order mentioned below to have your drive mounted, if you are using a NTFS formatted drive

Visit the link to find arm 7 rpm

http://www.rpmfind.net/linux/rpm2html/search.php?query=ntfs-3g

wget http://www.rpmfind.net/linux/fedora/linux/releases/27/Everything/armhfp/os/Packages/n/ntfs-3g-2017.3.23-3.fc27.armv7hl.rpm

yum localinstall ntfs-3g-2017.3.23-3.fc27.armv7hl.rpm


More info:

https://my.oschina.net/bysu/blog/1554410

Mount The NTFS Disk

We can now successfully perform the mount without any errors.
[root@centos7 ~]# mkdir /windows
[root@centos7 ~]# mount /dev/sdb1 /windows/

[root@centos7 ~]# blkid /dev/sdb1
/dev/sdb1: LABEL="NTFS" UUID="CA4A1FD94A1FC0DD" TYPE="ntfs"
We can confirm that the NTFS disk is now seen as mounted by the operating system.
[root@localhost ~]# df -h /windows/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1      1021M   11M 1011M   2% /windows
At this point you should be able to read and write data on the mounted NTFS disk.

Automatically Mount NTFS

We can create an entry in the /etc/fstab file so that our NTFS disk will automatically mount on system boot. Below is an example of the entry that I have placed into my fstab file. This will mount the disk to the /ntfs directory.
/dev/sdb1       /windows        ntfs-3g defaults        0 0
Once this configuration has been added, the NTFS disk should mount automatically on system boot. 

0 comments:

Post a Comment