Mac OS 복구하기 Single Mode
Mac OS 부팅이 안되고, 복구 작업을 했는데, Disk를 백업후 포멧하라는 메시지를 받았을때,
OS의 single booting mode로 변환하여,
복원이 가능한 파일을 다른 장치로 백업하면 유용합니다.
윈도우 복구+시동키 조합: MAC시스템 PRAM 리셋, SMC리셋
[ 싱글모드 ]
command-S 단일 사용자 모드에서 시동합니다.
윈도우 부팅시 command-S을 눌러서 부팅을 합니다.
그후에, USB 외장 드라이브를 연결해도 자동 mount가 되지 않습니다.
수동으로 mount를 해줘야합니다.
먼저 디스크를 찾아 봅니다.
ls –l /dev/disk*
여기서 disk1s2가 확장된 디스크일 가능성이 높습니다.
/dev/disk0
/dev/disk0s1 <-- we know we are on this partition/dev/disk0s2
/dev/disk1
/dev/disk1s1
/dev/disk1s2 <-- the file we want is here (we think)
파일 타입 확인
/sbin/fstype /dev.dsk1s2
ntfs <-- ok that’s what we expected
마운트 하기
mkdir /drive2 <-- 마운트할 디렉토리 만들기(보통 안만들어 질 수 있습니다. 그럴땐, /Volumes/로 잡아봅니다.)
mount –t ntfs /dev/disk1s2 /drive2
mount –t hfs /dev/disk1s2 /drive2
For a CD…
mount –t cd9660 /dev/disk1s2 /drive2
For a DVD…
mount –t udf /dev/disk1s2 /drive2
if this doesn’t work then try the cd9660 switch as if it was a CD.
또 다른 마운트
/sbin/mount -uw /
/sbin/fsck -fy
mkdir /Volunmes/usbdrive
/sbin/mount_hfs /etc/disk1s2 /Volumes/usbdrive
rsync -av /* /Volumes/usbdrive
파일을 백업이 완료되면, (dan유저의 Docuemnts백업)
tar cf /drive2/backup.tar /Users/dan/Documents
언마운트를 해줍니다.
umount /dev/disk1s2
참고: [GUIDE] How to mount drives in OS X Single User Mode using the command line