Contribute
Register

[Solved] How to execute fsck command for another disk in single-user mode?

Status
Not open for further replies.
Joined
May 4, 2017
Messages
130
Motherboard
Lenovo Flex 2 15inch
CPU
i7-4510U
Graphics
HD 4400 + GT 840M, 1920x1080
Mobile Phone
  1. iOS
Hi guys

Bye defualt the command will be executed on the boot volume. Could you please help me to execute FSCK -FK on another disk/drive?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,624
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi guys

Bye defualt the command will be executed on the boot volume. Could you please help me to execute FSCK -FK on another disk/drive?

Read about 'diskutil repairVolume' via 'man diskutil'.
 
Joined
May 4, 2017
Messages
130
Motherboard
Lenovo Flex 2 15inch
CPU
i7-4510U
Graphics
HD 4400 + GT 840M, 1920x1080
Mobile Phone
  1. iOS
Read about 'diskutil repairVolume' via 'man diskutil'.

Thanks RehabMan

For anybody willing to use diskutil command in single-user mode:

Code:
/sbin/fsck -fy
mount -uw /

launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.diskmanagementd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
sudo diskutil
 
Status
Not open for further replies.
Top