{"id":1416,"date":"2020-05-26T18:54:09","date_gmt":"2020-05-26T10:54:09","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1416"},"modified":"2020-05-26T18:54:09","modified_gmt":"2020-05-26T10:54:09","slug":"centos-%e7%94%a8ntfs-3g%e6%8c%82%e8%bd%bdwindows-ntfs%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1416","title":{"rendered":"CentOS \u7528ntfs-3g\u6302\u8f7dWindows NTFS\u5206\u533a"},"content":{"rendered":"<p>CentOS 6\u4e0d\u652f\u6301NTFS\u79fb\u52a8\u786c\u76d8\u6302\u8f7d\uff0c\u8981\u60f3\u628aNTFS\u683c\u5f0f\u7684\u78c1\u76d8\u6302\u8f7d\u5230CentOS 6.3\u4e0b\u9762\u9700\u8981\u5b89\u88c5\u7b2c\u4e09\u65b9\u7684\u63d2\u4ef6ntfs-3g\u3002<br \/>\n1\u3001\u5b89\u88c5ntfs-3g<\/p>\n<pre># \u8fdb\u5165\/home\u76ee\u5f55\uff0c\u628a\u8f6f\u4ef6\u4e0b\u8f7d\u5230\u6b64\u76ee\u5f55\ncd \/home\nwget http:\/\/tuxera.com\/opensource\/ntfs-3g_ntfsprogs-2011.4.12.tgz\ntar zxvf ntfs-3g_ntfsprogs-2011.4.12.tgz\ncd ntfs-3g_ntfsprogs-2011.4.12\n.\/configure\nmake\nmake install<\/pre>\n<p>2\u3001\u67e5\u770b\u4f7f\u7528\u5b89\u88c5ntfs-3g<\/p>\n<pre>fdisk -l #\u663e\u793aNTFS\u79fb\u52a8\u786c\u76d8\u5206\u533a\u4fe1\u606f\n#####################################################################\nDisk \/dev\/sda: 999.7 GB, 999653638144 bytes\n255 heads, 63 sectors\/track, 121534 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisk identifier: 0x0008cd2a\nDevice Boot Start End Blocks Id System\n\/dev\/sda1 * 1 17 131072 83 Linux\nPartition 1 does not end on cylinder boundary.\n\/dev\/sda2 17 1061 8388608 82 Linux swap \/ Solaris\n\/dev\/sda3 1061 121535 967703552 83 Linux\nDisk \/dev\/sdb: 1999.3 GB, 1999307276288 bytes\n255 heads, 63 sectors\/track, 243068 cylinders\nUnits = cylinders of 16065 * 512 = 8225280 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisk identifier: 0x0005d9bd\nDevice Boot Start End Blocks Id System\n\/dev\/sdc4 5094 20673 117784800 f W95 Ext\\'d (LBA)\n\/dev\/sda5 * 1 5093 38503048+ 7 HPFS\/NTFS\n###################################################################\n\u4ee5\u4e0a\u4fe1\u606f\u663e\u793a\u7684\u662f\u79fb\u52a8\u786c\u76d8\u5206\u533a\u4fe1\u606f.<\/pre>\n<p>3\u3001\u6302\u8f7d\u5206\u533a\uff0c\u4e0b\u9762\u6211\u4eec\u628a\/dev\/sdc5\u5206\u533a\u6302\u8f7d\u5230\/media<\/p>\n<pre>cd \/media\nmount -t ntfs-3g \/dev\/sdc5 \/media\n#\u5206\u533a\u6302\u8f7d\u5b8c\u6210\uff0c\u73b0\u5728\u53ef\u4ee5\u8fdb\u5165\/mnt\u76ee\u5f55\u4e0b\u9762\u67e5\u770b\u5bf9\u5e94\u7684\u6587\u4ef6\u5939\uff0c\u5373\u5c31\u662f\u4f60\u79fb\u52a8\u786c\u76d8\u7684\u5206\u533a\n#\u5982\u679c\u60f3\u5378\u8f7d\uff0c\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u547d\u4ee4\numount \/dev\/sdc5<\/pre>\n<p>4\u3001\u5982\u679c\u60f3\u8ba9\u7cfb\u7edf\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u79fb\u52a8\u786c\u76d8\uff0c\u7f16\u8f91\/etc\/fstab\u6587\u4ef6\u3002<\/p>\n<pre> #\u66f4\u6539\u4e4b\u524d\u5148\u5907\u4efd\ncp \/etc\/fstab \/etc\/fstabbak\nvi \/etc\/fstab\n# \u7528insert\u547d\u4ee4\u5728\u6700\u540e\u6dfb\u52a0\u4ee5\u4e0b\u4fe1\u606f\uff0c\u4ee5\u8bfb\u5199\u65b9\u5f0f\u6302\u8f7d\u78c1\u76d8\u3002\n\/dev\/sda1 \/mnt\/winC ntfs-3g defaults 0 0\n\/dev\/sda5 \/mnt\/winD ntfs-3g defaults 0 0\n\/dev\/sda6 \/mnt\/winE ntfs-3g defaults 0 0\n\/dev\/sda7 \/mnt\/winF ntfs-3g defaults 0 0<\/pre>\n<p>\u73b0\u5728\u53ea\u8981\u91cd\u542f\u673a\u5668\uff0c\u4f1a\u81ea\u52a8\u6302\u8f7d\u79fb\u52a8\u786c\u76d8<br \/>\n\u53d6\u6d88\u6302\u8f7d\u95ee\u9898\uff1a<\/p>\n<pre>umount\u7684\u65f6\u5019\u51fa\u73b0\u5982\u4e0b\u63d0\u793a\uff1a\n[root@weijing.co \/]# umount \/dev\/sda1\numount: \/mnt\/upan: device is busy.\n(In some cases useful info about processes that use\nthe device is found by lsof(8) or fuser(1))<\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<br \/>\n[root@weijing.co \/]# lsof -w \/mnt\/upan<br \/>\nCOMMAND PID USER FD TYPE DEVICE SIZE\/OFF NODE NAME<br \/>\nbash 31761 root cwd DIR 8,18 8192 2316326 \/mnt\/upan\/weijing.co<br \/>\n\u4f7f\u7528 lsof -w \/mnt\/upan \u53ef\u4ee5\u770b\u51fa\uff0c\u6709\u4e2a\u547d\u4ee4\u7a97\u53e3\u5728\/mnt\/upan\/weijing.co\u76ee\u5f55\u4e0a\uff0c\u5173\u95ed\u8fd9\u4e2a\u7a97\u53e3\uff0c\u6216\u9000\u51fa\u8fd9\u4e2a\u6302\u8f7d\u76ee\u5f55\uff0c\u518d\u4f7f\u7528 umount \u5373\u53ef\u5b89\u5168\u9000\u51fa\u6302\u8f7d\u7684\u8bbe\u5907\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6\u4e0d\u652f\u6301NTFS\u79fb\u52a8\u786c\u76d8\u6302\u8f7d\uff0c\u8981\u60f3\u628aNTFS\u683c\u5f0f\u7684\u78c1\u76d8\u6302\u8f7d\u5230CentOS 6.3\u4e0b\u9762\u9700\u8981\u5b89\u88c5\u7b2c\u4e09 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1416\"> <span class=\"screen-reader-text\">CentOS \u7528ntfs-3g\u6302\u8f7dWindows NTFS\u5206\u533a<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[102],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"CentOS 6\u4e0d\u652f\u6301NTFS\u79fb\u52a8\u786c\u76d8\u6302\u8f7d\uff0c\u8981\u60f3\u628aNTFS\u683c\u5f0f\u7684\u78c1\u76d8\u6302\u8f7d\u5230CentOS 6.3\u4e0b\u9762\u9700\u8981\u5b89\u88c5\u7b2c\u4e09&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1416"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1416"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1416\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1416"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}