1由于文件过大不能移动到U盘 查看U盘的 文件系统类型 是否为NTFS 类型 ,若不是 需要重新选择该类型 然后格式化 才可以把过大的文件存入U盘
2Centos系统自动挂载不了UTFS文件系统类型的 所以需要手动挂载和卸载
问题:
# mount –t ntfs /dev/sdb1 /mnt/usb
mount: unknown filesystem type ‘ntfs’
这是由于CentOS release 5.3(Final)上无法识别NTFS格式的分区。
解决办法:
通过使用 ntfs-3g 来解决。
打开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
#umount /dev/sda1
umount: /mnt/usb: device is busy
查找占用目录进程:
#lsof |grep /mnt/usb
bash 1971 root cwd DIR 8,1 16384 1 /mnt/usb/ bash 2342 root 3r DIR 8,1 16384 1 /mnt/usb/
杀掉进程:
#kill -9 1971
#kill -9 2342
卸载:
#umount /mnt/usb