u盘挂载

 
1.接上u盘
2.fdisk  -l 查看u盘的设备文件
[root@localhost ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000585a5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       13068   104857600   83  Linux
/dev/sda3           13068       13198     1048576   82  Linux swap / Solaris

Disk /dev/sdb: 16.0 GB, 15998099456 bytes
255 heads, 63 sectors/track, 1944 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x66920727

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1945    15622960+   7  HPFS/NTFS
==============
3.下载ntfs-3g软件
[root@localhost ~]# lftp 192.168.0.250
lftp 192.168.0.250:~> cd software/
lftp 192.168.0.250:/software> get ntfs-3g_ntfsprogs-2011.4.12.tgz 
1126704 bytes transferred                                           
lftp 192.168.0.250:/software> quit
==========
[root@localhost ~]# tar xf ntfs-3g_ntfsprogs-2011.4.12.tgz 
[root@localhost ~]# cd ntfs-3g_ntfsprogs-2011.4.12
[root@localhost ntfs-3g_ntfsprogs-2011.4.12]# ./configure
make
make install
===========
mkdir /upan
ntfs-3g /dev/sdb1 /upan
==========
cd /upan
可以使用了
===========
http://www.jb51.net/LINUXjishu/64000.html



安全退出

1.关闭所有打开的文件
2.退出/upan目录
3.umount /upan卸载u盘
--prefix  指定安装路径


你可能感兴趣的:(linux,识别ntfs格式)