Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Delete files from sparseimage? (https://www.shirt-pocket.com/forums/showthread.php?t=3079)

magoo66 10-30-2007 10:26 PM

Delete files from sparseimage?
 
Sorry if this is elsewhere, I did a quick search and couldn't find it.

I upgraded to Leopard, but I want to hold onto my tiger backup for a while, just in case. I back up to a NAS, so my backup is a sparseimage file. I want to keep the backup, but don't want all the big stuff in it (I'm running out of room on the NAS). For example, I want to delete all my music/movies and my parallels virtual machine.

Is this as simple as mounting the image and deleting files? Will that cause problems mounting in the future? Will it still be bootable?

Thanks!

dnanian 10-30-2007 11:13 PM

Well... you can delete that stuff, but your image won't shrink. You'll have to then use hdiutil to shrink it. Basically open Terminal, type:

Code:

hdiutil compact
with a space after it, drag in the image file and press Return...

magoo66 10-30-2007 11:35 PM

What do you mean "drag in the image file"? You mean literally click it in finder and drag it on top of terminal? The sparseimage file is on my NAS, will it have to copy the entire thing onto my local harddrive? Does this whole process take a long time and/or use a lot of physical space while it's working? What are the chances of it screwing up the image? Sorry for all the questions, I just want to protect my data! :)

dnanian 10-30-2007 11:54 PM

I mean what I said -- drag the file into Terminal. It'll just type the full path there for you. Compression of the image is likely to take some time...

magoo66 10-31-2007 02:40 AM

That worked perfectly! I took my sparseimage file from over 147gigs to 37! And it looks like everything's still working in terms of mounting and accessing files. The process took about 1h45m over gigabit lan. Thanks for all your help.

dnanian 10-31-2007 11:04 AM

Great: glad you got it done.


All times are GMT -4. The time now is 12:14 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.