Hey Guys,
New member here. Posted specifically for this. Today I shot myself in the foot. I replaced a file in my "/usr/lib" folder and then restarted my laptop. Now my laptop won't turn on.
I'm running an older version of Mojave, 10.4 maybe? (can't check right now because my laptop is unusable)
The file I replaced was called "libstdc++.6.0.0." and I had accessed its folder via typing in "csrutil disable" in my terminal as my laptop wouldn't let me replace the above file by simply dragging and dropping it in there like you normally would do to move a file (should have taken that as a warning sign...)
Anyway, I can only use my laptop by booting it and holding cmd+R and from there I can access my terminal, recovery etc. However I really don't want to format my mac if possible...
Right now, I've managed to hook my MacBook up to my roommates MacBook pro running OS Hi Sierra via Target Disk Mode & a thunderbolt cable.
I managed to get into my laptops bricked hard drive, and could even navigate my way to MY "/usr/lib" folder (via terminal commands) and see the NEW "libstdc++.6.0.0." file that I had moved in there that caused this whole mess in the first place!! But it won't let me drag it out and put the correct ORIGINAL file in!! It gives me a sign that looks like this "🚫" and says I don't have access to edit the files in this folder (same msg I got on my laptop which is why i overrode it in terminal via typing in "csrutil disable").
I have my MacBooks original "libstdc++.6.0.0" file (the one that I should never have removed) in a folder on MY MacBooks desktop, and via Target Disk Mode I've also been able to transfer it onto a USB stick. Its the only file on this USB as well.
I am wondering if I can somehow put the ORIGINAL "libstdc++.6.0.0" file back into my "/usr/lib" folder via Target Disk Mode.
I tried to drag and drop it back into my MacBooks "/usr/lib" folder via the Target Disk Mode and utilizing the terminal to direct me to the folder in the first place (you can't find it without using terminal), but it told me I didn't have permission to edit the folder because I'm accessing my MacBook (Running Mojave) through my roommates older MacBook Pro (running OS Hi Sierra) and it is telling me that in order to edit the file, I would have to type that same: "csrutil disable" into my roommates MacBooks terminal during recovery mode. (same thing I mentioned up above, the "🚫" appears).
It seems like if I put my roommates MacBook into recovery mode, open terminal and type in the "csrutil disable" prompt I may be able to set things straight. I just REALLY don't wanna ruin his laptop too.. so I'm coming here with my problem in hopes that someone may be able to weigh in on this ridiculous situation (I am backing my effing laptop up if i ever make it through this).
I know this all sounds super goddamn confusing, believe me I have been scratching my head all day. I have so many projects on my current MacBook I really really really do not wanna have to wipe it down and start all over. PLEASE if anyone knows how to deal with this I would love their help!
Cheers!!
New member here. Posted specifically for this. Today I shot myself in the foot. I replaced a file in my "/usr/lib" folder and then restarted my laptop. Now my laptop won't turn on.
I'm running an older version of Mojave, 10.4 maybe? (can't check right now because my laptop is unusable)
The file I replaced was called "libstdc++.6.0.0." and I had accessed its folder via typing in "csrutil disable" in my terminal as my laptop wouldn't let me replace the above file by simply dragging and dropping it in there like you normally would do to move a file (should have taken that as a warning sign...)
Anyway, I can only use my laptop by booting it and holding cmd+R and from there I can access my terminal, recovery etc. However I really don't want to format my mac if possible...
Right now, I've managed to hook my MacBook up to my roommates MacBook pro running OS Hi Sierra via Target Disk Mode & a thunderbolt cable.
I managed to get into my laptops bricked hard drive, and could even navigate my way to MY "/usr/lib" folder (via terminal commands) and see the NEW "libstdc++.6.0.0." file that I had moved in there that caused this whole mess in the first place!! But it won't let me drag it out and put the correct ORIGINAL file in!! It gives me a sign that looks like this "🚫" and says I don't have access to edit the files in this folder (same msg I got on my laptop which is why i overrode it in terminal via typing in "csrutil disable").
I have my MacBooks original "libstdc++.6.0.0" file (the one that I should never have removed) in a folder on MY MacBooks desktop, and via Target Disk Mode I've also been able to transfer it onto a USB stick. Its the only file on this USB as well.
I am wondering if I can somehow put the ORIGINAL "libstdc++.6.0.0" file back into my "/usr/lib" folder via Target Disk Mode.
I tried to drag and drop it back into my MacBooks "/usr/lib" folder via the Target Disk Mode and utilizing the terminal to direct me to the folder in the first place (you can't find it without using terminal), but it told me I didn't have permission to edit the folder because I'm accessing my MacBook (Running Mojave) through my roommates older MacBook Pro (running OS Hi Sierra) and it is telling me that in order to edit the file, I would have to type that same: "csrutil disable" into my roommates MacBooks terminal during recovery mode. (same thing I mentioned up above, the "🚫" appears).
It seems like if I put my roommates MacBook into recovery mode, open terminal and type in the "csrutil disable" prompt I may be able to set things straight. I just REALLY don't wanna ruin his laptop too.. so I'm coming here with my problem in hopes that someone may be able to weigh in on this ridiculous situation (I am backing my effing laptop up if i ever make it through this).
I know this all sounds super goddamn confusing, believe me I have been scratching my head all day. I have so many projects on my current MacBook I really really really do not wanna have to wipe it down and start all over. PLEASE if anyone knows how to deal with this I would love their help!
Cheers!!
Last edited: