On my W530 Thinkpad laptop I am running openSUSE Tumbleweed with KDE desktop and btrfs on the root partition. When running a manual sudo zypper dup today I received a warning that my Root partition is running out of disk space with only 136MiB remaining.
Here is what I have on my system:-
alastair@IBMW530:~> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 500M 0 part /boot/efi
├─sda2 8:2 0 164.6G 0 part
├─sda3 8:3 0 619M 0 part
├─sda4 8:4 0 913M 0 part
├─sda5 8:5 0 49G 0 part /var
│ /usr/local
│ /tmp
│ /srv
│ /root
│ /opt
│ /boot/grub2/x86_64-efi
│ /boot/grub2/i386-pc
│ /.snapshots
│ /
├─sda6 8:6 0 2G 0 part [SWAP]
└─sda7 8:7 0 683.9G 0 part /home
sdb 8:16 1 3.8G 0 disk
├─sdb1 8:17 1 222K 0 part
├─sdb2 8:18 1 6M 0 part
├─sdb3 8:19 1 751.2M 0 part
└─sdb4 8:20 1 3G 0 part
sr0 11:0 1 1024M 0 rom
alastair@IBMW530:~> sudo fdisk -l
[sudo] password for root:
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000MX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 2CD01F0E-9567-410F-AA47-B10A0FE8B1A1
Device Start End Sectors Size Type
/dev/sda1 2048 1026039 1023992 500M EFI System
/dev/sda2 1026048 346144984 345118937 164.6G Microsoft basic data
/dev/sda3 346146816 347414527 1267712 619M Windows recovery environment
/dev/sda4 347416576 349286399 1869824 913M Microsoft basic data
/dev/sda5 349286400 452052991 102766592 49G Linux filesystem
/dev/sda6 515045376 519239679 4194304 2G Linux swap
/dev/sda7 519239680 1953523711 1434284032 683.9G Linux filesystem
Disk /dev/sdb: 3.76 GiB, 4041211904 bytes, 7892992 sectors
Disk model: PDM01_4G C3I2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 66988B66-FFC1-456A-9477-F6E9094B985F
Device Start End Sectors Size Type
/dev/sdb1 64 507 444 222K Microsoft basic data
/dev/sdb2 508 12795 12288 6M EFI System
/dev/sdb3 12796 1551175 1538380 751.2M Microsoft basic data
/dev/sdb4 1552384 7892928 6340545 3G Linux filesystem
alastair@IBMW530:~> sudo parted -l
Model: ATA CT1000MX500SSD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 525MB 524MB fat32 boot, esp
2 525MB 177GB 177GB ntfs msftdata
3 177GB 178GB 649MB ntfs hidden, diag
4 178GB 179GB 957MB ntfs msftdata
5 179GB 231GB 52.6GB btrfs
6 264GB 266GB 2147MB linux-swap(v1) swap
7 266GB 1000GB 734GB ext4
Model: UDISK PDM01_4G C3I2.0 (scsi)
Disk /dev/sdb: 4041MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 32.8kB 260kB 227kB Gap0 hidden, msftdata
2 260kB 6552kB 6291kB EFI boot partition boot, hidden, esp
3 6552kB 794MB 788MB Gap1 hidden, msftdata
4 795MB 4041MB 3246MB ext4
alastair@IBMW530:~>
I have plenty of space available in my /home ext4 partition but what I am not sure about is why my root partition is so full. It seems to me a reasonable size at 49 GiB. What is taking all the space and is it occupied by old and no longer required files and repos. I think my repos need cleaning out before I mess with the partitions.
Here is what I have at present:-
alastair@IBMW530:~> sudo zypper lr -u
[sudo] password for root:
Repository priorities are without effect. All enabled repositories share the same priority.
| Alias | Name | Enabled | GPG Check | Refresh | URI
—±-------------------------------------±-------------------------------------±--------±----------±--------±------------------------------------------------------------------------------------------
1 | NVIDIA:repo-non-free | repo-non-free | Yes | (r ) Yes | Yes | Index of /opensuse/tumbleweed
2 | Update_repo | Update repo | No | ---- | ---- | http://download.opensuse.org/update/tumbleweed/
3 | google-chrome | google-chrome | Yes | (r ) Yes | Yes | https://dl.google.com/linux/chrome/rpm/stable/x86_64
4 | https-download.opensuse.org-a9e535c8 | openSUSE:Tumbleweed | No | ---- | ---- | https://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/
5 | https-download.opensuse.org-c6fe2d99 | KDE:Frameworks5 | No | ---- | ---- | https://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Factory/
6 | https-download.opensuse.org-db155cce | KDE:Extra | No | ---- | ---- | https://download.opensuse.org/repositories/KDE:/Extra/KDE_Frameworks5_openSUSE_Tumbleweed/
7 | libdvdcss | libdvdcss | No | ---- | ---- | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/
8 | openSUSE:repo-non-oss | repo-non-oss | Yes | (r ) Yes | Yes | /tumbleweed/repo/non-oss - openSUSE Download
9 | openSUSE:repo-openh264 | repo-openh264 | Yes | (r ) Yes | Yes | Index of /openh264/openSUSE_Tumbleweed
10 | openSUSE:repo-oss | repo-oss | Yes | (r ) Yes | Yes | /tumbleweed/repo/oss - openSUSE Download
11 | openSUSE:repo-oss-debug | repo-oss-debug | No | ---- | ---- | /debug/tumbleweed/repo/oss - openSUSE Download
12 | openSUSE:repo-oss-source | repo-oss-source | No | ---- | ---- | /source/tumbleweed/repo/oss - openSUSE Download
13 | openSUSE:update-tumbleweed | update-tumbleweed | Yes | (r ) Yes | Yes | /update/tumbleweed - openSUSE Download
14 | packman | packman | No | ---- | ---- | Index of /packman/suse/openSUSE_Tumbleweed
15 | security | Security tools (openSUSE_Tumbleweed) | No | ---- | ---- | http://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/
16 | tailscale-stable | Tailscale stable | Yes | (r ) Yes | No | https://pkgs.tailscale.com/stable/opensuse/tumbleweed/x86_64
alastair@IBMW530:~>
Which can I remove and will this enable me to free up space on root partition?