【春节献礼】Ubuntu 12.10 安全写入NTFS,远离天杀windows chkdisk

  首先我向各位Ubuntu fans道歉

  自从使用Fedora15 以后 就一直黑大Ubuntu

  原因就是这个:http://blog.csdn.net/luozhuang/article/details/7345725


  当时有个同事一直用大Ubuntu。有一天他的QQ 签名变成天杀windows 磁盘检查工具,把我的文件全毁了。。。。

  从那时候开始我就就一直黑大Ubuntu。

  现在在用Centos

 

  解决方法莫过于把NTFS 换成EXT4

  这个方法就我都没法完全做到。毕竟现在玩双系统的人很多。

 

  经过这几天很长时间的研究。

  决定不解决这个鸟问题就不过年。

  我个人认为是Ubuntu 的NTFS-3G有问题,需要想办法替换。

  今天经过自己思考尝试解决这个问题。


  思考: apt-ge remove NTFS-3g

  然后自己重新编译一个替换掉。

luozhuang@luozhuang-virtual-machine:~/ntfs-3g_ntfsprogs-2013.1.13$ sudo apt-get remove ntfs-3g
[sudo] password for luozhuang: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  ntfs-3g
升级了 0 个软件包,新安装了 0 个软件包, 要卸载 1 个软件包,有 256 个软件包未被升级。
解压缩后将会空出 1,546 kB 的空间。
您希望继续执行吗?[Y/n] y
(正在读取数据库 ... 系统当前共安装有 153882 个文件和目录。)
正在卸载 ntfs-3g ...
正在处理用于 initramfs-tools 的触发器...
update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic
正在处理用于 man-db 的触发器...
正在处理用于 libc-bin 的触发器...
ldconfig deferred processing now taking place


  结果:失败,NTFS区只读。


  今天研究方法就是 偷梁换柱

  就是用我自己编译的文件替换原来的文件。

 

  Let's go

  方法很简单,找最新NTFS-3g 源代码 http://down.51cto.com/data/680409

  然后解压缩进行编译


 说明:因为机器系统不尽相同,请大家根据实际情况处理。

编译需要

$sudo apt-get install build-essential


  解压缩我就不说了

  tar xvzf  ntfs-3g_ntfsprogs-2013.1.13.tgz

  cd ntfs-3g_ntfsprogs-2013.1.13

  然后这样编译

 

    ./configure --with-fuse=internal
    make
    sudo make install
     

  最后需要自己偷梁换柱

  这个可以找deb包分析 so就是动态库位置和文件名,也可以用文件查找

  我机器上是

  位置:

  2013自己编译so位置:'/lib/libntfs-3g.so.84'

  Ubuntu自带so 位置:'/lib/i386-linux-gnu/libntfs-3g.so.835'

   自己看看就知道,这几个其实是一个替身(类似windows 的快捷方式)

   简单 咱们替换快捷方式就OK 了

   先把原来Ubuntu自带的连本体一起干掉: 

luozhuang@luozhuang-virtual-machine:/$ cd /lib/i386-linux-gnu
luozhuang@luozhuang-virtual-machine:/lib/i386-linux-gnu$ sudo rm libntfs-3g.so.835.0.0
luozhuang@luozhuang-virtual-machine:/lib/i386-linux-gnu$ sudo rm libntfs-3g.so.835
  
   偷梁换柱

 

luozhuang@luozhuang-virtual-machine ~ $ sudo cp '/lib/libntfs-3g.so.84'  '/lib/i386-linux-gnu/libntfs-3g.so.835'

    OK 了。

测试系统:Ubuntu 12.10/ mint 14

测试by 大师♂罗莊


附:编译安装结果

luozhuang@luozhuang-virtual-machine:~/ntfs-3g_ntfsprogs-2013.1.13$ ./configure --with-fuse=internal
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for sed... /bin/sed
checking for ldconfig... /sbin/ldconfig
checking Windows OS... no
checking fuse compatibility... internal
checking for pthread_create in -lpthread... yes
checking Solaris OS... no
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
configure: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library.
checking for ANSI C header files... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/disk.h usability... no
checking sys/disk.h presence... no
checking for sys/disk.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking linux/major.h usability... yes
checking linux/major.h presence... yes
checking for linux/major.h... yes
checking linux/fd.h usability... yes
checking linux/fd.h presence... yes
checking for linux/fd.h... yes
checking linux/hdreg.h usability... yes
checking linux/hdreg.h presence... yes
checking for linux/hdreg.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking for struct stat.st_atim... yes
checking for struct stat.st_atimespec... no
checking for struct stat.st_atimensec... no
checking for library containing getmntent... none required
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for working memcmp... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for utime.h... (cached) yes
checking whether utime accepts a null argument... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for basename... yes
checking for daemon... yes
checking for dup2... yes
checking for fdatasync... yes
checking for ffs... yes
checking for getopt_long... yes
checking for hasmntopt... yes
checking for mbsinit... yes
checking for memmove... yes
checking for memset... yes
checking for realpath... yes
checking for regcomp... yes
checking for setlocale... yes
checking for setxattr... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strnlen... yes
checking for strsep... yes
checking for strtol... yes
checking for strtoul... yes
checking for sysconf... yes
checking for utime... yes
checking for utimensat... yes
checking for gettimeofday... yes
checking for clock_gettime... no
checking for fork... yes
checking for memcpy... yes
checking for random... yes
checking for snprintf... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/fuse-lite/Makefile
config.status: creating include/ntfs-3g/Makefile
config.status: creating libfuse-lite/Makefile
config.status: creating libntfs-3g/Makefile
config.status: creating libntfs-3g/libntfs-3g.pc
config.status: creating libntfs-3g/libntfs-3g.script.so
config.status: creating ntfsprogs/Makefile
config.status: creating ntfsprogs/mkntfs.8
config.status: creating ntfsprogs/ntfscat.8
config.status: creating ntfsprogs/ntfsclone.8
config.status: creating ntfsprogs/ntfscluster.8
config.status: creating ntfsprogs/ntfscmp.8
config.status: creating ntfsprogs/ntfscp.8
config.status: creating ntfsprogs/ntfsfix.8
config.status: creating ntfsprogs/ntfsinfo.8
config.status: creating ntfsprogs/ntfslabel.8
config.status: creating ntfsprogs/ntfsls.8
config.status: creating ntfsprogs/ntfsprogs.8
config.status: creating ntfsprogs/ntfsresize.8
config.status: creating ntfsprogs/ntfsundelete.8
config.status: creating src/Makefile
config.status: creating src/ntfs-3g.8
config.status: creating src/ntfs-3g.probe.8
config.status: creating src/ntfs-3g.usermap.8
config.status: creating src/ntfs-3g.secaudit.8
config.status: creating config.h
config.status: executing depfiles commands
You can type now 'make' to build ntfs-3g.


luozhuang@luozhuang-virtual-machine ~/ntfs-3g_ntfsprogs-2013.1.13 $ sudo make install
Making install in include
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
Making install in ntfs-3g
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/ntfs-3g'
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/ntfs-3g'
make[3]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/include/ntfs-3g" || /bin/mkdir -p "/usr/local/include/ntfs-3g"
 /usr/bin/install -c -m 644 'acls.h' '/usr/local/include/ntfs-3g/acls.h'
 /usr/bin/install -c -m 644 'attrib.h' '/usr/local/include/ntfs-3g/attrib.h'
 /usr/bin/install -c -m 644 'attrlist.h' '/usr/local/include/ntfs-3g/attrlist.h'
 /usr/bin/install -c -m 644 'bitmap.h' '/usr/local/include/ntfs-3g/bitmap.h'
 /usr/bin/install -c -m 644 'bootsect.h' '/usr/local/include/ntfs-3g/bootsect.h'
 /usr/bin/install -c -m 644 'cache.h' '/usr/local/include/ntfs-3g/cache.h'
 /usr/bin/install -c -m 644 'collate.h' '/usr/local/include/ntfs-3g/collate.h'
 /usr/bin/install -c -m 644 'compat.h' '/usr/local/include/ntfs-3g/compat.h'
 /usr/bin/install -c -m 644 'compress.h' '/usr/local/include/ntfs-3g/compress.h'
 /usr/bin/install -c -m 644 'debug.h' '/usr/local/include/ntfs-3g/debug.h'
 /usr/bin/install -c -m 644 'device.h' '/usr/local/include/ntfs-3g/device.h'
 /usr/bin/install -c -m 644 'device_io.h' '/usr/local/include/ntfs-3g/device_io.h'
 /usr/bin/install -c -m 644 'dir.h' '/usr/local/include/ntfs-3g/dir.h'
 /usr/bin/install -c -m 644 'efs.h' '/usr/local/include/ntfs-3g/efs.h'
 /usr/bin/install -c -m 644 'endians.h' '/usr/local/include/ntfs-3g/endians.h'
 /usr/bin/install -c -m 644 'index.h' '/usr/local/include/ntfs-3g/index.h'
 /usr/bin/install -c -m 644 'inode.h' '/usr/local/include/ntfs-3g/inode.h'
 /usr/bin/install -c -m 644 'layout.h' '/usr/local/include/ntfs-3g/layout.h'
 /usr/bin/install -c -m 644 'lcnalloc.h' '/usr/local/include/ntfs-3g/lcnalloc.h'
 /usr/bin/install -c -m 644 'logfile.h' '/usr/local/include/ntfs-3g/logfile.h'
 /usr/bin/install -c -m 644 'logging.h' '/usr/local/include/ntfs-3g/logging.h'
 /usr/bin/install -c -m 644 'mft.h' '/usr/local/include/ntfs-3g/mft.h'
 /usr/bin/install -c -m 644 'misc.h' '/usr/local/include/ntfs-3g/misc.h'
 /usr/bin/install -c -m 644 'mst.h' '/usr/local/include/ntfs-3g/mst.h'
 /usr/bin/install -c -m 644 'ntfstime.h' '/usr/local/include/ntfs-3g/ntfstime.h'
 /usr/bin/install -c -m 644 'object_id.h' '/usr/local/include/ntfs-3g/object_id.h'
 /usr/bin/install -c -m 644 'param.h' '/usr/local/include/ntfs-3g/param.h'
 /usr/bin/install -c -m 644 'realpath.h' '/usr/local/include/ntfs-3g/realpath.h'
 /usr/bin/install -c -m 644 'reparse.h' '/usr/local/include/ntfs-3g/reparse.h'
 /usr/bin/install -c -m 644 'runlist.h' '/usr/local/include/ntfs-3g/runlist.h'
 /usr/bin/install -c -m 644 'security.h' '/usr/local/include/ntfs-3g/security.h'
 /usr/bin/install -c -m 644 'support.h' '/usr/local/include/ntfs-3g/support.h'
 /usr/bin/install -c -m 644 'types.h' '/usr/local/include/ntfs-3g/types.h'
 /usr/bin/install -c -m 644 'unistr.h' '/usr/local/include/ntfs-3g/unistr.h'
 /usr/bin/install -c -m 644 'volume.h' '/usr/local/include/ntfs-3g/volume.h'
 /usr/bin/install -c -m 644 'xattrs.h' '/usr/local/include/ntfs-3g/xattrs.h'
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/ntfs-3g'
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/ntfs-3g'
Making install in fuse-lite
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/fuse-lite'
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/fuse-lite'
make[3]: 没有什么可以做的为 `install-exec-am'。
make[3]: 没有什么可以做的为 `install-data-am'。
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/fuse-lite'
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include/fuse-lite'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
make[3]: 没有什么可以做的为 `install-exec-am'。
make[3]: 没有什么可以做的为 `install-data-am'。
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/include'
Making install in libfuse-lite
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libfuse-lite'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libfuse-lite'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libfuse-lite'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libfuse-lite'
Making install in libntfs-3g
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c  'libntfs-3g.la' '/usr/local/lib/libntfs-3g.la'
/usr/bin/install -c .libs/libntfs-3g.so.84.0.0 /usr/local/lib/libntfs-3g.so.84.0.0
(cd /usr/local/lib && { ln -s -f libntfs-3g.so.84.0.0 libntfs-3g.so.84 || { rm -f libntfs-3g.so.84 && ln -s libntfs-3g.so.84.0.0 libntfs-3g.so.84; }; })
(cd /usr/local/lib && { ln -s -f libntfs-3g.so.84.0.0 libntfs-3g.so || { rm -f libntfs-3g.so && ln -s libntfs-3g.so.84.0.0 libntfs-3g.so; }; })
/usr/bin/install -c .libs/libntfs-3g.lai /usr/local/lib/libntfs-3g.la
/usr/bin/install -c .libs/libntfs-3g.a /usr/local/lib/libntfs-3g.a
chmod 644 /usr/local/lib/libntfs-3g.a
ranlib /usr/local/lib/libntfs-3g.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make  install-exec-hook
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
test -z "/lib" || /bin/mkdir -p "/lib"
if [ ! "/lib" -ef "/usr/local/lib" ]; then \
		/bin/mv -f "//usr/local/lib"/libntfs-3g.so* "//lib";  \
	fi
if [ ! "/lib" -ef "/usr/local/lib" ]; then \
		ln -s "/lib/libntfs-3g.so" "//usr/local/lib/libntfs-3g.so"; \
	fi
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
 /usr/bin/install -c -m 644 'libntfs-3g.pc' '/usr/local/lib/pkgconfig/libntfs-3g.pc'
test -z "/lib" || /bin/mkdir -p "/lib"
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/libntfs-3g'
Making install in ntfsprogs
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsfix' '/usr/local/bin/ntfsfix'
/usr/bin/install -c .libs/ntfsfix /usr/local/bin/ntfsfix
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsinfo' '/usr/local/bin/ntfsinfo'
/usr/bin/install -c .libs/ntfsinfo /usr/local/bin/ntfsinfo
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfscluster' '/usr/local/bin/ntfscluster'
/usr/bin/install -c .libs/ntfscluster /usr/local/bin/ntfscluster
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsls' '/usr/local/bin/ntfsls'
/usr/bin/install -c .libs/ntfsls /usr/local/bin/ntfsls
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfscat' '/usr/local/bin/ntfscat'
/usr/bin/install -c .libs/ntfscat /usr/local/bin/ntfscat
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfscmp' '/usr/local/bin/ntfscmp'
/usr/bin/install -c .libs/ntfscmp /usr/local/bin/ntfscmp
test -z "/usr/local/sbin" || /bin/mkdir -p "/usr/local/sbin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'mkntfs' '/usr/local/sbin/mkntfs'
/usr/bin/install -c .libs/mkntfs /usr/local/sbin/mkntfs
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfslabel' '/usr/local/sbin/ntfslabel'
/usr/bin/install -c .libs/ntfslabel /usr/local/sbin/ntfslabel
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsundelete' '/usr/local/sbin/ntfsundelete'
/usr/bin/install -c .libs/ntfsundelete /usr/local/sbin/ntfsundelete
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsresize' '/usr/local/sbin/ntfsresize'
/usr/bin/install -c .libs/ntfsresize /usr/local/sbin/ntfsresize
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfsclone' '/usr/local/sbin/ntfsclone'
/usr/bin/install -c .libs/ntfsclone /usr/local/sbin/ntfsclone
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfscp' '/usr/local/sbin/ntfscp'
/usr/bin/install -c .libs/ntfscp /usr/local/sbin/ntfscp
make  install-exec-hook
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
/usr/bin/install -c -d /sbin
ln -s -f /usr/local/sbin/mkntfs /sbin/mkfs.ntfs
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
test -z "/usr/local/share/man/man8" || /bin/mkdir -p "/usr/local/share/man/man8"
 /usr/bin/install -c -m 644 './mkntfs.8' '/usr/local/share/man/man8/mkntfs.8'
 /usr/bin/install -c -m 644 './ntfsfix.8' '/usr/local/share/man/man8/ntfsfix.8'
 /usr/bin/install -c -m 644 './ntfslabel.8' '/usr/local/share/man/man8/ntfslabel.8'
 /usr/bin/install -c -m 644 './ntfsinfo.8' '/usr/local/share/man/man8/ntfsinfo.8'
 /usr/bin/install -c -m 644 './ntfsundelete.8' '/usr/local/share/man/man8/ntfsundelete.8'
 /usr/bin/install -c -m 644 './ntfsresize.8' '/usr/local/share/man/man8/ntfsresize.8'
 /usr/bin/install -c -m 644 './ntfsprogs.8' '/usr/local/share/man/man8/ntfsprogs.8'
 /usr/bin/install -c -m 644 './ntfsls.8' '/usr/local/share/man/man8/ntfsls.8'
 /usr/bin/install -c -m 644 './ntfsclone.8' '/usr/local/share/man/man8/ntfsclone.8'
 /usr/bin/install -c -m 644 './ntfscluster.8' '/usr/local/share/man/man8/ntfscluster.8'
 /usr/bin/install -c -m 644 './ntfscat.8' '/usr/local/share/man/man8/ntfscat.8'
 /usr/bin/install -c -m 644 './ntfscp.8' '/usr/local/share/man/man8/ntfscp.8'
 /usr/bin/install -c -m 644 './ntfscmp.8' '/usr/local/share/man/man8/ntfscmp.8'
make  install-data-hook
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
/usr/bin/install -c -d /usr/local/share/man/man8
ln -s -f mkntfs.8 /usr/local/share/man/man8/mkfs.ntfs.8
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/ntfsprogs'
Making install in src
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfs-3g.probe' '/usr/local/bin/ntfs-3g.probe'
/usr/bin/install -c .libs/ntfs-3g.probe /usr/local/bin/ntfs-3g.probe
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfs-3g.usermap' '/usr/local/bin/ntfs-3g.usermap'
/usr/bin/install -c .libs/ntfs-3g.usermap /usr/local/bin/ntfs-3g.usermap
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfs-3g.secaudit' '/usr/local/bin/ntfs-3g.secaudit'
/usr/bin/install -c .libs/ntfs-3g.secaudit /usr/local/bin/ntfs-3g.secaudit
test -z "/bin" || /bin/mkdir -p "/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'ntfs-3g' '/bin/ntfs-3g'
/usr/bin/install -c .libs/ntfs-3g /bin/ntfs-3g
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'lowntfs-3g' '/bin/lowntfs-3g'
/usr/bin/install -c .libs/lowntfs-3g /bin/lowntfs-3g
/bin/mkdir -p "/sbin"
ln -s -f "/bin/ntfs-3g" "/sbin/mount.ntfs-3g"
ln -s -f "/bin/lowntfs-3g" "/sbin/mount.lowntfs-3g"
make  install-exec-hook
make[3]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
/sbin/ldconfig
make[3]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
test -z "/usr/local/share/man/man8" || /bin/mkdir -p "/usr/local/share/man/man8"
 /usr/bin/install -c -m 644 './ntfs-3g.8' '/usr/local/share/man/man8/ntfs-3g.8'
 /usr/bin/install -c -m 644 './ntfs-3g.probe.8' '/usr/local/share/man/man8/ntfs-3g.probe.8'
 /usr/bin/install -c -m 644 './ntfs-3g.usermap.8' '/usr/local/share/man/man8/ntfs-3g.usermap.8'
 /usr/bin/install -c -m 644 './ntfs-3g.secaudit.8' '/usr/local/share/man/man8/ntfs-3g.secaudit.8'
ln -s -f ntfs-3g.8 "/usr/local/share/man/man8/mount.ntfs-3g.8"
ln -s -f ntfs-3g.8 "/usr/local/share/man/man8/mount.lowntfs-3g.8"
test -z "/sbin" || /bin/mkdir -p "/sbin"
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13/src'
make[1]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13'
make[2]: 正在进入目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/share/doc/ntfs-3g" || /bin/mkdir -p "/usr/local/share/doc/ntfs-3g"
 /usr/bin/install -c -m 644 'README' '/usr/local/share/doc/ntfs-3g/README'
make[2]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13'
make[1]:正在离开目录 `/home/luozhuang/ntfs-3g_ntfsprogs-2013.1.13'


评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值