{"id":19,"date":"2007-11-22T23:25:04","date_gmt":"2007-11-22T23:25:04","guid":{"rendered":"http:\/\/installingcats.com\/2007\/11\/22\/no-space-left-on-device-error\/"},"modified":"2007-11-22T23:25:04","modified_gmt":"2007-11-22T23:25:04","slug":"no-space-left-on-device-error","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2007\/11\/22\/no-space-left-on-device-error\/","title":{"rendered":"No Space Left on Device Error"},"content":{"rendered":"

In a follow up to my post about how to dual boot Tiger and Leopard on your Mac<\/a>, this post is about removing large (unnecessary) files from your hard disk and recovering disk space on your hard drive before attempting to repartition Macintosh drives and dual booting.<\/p>\n

Many folks have been noticing that repartitioning disks using Leopard Disk Utility often fails with an error of “no space left on device”, even though there is plenty of space “left on the device”.<\/p>\n

A solution that many have found is removing any “large” files from your Tiger partition before attempting Leopard Disk Utility repartitioning. By large files I’m talking single files that are in the range of 1GB+.<\/p>\n

Before running off and deleting large files on your hard disk willy nilly, please, make a backup of your Mac hard drive using SuperDuper!<\/a> (free \/ donation-ware) or move these large files off to a secondary external hard disk connected via USB or FireWire.\u00a0 If you find that you actually need these files later, you can always move them back or revert to your complete backup you made to an external drive.<\/p>\n

A great program that helps with finding and moving \/ removing large files on your disk is Disk Inventory X<\/a>. Disk Inventory X generates a visual file map of your disk like the one displayed here. \"DiskClick on the large squares and rectangles to inspect the details of the files. The usual suspects that you can get rid of safely include scratch disks such as the Photoshop scratch disk and the Apple safe sleep memory image. This safe sleep \/ hibernate memory file takes the contents of your physical RAM and copies it to disk (in a single file) so that your Mac can “hibernate” for an indefinite period, with or without power, without losing what you were working on. The downside of this is that it creates a file equal the size of your physical memory. That can be anywhere from 1GB to 4GB for Macbook users.<\/p>\n

The skinny on how to get rid of this sleep image file: First find your current sleep setting by entering this in a Terminal window:<\/p>\n

pmset -g | grep hibernatemode<\/p>\n

That should return you something like “hibernatemode 3”. Remember this number, send an email to yourself, write it down on a scratch pad, whatever it takes to remember your default mode. Mode 3 keeps your RAM powered during sleep to allow super fast wake-up, but also writes an image file of all memory onto disk in case power is lost.<\/p>\n

To change the hibernate safe sleep setting to not create an image file on the disk, i.e. mode 0 (mode zero, not the letter ‘o’), enter the following in a Terminal window:<\/p>\n

sudo pmset -a hibernatemode 0<\/p>\n

Enter your password when asked to do so, then delete the image file with the following Terminal command:<\/p>\n

sudo rm \/var\/vm\/sleepimage<\/p>\n

Macworld has a great article with more information about safe sleep and hibernation<\/a> on portable Macs.<\/p>\n

The best solution to the “no space left on device” errors while partitioning your Mac hard disk is to continue with finding and deleting 1GB+ files that you can live without or can move off to a temporary external disk. Then get back to repartitioning your Mac hard disk in preparation to setup a dual boot of OS X Tiger and Leopard on your Macbook<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

In a follow up to my post about how to dual boot Tiger and Leopard on your Mac, this post is about removing large (unnecessary) files from your hard disk and recovering disk space on your hard drive before attempting to repartition Macintosh drives and dual booting. Many folks have been noticing that repartitioning disks […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[7,35,36,37,38,39],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}