Results 1 to 6 of 6

Thread: use sd card for upgrade package space

  1. #1
    Join Date
    Apr 2006
    Beans
    449
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    use sd card for upgrade package space

    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?

  2. #2
    Join Date
    Apr 2006
    Beans
    449
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: use sd card for upgrade package space

    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?

  3. #3
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,675
    Distro
    Ubuntu Development Release

    Re: use sd card for upgrade package space

    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.

  4. #4
    Join Date
    Apr 2006
    Beans
    449
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: use sd card for upgrade package space

    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?

  5. #5
    Join Date
    Apr 2006
    Beans
    449
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: use sd card for upgrade package space

    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?

  6. #6
    Join Date
    Mar 2009
    Location
    Romania
    Beans
    17
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: use sd card for upgrade package space

    Quote Originally Posted by milton1 View Post
    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.


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

    2.
    Code:
    cd /path-to-folder-on-big-partition
    3.
    Code:
    sudo mkdir archives
    and
    Code:
    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
    Code:
    sudo ln -s /path-to-folder-on-big-partition/archives /var/cache/apt/
    Good luck!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •