Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 22674  / 2 Years ago, sat, november 20, 2021, 5:26:48

Every time update manager prompts an update I get a message saying that there is not enough space available, however the partition with Ubuntu installed has over 10 GB of free space available.



I'm lost as to what needs to be done.



df -h returns:



Filesystem            Size  Used Avail Use%   Mounted on
/dev/loop0 5.6G 5.1G 237M 96% /
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 786M 792K 786M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 332K 2.0G 1% /run/shm
/dev/sda6 20G 6.7G 13G 34% /host
/dev/sda5 175G 120G 56G 69% /media/DATA


It would be great if someone could help me out on how to solve this problem. I'm a newbie to Ubuntu.


More From » wubi

 Answers
7

Your / partition is full, 96% used, 237Mb free space. That is where your packages will be downloaded and installed.



From what I see this is a Wubi install. You can resize your Wubi partition using the method described on this post





Basically you need to follow these to the letter:




  1. Get root privileges



    sudo -i


  2. Check how much space you have in your Windows disk



    df -h /host


  3. Create a new virtual disk bigger than the one you have at the moment, lets say 10GB



    (change the count= parameter as appropriate)




    cd /host/ubuntu/disks
    dd if=/dev/zero of=new.disk bs=1MB count=10000

  4. Format the new disk



    mkfs.ext4 -F new.disk


  5. Mount and copy files to new virtual disk




    mkdir -p /media/newdisk
    mount -o loop new.disk /media/newdisk
    rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' --exclude '/var/lib/lightdm/.gvfs' / /media/newdisk
    umount /media/newdisk
    exit

  6. Reboot into Windows and rename the file ubuntudisks
    oot.disk
    to ubuntudisksold_root.disk.


  7. Rename the file ubuntudisks
    ew.disk
    to ubuntudisks
    oot.disk
    .


  8. Reboot back into Ubuntu and check if everything is working. When you are 100% sure that everything is on the right places you can login to Windows and delete the file old_root.disk to get those 5Gb back.




(Source)


[#39514] Sunday, November 21, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dresuitable

Total Points: 69
Total Questions: 116
Total Answers: 122

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
dresuitable questions
Sat, May 15, 21, 04:38, 3 Years ago
Fri, Apr 14, 23, 09:53, 1 Year ago
Tue, May 16, 23, 18:13, 1 Year ago
Sun, Apr 24, 22, 12:59, 2 Years ago
;