redhat 挂NTFS分区

1. 首先,請先安裝需要的compiler:
# yum install gcc gcc-c++
or
# yum groupinstall "Development Tools"     //空間很大而且很懶(如我)的話,就直接用這個把所有可能會用到的工具一次全裝完算了!XDDD
2. 請到https://www.tuxera.com/community/open-source-ntfs-3g/ 下載最新版的:ntfs-3g_ntfsprogs-2017.3.23
# tar -zxvf ntfs-3g.tar.gz                    //到下載的目錄中先解壓縮。
# cd ntfs-3g_ntfsprogs-2017.3.23     //到解開的目錄下進行安裝。如果上面的compiler沒有安裝,這裡會失敗。如果不確定有沒有安裝,也可以先跑這個看看有缺甚麼,再補裝就行了。
# ./configure
............................
config.status: creating src/ntfs-3g.probe.8
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory
You can type now 'make' to build ntfs-3g.
# make
...................
make[2]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23/src'
make[2]: Entering directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
make[2]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
make[1]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
# make install
............................
ln -s -f ntfs-3g.8 "/usr/local/share/man/man8/mount.lowntfs-3g.8"
make[2]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23/src'
make[1]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23/src'
make[1]: Entering directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
make[2]: Entering directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
make[2]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/local/share/doc/ntfs-3g'
 /usr/bin/install -c -m 644 README '/usr/local/share/doc/ntfs-3g'
make[2]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
make[1]: Leaving directory `/root/下載/ntfs-3g_ntfsprogs-2017.3.23'
↑ ntfs-3g安裝完成!
3. 建立掛載點:
# mkdir /mnt/usbhd
4. 檢查外掛的HD的dev名稱:
# fdisk -l
Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1      243202  1953512032+   7  HPFS/NTFS
↑ 最後這個就是我們要掛的hd。
5. 把ntfs格式的usb HD掛上。
# mount -t ntfs-3g /dev/sdc1 /mnt/usbhd/
# cd /mnt/usbhd/
# ls                //如果可以看到HD上的東西,表示掛載成功。
6. 建好現成的格式設定,以後掛載比較方便:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值