歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> centos 掛載U盤移動硬盤

centos 掛載U盤移動硬盤

日期:2017/3/3 12:39:48   编辑:Linux技術
mount –t ntfs /dev/sdb1 /mnt/usb
mount: unknown filesystem type ‘ntfs’
這是由於CentOS release 5.3(Final)上無法識別NTFS格式的分區。
因為要拷貝單文件大於4GB的文件 就在WINDOWS 搞成NTFS格式 插入到服務器上
打開ntfs-3g的下載點http://www.tuxera.com/community/ntfs-3g-download/ ,將最新穩定(當前最新版本為ntfs-3g-2010.8.8.tgz)下載到CentOS,執行以下命令安裝:
1) 編譯安裝 ntfs-3g:
# ./configure
# make
# make
install
(或 sudo make install)
2) 查看USB設備點
# fdisk
-l

Disk /dev/sda: 154.7 GB, 154750418432 bytes
255 heads, 63 sectors/track, 18814 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/sda1 * 1 13 104391 83
Linux
/dev/sda2 14 18814 151019032+ 8e
Linux LVM
Disk /dev/sdb: 500.1 GB, 500107861504 bytes
255 heads, 62 sectors/track, 61781 cylinders
Units = cylinders of 15810 * 512 = 8094720 bytes
Device Boot Start End Blocks Id
System
/dev/sdb1 1 61782 488384000+ 7
HPFS/NTFS
3) 掛載NTFS分區
# mount
–t ntfs-3g /dev/sdb1 /mnt/usb
4) 卸載NTFS分區
# umount
–l /mnt/usb
Copyright © Linux教程網 All Rights Reserved