centos7掛載ntfs格式行動硬碟/u盤
背景:
利用伺服器連夜下載了點視訊:很大,50G。考慮過FTP下載到本地,但是千兆網路理論上最高速度也就125MB/s,實際情況也就100+的速度。
伺服器本身disk是SSD,行動硬碟也是SSD,而usb3.0介面理論最大速度是5Gb/s(usb2.0是480Mb/s),不利用下太可惜了。
安裝:
配置epel源。
yum install -y epel-release*
安裝ntfs驅動
yum install -y ntfs-3g
掛載:
把行動硬碟插到伺服器上,伺服器自動識別出新的disk(例如我這裡是/dev/sdd)
mount -t ntfs-3g /dev/sdd1 /tmp
OK搞定~
P.S. 這裡記錄下一個小曲折:
我這裡第一次插入行動硬碟時候,伺服器沒識別出來。查log報如下錯誤:
Apr 27 09:50:28 node-50 kernel: usb 1-11: new full-speed USB device number 6 using xhci_hcd
Apr 27 09:50:28 node-50 kernel: usb 1-11: device descriptor read/64, error -71
Apr 27 09:50:29 node-50 kernel: usb 1-11: device descriptor read/64, error -71
Apr 27 09:50:29 node-50 kernel: usb 1-11: new full-speed USB device number 7 using xhci_hcd
Apr 27 09:50:29 node-50 kernel: usb 1-11: device descriptor read/64, error -71
Apr 27 09:50:29 node-50 kernel: usb 1-11: device descriptor read/64, error -71
Apr 27 09:50:30 node-50 kernel: usb 1-11: new full-speed USB device number 8 using xhci_hcd
Apr 27 09:50:30 node-50 kernel: usb 1-11: Device not responding to setup address.
Apr 27 09:50:30 node-50 kernel: usb 1-11: Device not responding to setup address.
Apr 27 09:50:30 node-50 kernel: usb 1-11: device not accepting address 8, error -71
Apr 27 09:50:30 node-50 kernel: usb 1-11: new full-speed USB device number 9 using xhci_hcd
Apr 27 09:50:30 node-50 kernel: usb 1-11: Device not responding to setup address.
Apr 27 09:50:30 node-50 kernel: usb 1-11: Device not responding to setup address.
Apr 27 09:50:31 node-50 kernel: usb 1-11: device not accepting address 9, error -71
Apr 27 09:50:31 node-50 kernel: usb usb1-port11: unable to enumerate USB device
google半天也沒啥有價值的workaround。後來有人說:重新插拔下就行了。
https://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error
原文截圖如下:
按照原文說法,我也插拔了下,果然識別出來了,汗。。。