when Im new to linux and try to run this below code
apt-get -f install
getting below error:
Checking the available space
How to increase the available space in /usr path?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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)