꼬반 Blog

CentOS에서 NTFS 마운트 하기

====== CentOS 에서 NTFS 마운트 하기 ======

출처 : 사람사는세상 님의 포스트 http://scotchblue.blogspot.com/2011/04/centos-56-ntfs.html

출처 : 우와신난다 님의 포스트CentOS 5.6에서 ntfs디스크 인식시키기

===== RPMFORGE FOR CENTOS 5 =====

The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.
You can find a complete listing of the RPMforge package packages at http://packages.sw.be/
Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

i386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.
Install DAG's GPG keyrpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Verify the package you have downloadedrpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
 Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the md5sum of the key injection package, and trust Dag, et al., then it should be as safe as your trust of them extends.
Install the packagerpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
This will add a yum repository config file and import the appropriate GPG keys.
Then try to install something like thisyum install htop
 
위에서 설명하듯이 rpmforge를 설치해주고 참고로 사이트는 Installing RPMforge 이다.

출처 - 우와신난다 님의 포스트

<code>
1.yum-priorities package install for rpmforge add to yum
[root@localhost ~]# yum install yum-priorities -y   

2. "priority=N" add to /etc/yum/pluginconf.d/priorities.conf
[root@localhost ~]# vi /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
check_obsoletes = 1
priority=2

3. Install rpmforge 
[root@localhost ~]# rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

4. update yum 
[root@localhost ~]# yum check-update

5. install "fuse", "fuse-ntfs-3g", "dkms", "dkms-fuse"
[root@localhost ~]# yum install fuse fuse-ntfs-3g dkms dkms-fuse -y

6. make directory "windows" for mount ntfs
[root@localhost ~]# mkdir /windows

7. mount ntfs filesystem to "/windows" , type is ntfs-3g
[root@localhost ~]# mount -t ntfs-3g /dev/sda1 /windows
[root@localhost ~]# ls -al /windows/
</code>

자동실행을 위해서는 /etc/rc.d/rc.local 에 추가로 적어주면 부팅시 맨마지막에 실행된다.

반응형

Article By 꼬반

*certificate* : VCP 5(2012), RHCSA 7 (2014), RHCE 7 (2015), RHCSA in REDHAT OpenStack(2017) *development language* : Javascript, NodeJS, Golang, html5, css3, shell script *middle ware* : NGINX, Apache, Tomcat, Docker, Docker Swarm, Mesos, Kubernetes, HCI,

Discuss about post