티스토리 뷰

OS/Linux

[CentOS7] NTFS 파티션 인식 시키기, 마운트

파란크리스마스 2015. 2. 10. 05:22
728x90

출처 : 리눅스에서 ntfs mount 하기

Windows가 설치된 Disk의 파티션 정보 확인

아래 보시면 NTFS로 된 파티션은 보이지 않습니다.

# fdisk /dev/sdb

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 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: 0xb43cf658

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Command (m for help): q

You have new mail in /var/spool/mail/root

yum 레포지토리 추가

# yum install yum-priorities

/etc/yum/pluginconf.d/priorities.conf 수정

/etc/yum/pluginconf.d/priorities.conf에 아래 내용 추가

check_obsoletes = 1
priority = 2
# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
check_obsoletes = 1
priority = 2

RepoForge 설치

http://pkgs.repoforge.org/rpmforge-release/ 사이트에 가셔서 자신의 OS 버전과 32/64Bit를 선택하셔서 설치합니다.

# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
# yum check-update
# yum install fuse fuse-ntfs-3g dkms dkms-fuse

UUID 확인

# blkid
/dev/sda1: SEC_TYPE="msdos" UUID="BC84-529B" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="113680b3-8adb-4d00-9ec4-7232e98dd266" 
/dev/sda2: UUID="deafe87f-919d-4488-99f9-56fcc70158bb" TYPE="xfs" PARTUUID="6a70f681-804f-47b7-87e4-d6fbec8ab8af" 
/dev/sda3: UUID="95cc2160-ee4e-4f30-b442-a3acead63b3d" TYPE="swap" PARTUUID="39c79053-b189-40f2-a804-369fef5cda33" 
/dev/sda4: UUID="5d75ed8e-fb21-4055-8ecd-dc21cec26b93" TYPE="xfs" PARTUUID="d81bc615-abf6-4525-a180-c4f088a1ece4" 
/dev/sdb1: LABEL="M-kM-3M-5M-jM-5M-," UUID="B81C7BB11C7B6970" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a5cb2093-6fca-4e1b-84e9-62dd8000d17d" 
/dev/sdb2: UUID="107D-CF7F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="b9fb26cc-c793-4331-b400-59c56c8ce8c0" 
/dev/sdb4: UUID="80AC85D7AC85C85C" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2c3655ba-a472-4331-9ef4-9215b892efd3" 
/dev/sdb5: LABEL="M-lM-^CM-^H M-kM-3M-<M-kM-%M-(" UUID="00A6BE42A6BE37CC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fdd39d2b-f85e-499e-bf8a-45f99abded8a" 
/dev/sdb6: UUID="0edf8b89-df2e-48f8-bf45-887c57363b5a" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="ca0981f4-073c-477b-a20a-9f2e0d2d79b3" 

자동마운트 /etc/fstab 추가

추가전

# cat /etc/fstab 
UUID=5d75ed8e-fb21-4055-8ecd-dc21cec26b93 /                       xfs     defaults        1 1
UUID=deafe87f-919d-4488-99f9-56fcc70158bb /boot                   xfs     defaults        1 2
UUID=BC84-529B          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
UUID=95cc2160-ee4e-4f30-b442-a3acead63b3d swap                    swap    defaults        0 0

추가후

$ cat /etc/fstab 
UUID=5d75ed8e-fb21-4055-8ecd-dc21cec26b93 /                       xfs     defaults        1 1
UUID=deafe87f-919d-4488-99f9-56fcc70158bb /boot                   xfs     defaults        1 2
UUID=BC84-529B          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
UUID=95cc2160-ee4e-4f30-b442-a3acead63b3d swap                    swap    defaults        0 0
UUID=0edf8b89-df2e-48f8-bf45-887c57363b5a /bluesanta              ext4    defaults        1 1

USB 하드 디스크 마운드

디스크 확인

$ sudo fdisk -l

mount

$ sudo mount -t ntfs-3g /dev/sdc1 /disk_iodd

USB 분리

$ sudo umount /disk_iodd
$ sudo eject /dev/sdc1
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함