Play Raspberry Pi(9)NTFS-3G

本文介绍如何在本地机器上更新NTFS-3G至最新版本,并使用最新版工具重新挂载驱动器。同时,文章还提供了配置Cassandra与Docker的步骤,确保它们能够正常运行在新的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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值