fixed : how to delete undeletable files

Question :

I have recently cleaned up my Mac by putting a lot of old and unused files into the Trash (after backing them up to an external hard drive). But now, when I try to empty the Trash, some files remain, they seem undeletable… I even get a warning I can’t delete them… even a Forced Empty-ing of the Trash doesn’t work… but I’m completely sure I want to get rid of these files…

Isn’t there any way to delete them ?

Answer :

Yes – there is.

These ‘undeletable’ files are so-called “system immutable”, which basically means they cannot be changed or deleted even by the Root (super user) in the Terminal. Even switching to “Single User” mode and attempting to remove them won’t work.

Here’s what to do :

– restart your Mac in “Safe Boot” mode (press the SHIFT-key during startup ; as soon as you notice it takes a lot longer to boot than usual, you can take your finger of the keyboard, but even then it may take some time for you Mac to completely startup, so be patient…)

– now, log in as an administrator (i.e. using the/an account that has Administrator-rights)

– then, empty the Trash…

…that’s it. Done !

Thanks to SpiderJay for sharing this solution (he also found this solution somewhere on the internet), he originally posted it on his blog :

http://www.spiderjay.com/blog/?p=37

…but that link doesn’t work anymore, that’s why I’ve now posted it here 

fixed : installing a new hard drive (option 2)

here’s another way of installing a new HD in a Mac :

in this example a new HD was placed in a MacBook Pro (end 2008) running OSX 10.7 Lion

1- prepare

– put OSX Lion installer on a 4GB USB stick ; for instructions, look here :

make sure you have a new DVD-writable or a completely empty 4GB USB-stick, download Lion Disk Maker and follow the instructions that come with it :

http://blog.gete.net/lion-diskmaker-us/
– printout the instructions on how to replace a HD on a MBP 2008/2009 from iFixit

http://www.ifixit.com/Guide/MacBook-Pro-15-Inch-Unibody-Late-2008-and-Early-2009-Hard-Drive-Replacement/841/1

– make a TimeMachine backup

2- replace the HD

– shut down and completely unplug
– use the directions from iFixit to get your current HD out, and the new Momentus XT in

3- install a fresh versions of MacOSX and add your data from TimeMachine

– plug in the USB stick
– startup pressing the ALT key and choose the “EFI Boot” (USB installer) to boot from
– then install the basic OSX EFI
– continue and open Disk Utility
– select the new harddisk and Erase to a “Mac OS Extended (Journaled)” format (to get a one-partition OSX HFS+ formatted drive)
– install a new version of OSX Lion
– during this installation, you are asked to migrate from a TimeMachine ; do that (and make sure you’re connected to your TimeMachine backup-disk through a cable – Ethernet/UTP, USB or FireWire)
– when the install is done, restart normally (booting from your new internal harddisk)
– then update your mailbox (this will be asked and done automatically)
– then goto Software Update (under the Apple logo in the upper left corner) and install all available updates
– restart and boot from the USB stick (“OSX EFI”)
– open Disk Utility and Repair Disk Permissions on your new internal harddrive
– restart normally (booting from the internal drive)
– again, run Software Update to install all available updates (in my specific case, there was a ‘rather important’ EFI update a this point)
– repeat Software Update once more to make sure there are no extra updates
– shut down
– restart normally ; done !

Note : if you’re looking for an other way to upgrade your harddirve, look here :

https://macmanusnl.wordpress.com/2012/06/12/installing-a-new-hard-disk-1/ ‎

fixed : installing a new hard disk (option 1)

Here’s a simple 3-step way of replacing a HD in a Mac :

[ in this example a new HD is put into a Mac mini (version mid 2007) ]

1- clone the internal HD directly onto the new HD
These instructions assume you have another Intel-Mac and a USB-enclosure for a SATA-harddisk (that you will afterwards use to turn the old internal HD into an external one) available :
– put the new harddrive into the USB-enclosure
– connect the USB-cable to your other Intel-Mac
– connect the Mac mini to the Intel-Mac using a FireWire-cable
– (temporarily, just during startup) connect a USB-keyboard to your Mac mini
– startup the Mac mini while pressing the T-key on the keyboard (“Target Mode”)
– both the Mac mini and the USB-connected new HD will now show up in your Finder (on the Intel-Mac)
– open Disk Utility
– click on the Erase-tab
– select the USB-connected HD list on the left, and erase it in MacOS Extended (Journaled) format
[ BEWARE : do NOT format your HD in MacOS Extended (“Case-sensitive” Journaled) mode ! As that will prevent some applications to run ! e.g. Adobe Photoshop 10 Editor ]
– click on the Restore-tab
– from the list on the left drag the partition of your Mac mini onto the “Source”-field
– then drag the new partition from your new HD onto the “Destination”-field
– click the Restore-button, and wait

2- replace the HD
– open the instructions on how to replace the HD from the iFixit-website (or print them out) and read them

http://www.ifixit.com/Guide/Installing-Mac-mini-Model-A1176-Hard-Drive/1108/1

– get the new HD out of the USB-enclosure
– now gently open the Mac mini enclosure
– blow the dust of the interior using a compressed air blower [ do NOT use a hair dryer ! ] or using a vacuum cleaner with a piece of thin cloth (e.g. a napkin) tightly fit to the suction tube (to prevent anything from actually being sucked in)
– replace the HD (make sure the connectors are clean and fit thight)
– while you’re at it, you might also check the AirPort-card connector
– and finish up (all using the iFixit-instructions)

3- test the new HD
– restart

Note : if you would like an alternative procedure for replacing a hard drive in a Mac, look here :

https://macmanusnl.wordpress.com/2012/06/12/installing-a-new-hard-drive-2/ 

BEWARE ! : FBI warns not to upgrade software through free-WiFi !

The FBI has reported that users of ‘out-of-home-WiFi’ (free-WiFi hotspots, hotel WiFi, etc.) have become infected with malware, while upgrading ‘a widely used software product’.

http://www.fbi.gov/scams-safety/e-scams

The original report states :

“Recently, there have been instances of travelers’ laptops being infected with malicious software while using hotel Internet connections. In these instances, the traveler was attempting to set up the hotel room Internet connection and was presented with a pop-up window notifying the user to update a widely used software product. If the user clicked to accept and install the update, malicious software was installed on the laptop. The pop-up window appeared to be offering a routine update to a legitimate software product for which updates are frequently available.”

Even though the software product is not mentioned by name, it is good to inform you that one of the most common software products using this type of upgrades is Adobe Flash… so watch out when upgrading Adobe Flash (and any other software upgrade that is offered) when you are not on your own private WiFi-network.

So… here are some useful guidelines regarding software updates while traveling :

1- if you can do without upgrading, don’t upgrade while traveling ; wait until you’re back home on your own trusted WiFi-network

2- if you really need to upgrade, take these precautions : when you are prompted to upgrade any software while on an ‘out-of-home-WiFi’-network, click to close the pop-up window that is urging you to upgrade. Then either use OSX’s built-in “Software Update…” feature, or open the (Mac) App Store to download your updates from there, or manually type the URL of the known software-maker and download the software update directly form their site (after having double checked that your installed version is not the latest one).

Note : in the case of of the Adobe Flash browser plugin, the software-maker’s website is Adobe.com

BEWARE ! : MAC Defender = malware ! don’t install ! remove it !

Since some of you might not know… just a quick note to inform you :

Your Mac is not completely immune to viruses and malware (and never has been). The  weakest link in the security chain of Mac-protection is often the user himself…

A program called “MAC Defender” claims to be your best protection, but do not install it ! If you really need a reliable virus-protection app for you Mac, go only with the renowned ones like Sophos, Kasperski, Norton, ClamXav or VirusBarrier (downloads available via MacUpdate.com, or from their respective brand’s websites).

MAC Defender is a fake AntiVirus-app ! It’s a trojan horse intended for phishing your valuable data, passwords and credit card info.

Apple has put info on how to avoid or remove MAC Defender online here :

http://support.apple.com/kb/HT4650?

…but still : best remedy is not to install it at all !