본문 바로가기
조회 수 2599 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print Files
How to check and fix drive in OS X from CLI (diskutil, fsck_hfs)

##################
# using diskutil
##################

1. Verify disk info
01.png

Note: to check if partition is mounted
02.png

2. Check disk or volume
diskutil verifyDisk disk1
03.png

diskutil verifyVolume disk1s2
04.png

Note: target can simply be the root of the boot filesystem using a single forward-slash character.
ex)
diskutil verifyVolume "Macintosh HD"
diskutil verifyVolume Macintosh\ HD
diskutil verifyVolume disk0s2
diskutil verifyVolume /

##############
# using fsck
##############

To use fsck, simply run the following command
sudo fsck_hfs -f /dev/disk1s2
05.png

If problems do exist, then you can fix them
sudo fsck_hfs -fy /dev/disk1s2


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
57 Tomcat start/stop scripts Hojung 2015.07.31 2237
56 Generate PDF with text file on OS X file Hojung 2015.07.30 1759
55 Install JDK7, Tomcat7 and MySQL on OS X file Hojung 2015.07.28 1681
54 Keyboard Symbol List Hojung 2015.07.02 1542
53 How to create a bootable USB stick from iso on OS X file Hojung 2014.12.14 1844
52 Mount volume read-only with Disk-Arbitrator file Hojung 2014.11.05 2179
» How to check and fix drive in OS X from CLI (diskutil, fsck_hfs) file Hojung 2014.11.05 2599
50 FileVault 2 not working correctly in OS X VMs with VM disks set to Bus Type: SATA file Hojung 2014.11.05 1975
49 Create an encrypted archive file Hojung 2014.11.04 1768
48 Encrypt external hdd file Hojung 2014.11.04 1841
47 Finder 특정 디렉토리에서 디렉토리도 사이즈 보기 ('du -sh *' 와 동일) file Hojung 2014.11.04 2065
46 Don't delete files when copying file Hojung 2014.11.04 1838
45 안전하게 파일 삭제하기 (파일 완전삭제) file Hojung 2014.11.04 3520
44 editor에서 ^M가 나오는 문제 (unix - mac 호환성 문제시) Hojung 2014.11.04 1771
43 How to get file info (file, GetFileInfo, mdls, mdfind) Hojung 2014.11.04 1883
42 Create bootable USB stick from ISO in Mac OS X file Hojung 2014.09.07 3025
41 Create an OS X 10.9 Mavericks ISO file Hojung 2014.09.01 2906
40 Install command line RAR and UnRAR for Mac OS Hojung 2014.05.26 2830
39 How to encrypt a file from the OS X command line Hojung 2014.03.03 3588
38 Going from MacPorts to Homebrew (how to remove macports) Hojung 2014.02.19 4613
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5