LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2022, 08:33 PM   #16
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by michaelk View Post
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.
/////////////////
Ans: I have appended the screenshot of "lsblk" and "df -h". Hopefull this will be helpful. Thanks
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-07-09 09-28-18.png
Views:	16
Size:	100.0 KB
ID:	39247  

Last edited by handshake92; 07-08-2022 at 08:37 PM. Reason: Ommission info.
 
Old 07-08-2022, 08:47 PM   #17
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: Yes This is a dual boot computer sharing with Windows 10 managed with Grub2win.
Kindly refer to latest reply with attachments showing "lsblk" and "df -h" command.
 
Old 07-08-2022, 08:53 PM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,639

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
You have one system partition which is 93% full. I assume it is an ext4 filesystem which means you are limited to 95%.
To find what directories have the must junk try this command:

sudo du -a / | sort -n -r | head -n 10

du estimates file space usage, sort list them by size and head -n 10 outputs the top 10. You can check the man pages for more information on what they do.
 
1 members found this post helpful.
Old 07-09-2022, 04:21 AM   #19
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
Another useful trick is to run 'ls -lht' which lists each directory contents in human readable form and date order. At the bottom of the list is the oldest files. If you haven't touched it in years, do you need it?
 
1 members found this post helpful.
Old 07-09-2022, 06:38 AM   #20
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
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.
Ans: My apology for the delay in responding.When I have moved the contents from /home or /usr -will the Debian OS automatically read them in the new location in the adjacent partition?
Thnaks.
 
Old 07-09-2022, 06:56 AM   #21
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
You have one system partition which is 93% full. I assume it is an ext4 filesystem which means you are limited to 95%.
To find what directories have the must junk try this command:

sudo du -a / | sort -n -r | head -n 10

du estimates file space usage, sort list them by size and head -n 10 outputs the top 10. You can check the man pages for more information on what they do.
Ans: thanks, I have type "sudo du -a" and it list out a very long page - listing every file and when I type "sort -n -r. The screen is not responding -it must have froze.

As I recall this Debian setup is my first foray into Linux OS so I chooose the setup partition for beginner where all those directories are pre-selected.
Hence I wouldnt know of any better & efficient setup that could have prevent ed this problem ( insufficient space).

What must I do now to removed those files hogging my hdd space.
Kindly advise. Thanks
 
Old 07-09-2022, 07:22 AM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,639

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Code:
sudo du -a / | sort -n -r | head -n 10
While those are separate commands the | above is what is known as a pipe. The output of the du command is "passed" to the sort command which is "passed" to the head command to get the desired answer. Need to find what and where the files are located.

For a beginner having everything in one partition is fine it is just that you ran out of space. Adding space is not difficult but can be tense since you are shrinking an existing partition and moving things around on the disk. gparted is a good tool but must be run from a live USB.
 
1 members found this post helpful.
Old 07-09-2022, 07:32 AM   #23
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
Another useful trick is to run 'ls -lht' which lists each directory contents in human readable form and date order. At the bottom of the list is the oldest files. If you haven't touched it in years, do you need it?
Ans: Thanks, I have type "ls -lht" it list plenty of files however I find the largest file is only 20Mb followed by multiple 4.0K files.
I am baffled how can the largest file of 20Mb and other files hog up to 95%.
How do I removed those large un-needed files?

Thanks
 
Old 07-09-2022, 07:53 AM   #24
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
Quote:
Originally Posted by handshake92 View Post
Ans: Thanks, I have type "ls -lht" it list plenty of files however I find the largest file is only 20Mb followed by multiple 4.0K files.
I am baffled how can the largest file of 20Mb and other files hog up to 95%.
How do I removed those large un-needed files?

Thanks
Post #6. Also, directories show as 4k when their contents can be many GB.

Last edited by business_kid; 07-09-2022 at 07:55 AM.
 
1 members found this post helpful.
Old 07-15-2022, 07:43 PM   #25
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,419
Blog Entries: 1

Rep: Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216
Did you empty /var/cache/apt/archives/? Files found there that don't have today's timestamp are rarely of any use, yet consume considerable space. Use apt clean to remove them. If any is/are found to be needed again, they can be readily retrieved from Debian's mirrors.
 
1 members found this post helpful.
Old 07-23-2022, 07:26 AM   #26
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Now I am at a critical situation where on boot up to the debian desktop I see a critical message that my Debian has only 1.0Gb available and should increase more space.
After I have tried all the suggestions and yet was unsuccessful in doing so. I may have to reinstall Debian again.

As this present setup is my first linux installation, I have choosen the default setup with the readied partitions.
where did I go wrong in the setup that has cause the short hdd space?

My hdd partition is SSD 230Gb (Windows 10-120Gb, Debian 11 40Gb, [win97] -30Gb]
IDE hdd 1.0Tb (Archive data, Backups, Data)
Grub2win -boot manager.
Thanks

Last edited by handshake92; 07-23-2022 at 07:49 AM.
 
Old 07-23-2022, 07:31 AM   #27
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrmazda View Post
Did you empty /var/cache/apt/archives/? Files found there that don't have today's timestamp are rarely of any use, yet consume considerable space. Use apt clean to remove them. If any is/are found to be needed again, they can be readily retrieved from Debian's mirrors.
Ans: Have tried as sugg.but the files cannot be deleted hence still no difference.
Thanks
 
Old 07-23-2022, 09:04 AM   #28
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,639

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
How large is your home directory?

du -h /home
 
Old 07-23-2022, 09:47 AM   #29
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
Quote:
Originally Posted by handshake92
where did I go wrong in the setup that has cause the short hdd space?
We don't know because you have wrung your hands and concealed the information. Please post the output of these commands:
  1. df -h
  2. sudo du -sh /*
We can make sense of it from there.
 
Old 07-23-2022, 10:14 AM   #30
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991

Rep: Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889
Quote:
Originally Posted by handshake92 View Post
Ans: thanks, I have type "sudo du -a" and it list out a very long page - listing every file and when I type "sort -n -r. The screen is not responding -it must have froze.

As I recall this Debian setup is my first foray into Linux OS so I chooose the setup partition for beginner where all those directories are pre-selected.
Hence I wouldnt know of any better & efficient setup that could have prevent ed this problem ( insufficient space).

What must I do now to removed those files hogging my hdd space.
Kindly advise. Thanks
This is not how it works. You need to provide some answers to be able to help. We have given you a lot of advice, it would be nice to explain what you tried, exactly what you typed and what the response was.
Telling your thoughts isn't really helpful, but telling the facts can get you somewhere.
 
  


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 03:42 PM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
[SOLVED] Firefox nightly: full screen isn't full screen any more. jdkaye Linux - Software 11 08-23-2014 01:37 PM
General Partitioning Limits: How full is too full to partition? orangesky Linux - Hardware 1 12-05-2009 06:27 PM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM

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

All times are GMT -5. The time now is 09:04 AM.

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