0

when Im new to linux and try to run this below code

apt-get -f install

getting below error:

enter image description here

Checking the available space

df

Tho output enter image description here

How to increase the available space in /usr path?

  • 5
    would you mind pasting your output as text rather than images? – umläute Oct 16 '13 at 12:58
3

since you are using LVM to manage your /usr partition, you probably should check the LVM-documentation.

to extend the partition (to e.g. 10GB)

# lvextend -L10G /dev/mapper/vg0-usr

after that you can extend the filesystem. this is fs-specific, under ext3 use:

# resize2fs /dev/mapper/vg0-usr

you might have to reboot between the two commands, and it would be safer to do an offline fsresize (that is: unmount /usr before running resize2fs; which might be hard on a running system; use a live-CD in such a case (e.g. the Debian installer CD has a "Rescue" option for such cases)

  • 2
    There shouldn't be any need to reboot after an lvextend. And AFAIK online expand is pretty safe. – derobert Oct 16 '13 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.