問題:
# mount –t ntfs /dev/sdc1 /mnt/upan
mount: unknown filesystem type ‘ntfs’
這是由於CentOS release 5.6(Final)上無法識別NTFS格式的分區。
解決辦法:
通過使用 ntfs-3g 來解決。
· wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2015.3.14.tgz
· tarxzf ntfs-3g_ntfsprogs-2015.3.14.tgz
· cd ntfs-3g_ntfsprogs-2015.3.14
· ./configure &&make &&makeinstall
掛載U盤 mount 步驟:
1.fdisk -l # 查得硬盤設備號爲:/dev/sdc1 ntfs格式
2.ntfs-3g /dev/sdc1 /mnt/upan #用ntfs-3g 直接將硬盤掛到/mnt/upan 點上讀寫.
問題:
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
解決:
#moun
/dev/sda2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/sda5 on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdc1 on /mnt/upan type fuseblk(rw,allow_other,blksize=4096)
[root@bogon /]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 13G 5.2G 6.8G 44% /
tmpfs 118M 0 118M 0% /dev/shm
/dev/sda1 199M 55M 131M 30% /boot
/dev/sda5 11G 42M 9.7G 1% /home
/dev/sdc1 751G 351G 400G 47% /mnt/upan
哈哈,成功掛載
從Linux拷貝文件到掛載硬盤
卸載 硬盤
#umount /mnt/upan #卸載掛到/mnt/upan點的硬盤