Linux [Centos 7] ntfs usb 외장하드 인식하기 [ntfs usb 복사하기]
페이지 정보
본문
Centos 7 에서 ntfs usb 외장하드 인식하기 [ntfs usb 복사하기]
1. ntfs 관련 패키지 설치
[root@localhost ~]# yum install ntfs*
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
epel/x86_64/metalink | 7.2 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
ius | 2.3 kB 00:00
mariadb | 2.9 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
(1/3): epel/x86_64/updateinfo | 868 kB 00:00
(2/3): epel/x86_64/primary_db | 6.2 MB 00:00
(3/3): ius/x86_64/primary_db | 212 kB 00:01
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* epel: mirror.dmmlabs.jp
* extras: ftp.riken.jp
* ius: mirror.team-cymru.org
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package ntfs-3g.x86_64 2:2017.3.23-1.el7 will be installed
---> Package ntfs-3g-devel.x86_64 2:2017.3.23-1.el7 will be installed
---> Package ntfsprogs.x86_64 2:2017.3.23-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================
Package Arch Version Repository Size
=============================================================================================================
Installing:
ntfs-3g x86_64 2:2017.3.23-1.el7 epel 263 k
ntfs-3g-devel x86_64 2:2017.3.23-1.el7 epel 81 k
ntfsprogs x86_64 2:2017.3.23-1.el7 epel 363 k
Transaction Summary
=============================================================================================================
Install 3 Packages
Total download size: 707 k
Installed size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): ntfs-3g-2017.3.23-1.el7.x86_64.rpm | 263 kB 00:00:00
(2/3): ntfs-3g-devel-2017.3.23-1.el7.x86_64.rpm | 81 kB 00:00:00
(3/3): ntfsprogs-2017.3.23-1.el7.x86_64.rpm | 363 kB 00:00:00
-------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 707 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/3
Installing : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/3
Installing : 2:ntfs-3g-devel-2017.3.23-1.el7.x86_64 3/3
Verifying : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/3
Verifying : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/3
Verifying : 2:ntfs-3g-devel-2017.3.23-1.el7.x86_64 3/3
Installed:
ntfs-3g.x86_64 2:2017.3.23-1.el7 ntfs-3g-devel.x86_64 2:2017.3.23-1.el7 ntfsprogs.x86_64 2:2017.3.23-1.el7
Complete!
[root@localhost ~]#
2. 마운트할 폴더 생성
[root@localhost ~]# mkdir /폴더명
3. ntfs 드바이스 정보 표시
[root@localhost ~]# fdisk -l
Disk /dev/sda: 256.0 GB, 256022937600 bytes, 500044800 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: 0x000dc73b
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 500043775 249816064 83 Linux
Disk /dev/sdb: 500.1 GB, 500074307584 bytes, 976707632 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: 0xaa538d37
Device Boot Start End Blocks Id System
/dev/sdb1 2048 976707631 488352792 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes, 1953525168 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: 0x3093bcdb
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
[root@localhost ~]#
4. 외장하드를 externHD 경로로 마운트하기
[root@localhost ~]# mount /dev/sdc1 /폴더명/
[root@localhost ~]
5. 용량 확인
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 932G 529G 404G 57% /폴더명
[root@localhost ~]#
6. 영구적인 mount 를 원한다면
[root@localhost ~]# vi /etc/fstab
맨 하단에 내용 추가
/dev/sdc1 /폴더명 ntfs defaults 0 0
참고자료
http://skylove1982.tistory.com/357
http://idchowto.com/?p=3493
1. ntfs 관련 패키지 설치
[root@localhost ~]# yum install ntfs*
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
epel/x86_64/metalink | 7.2 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
ius | 2.3 kB 00:00
mariadb | 2.9 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
(1/3): epel/x86_64/updateinfo | 868 kB 00:00
(2/3): epel/x86_64/primary_db | 6.2 MB 00:00
(3/3): ius/x86_64/primary_db | 212 kB 00:01
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* epel: mirror.dmmlabs.jp
* extras: ftp.riken.jp
* ius: mirror.team-cymru.org
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package ntfs-3g.x86_64 2:2017.3.23-1.el7 will be installed
---> Package ntfs-3g-devel.x86_64 2:2017.3.23-1.el7 will be installed
---> Package ntfsprogs.x86_64 2:2017.3.23-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================
Package Arch Version Repository Size
=============================================================================================================
Installing:
ntfs-3g x86_64 2:2017.3.23-1.el7 epel 263 k
ntfs-3g-devel x86_64 2:2017.3.23-1.el7 epel 81 k
ntfsprogs x86_64 2:2017.3.23-1.el7 epel 363 k
Transaction Summary
=============================================================================================================
Install 3 Packages
Total download size: 707 k
Installed size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): ntfs-3g-2017.3.23-1.el7.x86_64.rpm | 263 kB 00:00:00
(2/3): ntfs-3g-devel-2017.3.23-1.el7.x86_64.rpm | 81 kB 00:00:00
(3/3): ntfsprogs-2017.3.23-1.el7.x86_64.rpm | 363 kB 00:00:00
-------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 707 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/3
Installing : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/3
Installing : 2:ntfs-3g-devel-2017.3.23-1.el7.x86_64 3/3
Verifying : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/3
Verifying : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/3
Verifying : 2:ntfs-3g-devel-2017.3.23-1.el7.x86_64 3/3
Installed:
ntfs-3g.x86_64 2:2017.3.23-1.el7 ntfs-3g-devel.x86_64 2:2017.3.23-1.el7 ntfsprogs.x86_64 2:2017.3.23-1.el7
Complete!
[root@localhost ~]#
2. 마운트할 폴더 생성
[root@localhost ~]# mkdir /폴더명
3. ntfs 드바이스 정보 표시
[root@localhost ~]# fdisk -l
Disk /dev/sda: 256.0 GB, 256022937600 bytes, 500044800 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: 0x000dc73b
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 500043775 249816064 83 Linux
Disk /dev/sdb: 500.1 GB, 500074307584 bytes, 976707632 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: 0xaa538d37
Device Boot Start End Blocks Id System
/dev/sdb1 2048 976707631 488352792 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes, 1953525168 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: 0x3093bcdb
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
[root@localhost ~]#
4. 외장하드를 externHD 경로로 마운트하기
[root@localhost ~]# mount /dev/sdc1 /폴더명/
[root@localhost ~]
5. 용량 확인
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 932G 529G 404G 57% /폴더명
[root@localhost ~]#
6. 영구적인 mount 를 원한다면
[root@localhost ~]# vi /etc/fstab
맨 하단에 내용 추가
/dev/sdc1 /폴더명 ntfs defaults 0 0
참고자료
http://skylove1982.tistory.com/357
http://idchowto.com/?p=3493
댓글목록
등록된 댓글이 없습니다.