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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-08-2022, 08:33 PM
|
#16
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
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
Last edited by handshake92; 07-08-2022 at 08:37 PM.
Reason: Ommission info.
|
|
|
07-08-2022, 08:47 PM
|
#17
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
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.
|
|
|
07-08-2022, 08:53 PM
|
#18
|
Moderator
Registered: Aug 2002
Posts: 26,639
|
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.
|
07-09-2022, 04:21 AM
|
#19
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418
|
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.
|
07-09-2022, 06:38 AM
|
#20
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by jailbait
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.
|
|
|
07-09-2022, 06:56 AM
|
#21
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
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
|
|
|
07-09-2022, 07:22 AM
|
#22
|
Moderator
Registered: Aug 2002
Posts: 26,639
|
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.
|
07-09-2022, 07:32 AM
|
#23
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
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
|
|
|
07-09-2022, 07:53 AM
|
#24
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418
|
Quote:
Originally Posted by handshake92
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.
|
07-15-2022, 07:43 PM
|
#25
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,419
|
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.
|
07-23-2022, 07:26 AM
|
#26
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
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.
|
|
|
07-23-2022, 07:31 AM
|
#27
|
Member
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
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
|
|
|
07-23-2022, 09:04 AM
|
#28
|
Moderator
Registered: Aug 2002
Posts: 26,639
|
How large is your home directory?
du -h /home
|
|
|
07-23-2022, 09:47 AM
|
#29
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,418
|
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: - df -h
- sudo du -sh /*
We can make sense of it from there.
|
|
|
07-23-2022, 10:14 AM
|
#30
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991
|
Quote:
Originally Posted by handshake92
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.
|
|
|
All times are GMT -5. The time now is 09:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|