PDA

View Full Version : use sd card for upgrade package space



milton1
October 24th, 2009, 02:03 PM
Hi all,

I am running a mini 9 with the 4GB drive and UNR 9.04. I am getting ready for 9.10, but I fear that, after the addition of a few extras, I will not have enough disk space to download and extract all the packages for the upgrade. My thought is to somehow use an SD card for extra space. Is it possible to mount the SD card to the correct folder, and have apt use that space for the upgrade? If so, what would be the correct folder? something in /tmp? or /var?

milton1
October 24th, 2009, 02:09 PM
Better yet, instead of remounting part of the existing directory structure, can I create a new mount point for the SD card and modify the settings for apt to use the new mount point for saving and extracting packages?

phillw
October 24th, 2009, 03:30 PM
Hi,

I don't have experience of this netbook, but you do seem to be in good company - there's a forum set up specifically for you and your bretheren.

http://www.ubuntumini.com/

I've had a kwik look at it and they are discussing 9.10, amongst other things.

Hope that helps,

Phill.

milton1
October 24th, 2009, 04:12 PM
Thanks, Phill; I'm aware of the ubuntumini forum. I have not found my answer there so far. My question is not specific to the mini. It is really a question about apt. Can I redirect it to save and extract packages on a different physical drive?

milton1
October 29th, 2009, 10:37 PM
OK, I think I found my answer here:

http://ubuntuforums.org/showthread.php?t=671990

but I am still wondering if this will work. When new packages are downloaded, they must be extracted before install, correct? Does this extraction occur within the same folder as download, or is there a second, temporary folder that would also need space for a large update/upgrade?

victor.cighir
November 7th, 2009, 11:29 AM
OK, I think I found my answer here:

http://ubuntuforums.org/showthread.php?t=671990

but I am still wondering if this will work. When new packages are downloaded, they must be extracted before install, correct? Does this extraction occur within the same folder as download, or is there a second, temporary folder that would also need space for a large update/upgrade?

Thanks for the link. I used it with some small modification, because my problem was slightly different.

I was running out of space on my root partition, so I needed to use a folder on my bigger partition as a download target for packages. :D


1.
sudo rm -Rf /var/cache/apt/archives
this removes the folder.

2.
cd /path-to-folder-on-big-partition

3.
sudo mkdir archives
and
sudo mkdir ./archives/partial . This last one is necessary because I had an error with that missing folder.

4. and finally simlink to this folder from /var/cache/apt

sudo ln -s /path-to-folder-on-big-partition/archives /var/cache/apt/

Good luck!