You are not logged in.

#1 2024-02-27 11:22:10

MeanTeacher
Member
Registered: 2023-09-24
Posts: 13

Can't install packages(Partition too full)

Hello guys,I want to install package "cuda".However,it says that my / partition is too full. How can I solve this? Or How can I extend the / partition?

Here is the error:

$ sudo pacman  -S cuda
[sudo] password for chj: 
resolving dependencies...
looking for conflicting packages...

Packages (4) gcc12-12.3.0-3  gcc12-libs-12.3.0-3  opencl-nvidia-545.29.06-4  cuda-12.3.2-1

Total Download Size:   1560.51 MiB
Total Installed Size:  4653.08 MiB

:: Proceed with installation? [Y/n] y
error: Partition / too full: 404615 blocks needed, 398613 blocks free
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

Here is the output of "df -h"

df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.8G  1.3M  7.8G   1% /run
efivarfs        128K   44K   80K  36% /sys/firmware/efi/efivars
/dev/nvme1n1p2   20G   17G  1.6G  92% /
tmpfs           7.8G  656K  7.8G   1% /dev/shm
tmpfs           7.8G   16K  7.8G   1% /tmp
/dev/nvme1n1p1  511M  248M  264M  49% /boot
/dev/nvme1n1p3  918G  209G  663G  24% /home
/dev/nvme0n1p1  916G  207G  663G  24% /mnt/extradisk
tmpfs           1.6G   28K  1.6G   1% /run/user/1000

Here is the output of "fdisk -x"

$ sudo fdisk -x
[sudo] password for chj: 
Disk /dev/nvme1n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ADATA SX8200PNP                         
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: E34375C9-7760-471C-B795-69AB05A92205
First usable LBA: 34
Last usable LBA: 2000409230
Alternative LBA: 2000409263
Partition entries starting LBA: 2
Allocated partition entries: 128
Partition entries ending LBA: 33

Device            Start        End    Sectors Type-UUID                            UUID                                 Name Attrs
/dev/nvme1n1p1     2048    1050623    1048576 C12A7328-F81F-11D2-BA4B-00A0C93EC93B 089F4E8C-C8BF-4151-B215-44B4B6C6A1FE      
/dev/nvme1n1p2  1050624   42993663   41943040 0FC63DAF-8483-4772-8E79-3D69D8477DE4 BE20912E-6726-47D1-B75D-F0F4C99EC18A      
/dev/nvme1n1p3 42993664 2000406527 1957412864 0FC63DAF-8483-4772-8E79-3D69D8477DE4 D813D092-1638-4FBD-99D7-EFE9E4CDEA85      


Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000P3PSSD8                           
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: 0B36CC7D-6BED-403D-8B41-F509F0DF92A9
First usable LBA: 34
Last usable LBA: 1953525134
Alternative LBA: 1953525167
Partition entries starting LBA: 2
Allocated partition entries: 128
Partition entries ending LBA: 33

Device         Start        End    Sectors Type-UUID                            UUID                                 Name Attrs
/dev/nvme0n1p1  2048 1953523711 1953521664 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 1C9AEFC6-D5AD-4C1F-A35A-2CB05694CE6A      


Disk /dev/zram0: 4 GiB, 4294967296 bytes, 1048576 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Offline

#2 2024-02-27 12:10:23

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 159

Re: Can't install packages(Partition too full)

Well, the error is clear and true. You need ca. 4.5GB and there are 1.6GB available.

please read https://wiki.archlinux.org/title/Partitioning
It should be possible to shrink and move your /dev/nvme1n1p3 partition and afterwards expand your /dev/nvme1n1p2 partition.
Please make sure, you have a backup before you do this.
I would recommend, you use a GUI frontend for partinioning from a live-system to do this job.

Offline

#3 2024-02-27 12:59:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: Can't install packages(Partition too full)

Offline

#4 2024-02-27 18:16:55

cryptearth
Member
Registered: 2024-02-03
Posts: 2,188

Re: Can't install packages(Partition too full)

Did you use some install helper or how did you end up with only a 20gb partition for /?

Offline

#5 2024-02-27 21:23:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: Can't install packages(Partition too full)

https://wiki.archlinux.org/title/Partitioning#/

15–20 GiB should be sufficient for most users with modern hard disks.

The partition size requirements are very dependent on what you plan to do with the system and 20GB on the root *can* be plenty enough.
Except oc. if you want to install plasma, gnome, some games, …

Offline

#6 2024-02-27 22:06:22

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 159

Re: Can't install packages(Partition too full)

When I look at the potential available diskspace of OP, I personally would recommand a root partition of 70-100GB. But this is only my humble opinion

Offline

Board footer

Powered by FluxBB