[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrade Problem

On Fri 04 Jan 2019 at 08:57:18 +0000, Andy Smith wrote:

> Hello,
> On Fri, Jan 04, 2019 at 02:47:52AM +0000, Matthew Crews wrote:
> > My guess? /home is on the same partition as /, which is a common setup
> > for most end users. Running lsblk is one way to tell if this is the case.
> >From one of Stephen's earlier emails:
> root@AbNormal:/home/comp# df -hl
> Filesystem      Size  Used Avail Use% Mounted on
> udev            3.9G     0  3.9G   0% /dev
> tmpfs           789M   18M  772M   3% /run
> /dev/sda1        23G   23G     0 100% /
> tmpfs           3.9G   18M  3.9G   1% /dev/shm
> tmpfs           5.0M  8.0K  5.0M   1% /run/lock
> tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
> /dev/sda7       1.9G  6.5M  1.7G   1% /tmp
> /dev/sda5       9.2G  6.0G  2.8G  69% /var
> /dev/sda8       416G  103G  292G  27% /home
> /dev/sdc1        20G  301M   19G   2% /sdc1
> /dev/sdc2       439G  169G  270G  39% /sdc2
> /dev/sdb1       1.8T  288G  1.5T  17% /sdb1
> tmpfs           789M  4.0K  789M   1% /run/user/110
> tmpfs           789M   28K  789M   1% /run/user/1000
> i.e. /home is already on a separate partition.
> Several people have now suggested saving space in a bits of the
> filesystem that Stephen has on dedicated partitions, so this is not
> helpful.
> This partitioning scheme seems really odd and unwieldy. So much
> wasted space on partitions that will never need anything like what
> they have been assigned. This seems like a great example of how not
> to partition a system - anyone thinking of using this many
> partitions really should consider LVM in future.
> Anyway, Stephen, you need to focus on finding useless things in / and
> either removing them or moving them elsewhere. If it's just data
> then it looks like somewhere under /home would be a good choice as
> it has 292G available.
> Ask before deleting anything you don't fully understand.

1. First assess what the space on / is allocated to.

   du -hs /lib/
   du -hs /etc/
   du -hs /usr/
   du -hs /usr/bin/
   du -hs /usr/local/ 

   etc, etc.

2. Then go through

   dpkg -l | less

   line by line, asking "do I really need that?". I'd not bother with
   looking at the library packages. Tedious? Yes, like tidying the boot
   of a car.

3. Purge what is not wanted ("do I really need ten kernel packages?)
   with apt and occasionally use 'apt --purge autoremove', keeping an
   eye on 'df -hl'.


Reply to: