Previous 1 2 Next 16 Replies Latest reply: Jan 26, 2014 3:51 AM by Neville Hillyer
Radishhartley Level 1 (0 points)

Hi all,

 

I stupidly deleted the mach_kernel file and didn't realise its importance until I started the laptop up to find it would not reboot. I am running 10.5.8.  I have been advised that in theory the deleted file should still be sitting in my recycle bin, is that right? If this is the case can I connect my hard drive to another computer and simply drag and drop it back to its location. Will this work and then allow me to start up the mac as normal.

 

Any help that can be passed over would be much appreciated.  I am a computer and for that matter mac novice and I'm not being modest so please go easy.


Mac OS X (10.5.8)
  • Niel Level 10 (298,606 points)

    If you haven't emptied the Trash, it'll still be there. Connect your computer to another Mac with a FireWire cable, start it up with the T key held down, open your home folder on it, choose Go to Folder from the Finder's Go menu, provide .Trash as the path, and drag the file back.

     

    (98094)

  • Neville Hillyer Level 4 (1,865 points)

    If you dragged it to the Trash and your Mac has not been corrupted or modified it should still be there. However if you deleted it via a Terminal command it will have been permanently lost.

     

    You may need to use something like the following in 'Go to Folder':

     

    /Volumes/volume-name/Users/user-name/.Trash/

     

    Please return here if you have any difficulties.

  • Radishhartley Level 1 (0 points)

    Thank you Neville. I would have right clicked and sent to trash or dragged it to the bin with the mouse. Not sure if either of those constitute a terminal command. I hope not!

  • Radishhartley Level 1 (0 points)

    I will give this a go and hope it works. When I connect to another computer does it have to be a mac or would a PC work? Thank you for your help.

  • Niel Level 10 (298,606 points)

    It basically needs to be a Mac.

     

    (98121)

  • Radishhartley Level 1 (0 points)

    Niel, just realised I do not have a FireWire port but I do have an Ethernet port. Can I connect Ethernet to USB or FireWire port? My computer that has the missing mach_kernel is a samsung notebook NC10.

    Thanks.

  • Niel Level 10 (298,606 points)

    This can't be done through Ethernet, as that requires a working OS. If the computer will boot to Single User mode, you can use that. If not, you'll need to use a different system.

     

    (98122)

  • Radishhartley Level 1 (0 points)

    Sorry but I'm sure a very basic question, how could I test whether I can boot it in single user mode?

  • Niel Level 10 (298,606 points)

    Press the Command and S keys at startup.

     

    (98126)

  • BDAqua Level 10 (122,242 points)

    Single User Mode, CMD+s keys at bootup.

  • Neville Hillyer Level 4 (1,865 points)

    BDAqua wrote:

     

    Single User Mode, CMD+s keys at bootup.

     

    I gave up trying to make this logical point several years ago. People tend to describe keys by what is written on them rather than by what they produce. The most confusing exception is the Apple option key which has alt written on it.

  • Neville Hillyer Level 4 (1,865 points)

    Niel wrote:

     

    Press the Command and S keys at startup.

     

     

    Have you tried this with a missing mach_kernel ?

     

    I have been experimenting;

     

    1. I used Invisibility Toggler
    2. dragged mach_kernel to Trash
    3. restarted holding cmd s

     

    The result was that it ignored my normal boot volume and booted into another one. Thereafter only option key at start or OS 9 would allow me to select the volume with a missing mach_kernel but each time it started in the wrong volume. After several experiments I logged into another volume as root and returned mach_kernel. All corrected now.

     

    I have multiple volumes and am not sure what happens with only one volume.

     

    I will investigate further but there may not be a simple practical answer for the OP.

     

    I would like to know how the OP was able to move an invisible item to the Trash in the first place.

  • Neville Hillyer Level 4 (1,865 points)

    Please say which OS and Mac you have.

     

    Do you own, or have access to, any other Mac hardware or installer disks?

     

    Do you have any backups?

     

    How did you trash the normally invisible mach_kernel?

  • Radishhartley Level 1 (0 points)

    Sorry for my delay, I have been away.

     

    To answer your questions above:

     

    The OS is 10.5.8 and it is not a mac but a samsung nc10

     

    I am currently back packing in Panama so do not have anything with me. But I'm sure I could get access to a Mac if that would somehow help.

     

    I don't have any back ups

     

    The kernel icon suddenly appeared which is why I deleted it - stupid I know

     

    Do you think I will be able to connect to another mac and somehow read the hard drive and pull the mach_kernel file out of the trash?

     

    Thanks in advance!

Previous 1 2 Next