I have recently moved the shutdown file in /sbin/ directory and I lost the content of the shutdown executable.
I can't shutdown the computer because of it.
Can someone tell me where can I get this file without reinstalling the OS? Any advice for recovering\reinstalling this executable?
or can someone upload this file for me.
or copy paste the content of the file on pastebin.com
I have Yosemite 10.10
Thank you.
I'm afraid you need to reinstall the os (unless you trust someone to give you that file from the same system, and better the same model machine)
Reinstalling do not clear your personal data, it will just overwrite alla system files (adding the missing /sbin/shutdown)
If you have a recent mac you have the recovery partition. Have a read here:
https://support.apple.com/en-us/HT201314
Basically you just need to power your Mac holding down Command+R
Related
I created an Unity game in Windows and I wanted to pass it to a Mac computer. I built it for Mac and I uploaded the .app folder to Google Drive as a .rar. Then, I downloaded it in a Mac and I unzipped it. When I try to open it, it shows the error message “Someapp.app can’t be opened”. It doesn’t explain why. I think the problem isn’t from Unity because the log file is empty after the error. Can anyone help me?
I needed to make the actual executable in the .app folder, well, “executable”.
Please try:
Open up a Terminal and navigate to your app folder:
cd <PATH_TO_YOUR_APP>/<APP_NAME>.app/Contents/MacOS/
This folder contains the actual executable file which Windows apparently didn’t make executable. Let’s add the executable flag:
chmod +x <APP_NAME>
Afterwards I could start the app.
I made the Build for my project for both PC and Mac, however I had massive issues getting the Mac one to actually work. Here is the tutorial I used to make the builds which was suppppper helpful, but it didn't help fix my issue:
https://www.youtube.com/watch?time_continue=3&v=7nxKAtxGSn8&feature=emb_title
I just figured out how to make the Mac build work with a friend and it was a bit of work. Once you follow the video's directions exactly for the Mac version, you can send the file to your Mac but when you do it will be labeled MacOS and then when you try to open it it will most likely fail and say missing application to open.
From what I have learned, this is because the compression actually corrupts the executable file to open it on the Mac. To fix this, you have to use Terminal to navigate your way into the file and unlock the permission settings that were changed due what we believe is from the compression.
I honestly can't remember where I found this code but the navigation part I got from the other answer here, but you need to open up a Terminal and navigate to your app folder:
cd <PATH_TO_YOUR_APP>/<APP_NAME>.app/Contents/MacOS/
and add the following:
chmod -R 777 [applicationName].app
This unlocked the permissions on the application but when the app was opened, we had to allow permission through the Mac firewall to let it run on the computer. Once we approved permission, the app ran no problem.
I hope this helps and I'm by no means a professional with this so but my friend and I can try to help in anyway possible.
I run installation of OS on old Mac book Pro and the installation was not able to complete.
Is there a way to save my files, before reformatting the Mac?
I thought I lost my files, but found out that after getting to disk utility, you can go to:
File > New Image > Image from Folder
And this way save your file to an external Hard Drive, then open them in another Mac and backup. This really saved me, hope it would help you two because it took me forever to find this solution
I got in a bit over my head and probably entered some wrong commands into terminal. Now I can't get my local webpages to work display. I'd like to start from scratch.
Find the config file and delete it. As for the location, you can Google it.
I want to reinstall OS X Yosemite in my MacBook Pro 2015 without erasing the disk. What will I need to reinstall after the process is done? What files are not removed from my hard drive? What files ARE removed from disk?
Thanks!
Run a backup to save all of your data via Time Machine.
Reinstall OSX.
Restore your data from Time Machine if its not available after reinstall.
Run Disk Utility and have the application search and fix any permissions issues that will almost certainly occur when doing a reinstall with applications pulled from a previous install.
DON'T attempt to do a reinstall without making a backup via Time Machine to an external drive.
From #bmike:
"Almost nothing is actually removed. What happens is the installer downloads a fresh and complete set of system files - basically the things that came with the Mac out of the factory minus some iLife apps like Garageband for instance.
The installer doesn't delete any user settings, user files and doesn't even delete apps you installed.
The process is designed to make the system work whether or not you have large or small changes to the system."
Link
I installed HP sound driver yesterday and it BSOD-ed my windows and crashed it. System repair didn't help. system restore is corrupted, and startup recovery just says ""patch is preventing windows from starting". when I try to boot, it loads up to certain amount of time and then in just BSOD-s to 0x0000007b.
I disabled the new driver in registry, but it didn't help.
I then installed another windows copy on a new partition, and tried copying over the registry and system32\drivers folder, still the same issue.
Any further ideas? if I could somehow just use the files from system restore that are not corrupted, and leave the rest out, that would help but I don't know how to do that.
Reinstallation was the only way to go unfortunately. I tried replacing windows files, reintegrating registry.. nothing gave stable results. This is not a solution, as I was trying to fix the computer, not reinstall OS.