今天早些时候,我的2009 iMac尝试复制文件时发出I / O错误。因此,我运行了磁盘实用程序,请验证磁盘以查看是否有任何问题。它是。但是因为它是我的启动盘,所以我无法修复它,所以我尝试了安全模式。安全模式是第一次使用,但是当我重新启动时,它会显示进度条填满,然后再暂停。每次我现在打开它时,相同的进度条就会崩溃。在详细模式下启动表明fsck失败,信号为8。
据我所知,使用单用户模式是获得对系统任何访问权限的唯一方法,我一直在运行fsck_hfs。但是,它总是失败。以下是fsck_hfs -d / dev / disk0s2的输出。
** /dev/rdisk0s2
Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K.
** Root file system
Executing fsck_hfs (version diskdev_cmds-491.6~3).
** Verifying volume when it is mounted with write access.
** Checking Journaled HFT Plus volume.
** Checking extents overflow file.
** Checking catalog file.
Missing thread record (id = 9931104)
Missing thread record (id = 16434146)
Missing thread record (id = 19370458)
disk0s2: I/O error
hfs_swap_BTNode: offsets 10 and 11 out of order (0x0000, 0x0000)
Invalid node structure
(4, 115897)
** The volume Macintosh HD could not be verified completely.
volume check failed with error 7
volume type is pure HFS+
primary MDB is at block 0 0x00
alternate MDB is at block 0 0x00
primary VHB is at block 2 0x02
alternate VHB is at block 1952491198 0x74622d5e
sector size = 512 0x200
VolumeObject flags = 0x07
total sectors for volume = 1952591200 0x74622d60
total sectors for embedded volume = 0 0x00
我绝对需要能够启动才能将其用作外部监视器。
launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist
launchctl load /System/Library/LaunchDaemon/com.apple.DirectoryServices.plist
然后我做了一些其他的事情,不知道是否有必要,然后shutdown -h now
,什么时候不起作用,exit
。