`
sillycat
  • 浏览: 2539139 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Play Raspberry Pi(9)NTFS-3G

 
阅读更多
Play Raspberry Pi(9)NTFS-3G

Check the version on my Local machine
> ntfs-3g --version
ntfs-3g 2014.2.15AR.2 integrated FUSE 28

Install the latest version and try
> wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2016.2.22.tgz

configure, make and make install on the server

> ntfs-3g --version
ntfs-3g 2016.2.22 integrated FUSE 27

Reboot the server and try to re-mount the driver again with this latest tool.
> sudo mount -t ntfs-3g /dev/sda1 /mnt/driver1

Auto mount during reboot
> sudo vi /etc/fstab

/dev/sda1 /mnt/driver1 ntfs-3g defaults 0 0

It works. Now I will check if Cassandra and Docker will work with new NTFS-3g.

For Cassandra Docker Config Improvement
Soft link the data directory to other location.

> cat start.sh
#!/bin/sh -ex

#prepare config
INTERNAL_IP="$(hostname --ip-address)"

sed -ri 's/(listen_address:).*/\1 "'"$INTERNAL_IP"'"/' "/tool/apache-cassandra-3.7/conf/cassandra.yaml"

#start the cassandra
/tool/apache-cassandra-3.7/bin/cassandra -Dcassandra.config=file:///tool/apache-cassandra-3.7/conf/cassandra.yaml -R -f
tail -f /tool/apache-cassandra-3.7/logs/debug.log

It works pretty well.

References:
http://www.tuxera.com/community/open-source-ntfs-3g/

http://askubuntu.com/questions/47700/fix-corrupt-ntfs-partition-without-windows
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics