LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-05-2022, 09:11 AM   #1
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Rep: Reputation: 0
Hdd partition is full- unable to install any apps


Hi! This Debian 11 is my first attempt to explore Debian and I truly loved it for for its stability and user friendliness.
I was wrong to set the Debian partition of 40GB only.(2.6 Gb/41.8Gb available)
A short while later it seems the hdd is full now. Many apps wont installed.I have removed many unnecessary apps
-yet I still cant install new apps.

What must I do to regain new space or to enlarge the partition.

My desktop pc is grub2win boot manager Windows 10 & Debian 11
Any help is appreciated. Thanks
 
Old 07-05-2022, 09:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,655

Rep: Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814Reputation: 7814
first of all you may try
1. clean /tmp
2. run: apt autoremove
3. check which partition is full
4. try to find some "big" files, probably you saved some videos or books or ???
In general 40 GB is more than enough for a standard debian install
 
2 members found this post helpful.
Old 07-05-2022, 09:52 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
How did you partition the drive?
Is this a dual boot computer?

The basic system installs in less then 10GB so either you downloaded a lot of stuff or just maybe did not create some partitions with enough space. Post the output of the command lsblk and df -h.

apt clean
and
apt autoclean

Will clean up the cache and free up space.
 
2 members found this post helpful.
Old 07-05-2022, 12:50 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,375

Rep: Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564
Quote:
Originally Posted by handshake92 View Post

What must I do to regain new space or to enlarge the partition.
If you have enough spare space to enlarge the partition I would suggest that you create another new partition instead of expanding the existing one. Then move a portion of the existing partition to the new partition. You could move /home, /usr, or any other directory tree that has a large amount of data.
 
2 members found this post helpful.
Old 07-05-2022, 01:26 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,341
Blog Entries: 1

Rep: Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197
I have around 20 Debian 11 installations. The largest / filesystem for any is 8GB. Most are on 6.4GB or less. All have plenty of freespace. You must have downloaded and installed an awful lot of stuff to fill 40GB. And/Or, you must not have created a separate filesystem for /home, and have a lot of personal data there. I keep /homes on separate filesystems. /var/log/journal is another location where stale files accumulate. If you enabled snapshotting, it's very likely the root of your space problem. Old ones need to be deleted before they run you out of freespace.
 
1 members found this post helpful.
Old 07-06-2022, 07:06 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,270

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
What I do is start from / and run 'du -sh *'

Go down in the biggest directories. Look after the Gigabytes and the Megabytes will look after themselves .
 
1 members found this post helpful.
Old 07-06-2022, 10:37 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,341
Blog Entries: 1

Rep: Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197
Quote:
Originally Posted by business_kid View Post
What I do is start from / and run 'du -sh *'
Next time, try ncdu instead.
 
Old 07-06-2022, 03:36 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,270

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by mrmazda View Post
Next time, try ncdu instead.
It's not installed. Might do sometime.
 
Old 07-06-2022, 11:02 PM   #9
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
How did you partition the drive?
Is this a dual boot computer?

The basic system installs in less then 10GB so either you downloaded a lot of stuff or just maybe did not create some partitions with enough space. Post the output of the command lsblk and df -h.

apt clean
and
apt autoclean

Will clean up the cache and free up space.
Ans: How do i copy the contents from the command "lsblk" and "df-h" and post them?
thanks
 
Old 07-06-2022, 11:25 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,341
Blog Entries: 1

Rep: Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197Reputation: 2197
Make sure pastebinit (or equivalent substitute) is installed. If it is, then:
Code:
sudo lsblk -f | pastebinit
dh -h | pastebinit
will upload them directly to a pastebin. This is best for larger files like journals, dmesg & logs.

Redirecting to a file that can be copied can work too, better for short output typical of lsblk & df:
Code:
sudo lsblk -f > somefilenameofyourchoice.txt
df -h >> somefilenameofyourchoice.txt
The first line will put the lsblk output into a file, while the second will add its output to the same file.
 
1 members found this post helpful.
Old 07-07-2022, 12:36 AM   #11
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
(cmd 1;cmd2 ; ...) | nc termbin.com 9999

The parentheses run all your commands together in one subshell, to group the output altogether, and post at one URL.

Research the find command, to use the -size +999M -xdev to find big files
And maybe something like the -mtime in case something made a zillion little new files

Last edited by !!!; 07-07-2022 at 12:42 AM.
 
1 members found this post helpful.
Old 07-07-2022, 11:19 PM   #12
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
first of all you may try
1. clean /tmp
2. run: apt autoremove
3. check which partition is full
4. try to find some "big" files, probably you saved some videos or books or ???
In general 40 GB is more than enough for a standard debian install
Ans: With root access-have tried and key-in-
1.clean /tmp
>>key-in at terminal: clean /tmp
>>bash: clean:command not found.

2. run: apt autoremove
>> running: "took very long time "waiting for cache lock: could not get lock /var/lib/dpkg/lock-frontend.It is held by process 3755 (synaptic)......

3. check which partition is full
>>have chk /bin, /boot, /dev, /etc, /home. Can't find any big file

4. try to find some "big" files, probably you saved some videos or books or ???

conclusion: Unsuccessful with the outcome. Pls help. Thanks
 
Old 07-07-2022, 11:52 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
Quote:
Ans: How do i copy the contents from the command "lsblk" and "df-h" and post them?
thanks
You should be able to highlight the text in the terminal by clicking the left mouse button, then right click and select copy.
Press the "Go advanced" button and select the balloon (third from the left) which is the wrap in quotes, click the mouse between the two quotes and paste the text.

1. The "clean /tmp" is not an executable command but to actually look in the /tmp directory and actually manually delete files. I would not expect there to be much to actually delete.

2. The "It is held by process.." is synaptic trying to automatically find stuff to update. As soon as it finishes you can run the apt commands.

3. Without seeing the output of the df -h command we can not tell where to look for big files etc.
 
1 members found this post helpful.
Old 07-08-2022, 09:11 PM   #14
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
How did you partition the drive?
Is this a dual boot computer?

The basic system installs in less then 10GB so either you downloaded a lot of stuff or just maybe did not create some partitions with enough space. Post the output of the command lsblk and df -h.

apt clean
and
apt autoclean

Will clean up the cache and free up space.
Ans: My apology for the delay. I have tried "apt clean and apt autoclean but it always shows "0" clean.
What should I do next.thks
 
Old 07-08-2022, 09:19 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,521

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
We need to see the output of the df command as posted above.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD Partition Failed Boot / ddrescue Operation Completed / Now What to Try and Restore Failing HDD/Partition? GNewbie Linux - Newbie 15 10-14-2016 04:42 PM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 09:52 PM
[SOLVED] Firefox nightly: full screen isn't full screen any more. jdkaye Linux - Software 11 08-23-2014 02:37 PM
General Partitioning Limits: How full is too full to partition? orangesky Linux - Hardware 1 12-05-2009 07:27 PM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration