-3

I've install dual OS, one windows and Kali linux 2021.1, where I have allocated only 20GB for Kali linux

udev            3.8G     0  3.8G   0% /dev
tmpfs           773M  1.7M  772M   1% /run
/dev/nvme0n1p5   11G   11G     0 100% /
tmpfs           3.8G   96M  3.7G   3% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/nvme0n1p8  259M  1.7M  239M   1% /tmp
/dev/nvme0n1p9  5.2G  1.7G  3.3G  34% /home
/dev/nvme0n1p6  2.3G  884M  1.3G  42% /var
/dev/nvme0n1p1   96M   43M   54M  45% /boot/efi
tmpfs           773M   80K  773M   1% /run/user/1000

now I'm having trouble installing canon LBP2900 Printer driver on kali linux.

Selecting previously unselected package cndrvcups-common.
(Reading database ... 342140 files and directories currently installed.)
Preparing to unpack cndrvcups-common_3.21-1_amd64.deb ...
Unpacking cndrvcups-common (3.21-1) ...
dpkg: error processing archive cndrvcups-common_3.21-1_amd64.deb (--install):
 error creating directory './etc/cngplp': No space left on device
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 cndrvcups-common_3.21-1_amd64.deb

now should i extend my root directory or clean ? I don't know both extend and cleanning process. please suggest me with solution. thank you in advance.

1 Answers1

0

gparted can resize ntfs partitions. nevertheless it is highly recommended to make a backup before doing a resize.
Ideally you start up win 10 and shrink the windows partition. Afterwards boot from a live CD or similar to access the root partition and resize the root partition /dev/nvme0n1p5with gparted to your needs.

I would also recommend to increase your home partition.

If possible I always recommend to use separate hard discs for each OS. Resizing is always critical and a lot can happen - from corrupting the boot manager, losing data up to an unusable systems.

wired
  • 235
  • 1
  • 6
  • is there anyway to get space from cleaning cache file or uninstalling other programs in root directory – Pratap Shrestha May 24 '21 at 03:38
  • Sure you can uninstall unused or not needed programs. Cleaning cache also may help to a certain point. Also you can check for the biggest files/folders with e.g.: `du -a /var | sort -n -r | head -n 10`. You can also removed for unused or old software and e.g. kernel images with `apt autoremove` – wired May 24 '21 at 06:29
  • search old kernels with e.g `dpkg --list | egrep -i --color 'linux-image|linux-headers' ... – wired May 24 '21 at 06:39