久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

redhat7.1如何實現ntfs掛載

144次閱讀
沒有評論

共計 4008 個字符,預計需要花費 11 分鐘才能閱讀完成。

丸趣 TV 小編給大家分享一下 redhat7.1 如何實現 ntfs 掛載,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

給 redhat7.1 掛載 ntfs 文件系統時失敗了好幾次,提示是沒有安裝 C 貶義環境,然后安裝了 gcc,就成功掛載了,下面是詳細步驟

[root@foundation59 Desktop]# fdisk -l  ### 查看所有磁盤信息

Disk /dev/sdb: 750.2 GB, 750156374016 bytes, 1465149168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x3c488b69

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1            2048  1465145343   732571648    7  HPFS/NTFS/exFAT   ### 看到有一個 750G 的 ntfs 文件系統硬盤,這就是將要掛載的硬盤

Disk /dev/sda: 120.0 GB, 120034123776 bytes, 234441648 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk label type: dos

Disk identifier: 0x0003c4df

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048    73404415    36701184    7  HPFS/NTFS/exFAT    

/dev/sda2        73404416    74428415      512000   83  Linux

/dev/sda3        74428416    82292735     3932160   82  Linux swap / Solaris

/dev/sda4        82292736   234440703    76073984    5  Extended

/dev/sda5        82294784   234440703    76072960   83  Linux

[root@foundation59 Desktop]# ls   ### 查看已經解壓之后的 ntfs-3g 軟件(此軟件很容易百度下載)

ntfs-3g_ntfsprogs-2011.4.12.zip  ntfs-3g_ntfsprogs-2014.2.15.tgz

ntfs-3g_ntfsprogs-2014.2.15

[root@foundation59 Desktop]# cd ntfs-3g_ntfsprogs-2014.2.15   ### 進入此軟件的解壓目錄

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# ls

\aclocal.m4    config.h.in   COPYING.LIB  libfuse-lite  missing

AUTHORS       config.log    CREDITS      libntfs-3g    NEWS

autogen.sh    config.sub    depcomp      ltmain.sh     ntfsprogs

ChangeLog     configure     include      m4            README

compile       configure.ac  INSTALL      Makefile.am   src

config.guess  COPYING       install-sh   Makefile.in   TODO.ntfsprogs

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# ./configure    ###1、執行此編譯命令

checking build system type… x86_64-unknown-linux-gnu

checking host system type… x86_64-unknown-linux-gnu

checking target system type… x86_64-unknown-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… /usr/bin/mkdir -p

checking for gawk… gawk

checking whether make sets $(MAKE)… yes

checking whether to enable maintainer-specific portions of Makefiles… no

checking for style of include used by make… GNU

config.status: executing depfiles commands

config.status: executing libtool commands

/usr/bin/rm: cannot remove libtoolT : No such file or directory

You can type now make to build ntfs-3g.

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# make    ####2、執行此命令

make  all-recursive

make[1]: Entering directory `/root/Desktop/ntfs-3g_ntfsprogs-2014.2.15

Making all in include

make[2]: Entering directory `/root/Desktop/ntfs-3g_ntfsprogs-2014.2.15/include

Making all in ntfs-3g

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkn

mknod   mkntfs  

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# make install    ###3、執行此命令,后面一大堆提示信息,就不寫了

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdb1 /mnt/windows750   ### 然后直接掛載不成功,是因為沒有創建 /mnt/windows750 目錄

ntfs-3g-mount: failed to access mountpoint /mnt/windows750: No such file or directory

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/windows750   ### 先創建目錄

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdb1 /mnt/windows750  ### 成功掛載(沒有提示信息就是成功了,可以進入看看)

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/1t

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdd1 /mnt/1t

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# cd /mnt/

[root@foundation59 mnt]# ls   ### 可以看到掛在了 3 個盤

1t  windows750  windowscpan

[root@foundation59 mnt]# cd windows750

[root@foundation59 windows750]# ls   ### 可以看到 750G 硬盤里面的文件信息

download   movies  MyDrivers            $RECYCLE.BIN               Youku Files   軟件

java_0924  music   Program Files (x86)  System Volume Information   文件

[root@foundation59 windows750]# 

接下來要實現 redhat7.1 開機自動掛載 ntfs 格式硬盤或分區

a、進入 /mnt 目錄,新建目錄名為 cpan,dpan

b、使用 fdisk - l 命令查看硬盤每個區對應的地址

c、進入 /etc 路徑下編輯 fstab 文件(編輯之前最好先備份 cp /etc/fstab /etc/fstab.bak),在文件末尾添加如下代碼

/dev/sdb1 /mnt/windows750 ntfs-3g defaults 0 0  ### 這里我的 750G 盤對應 sdb1

/dev/sdd1 /mnt/1t ntfs-3g defaults 0 0

以上是“redhat7.1 如何實現 ntfs 掛載”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注丸趣 TV 行業資訊頻道!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-08-25發表,共計4008字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 嫩江县| 榆树市| 德清县| 乐清市| 曲松县| 敦煌市| 沂南县| 光泽县| 阳高县| 屯昌县| 福清市| 太康县| 河西区| 安泽县| 泽普县| 石泉县| 卫辉市| 湄潭县| 崇文区| 延边| 达日县| 鲁甸县| 荔浦县| 彰化市| 海阳市| 威海市| 本溪市| 招远市| 南溪县| 盐亭县| 克东县| 札达县| 会昌县| 江孜县| 富顺县| 绿春县| 井冈山市| 会同县| 伽师县| 广汉市| 博爱县|