LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2021, 12:03 AM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120

From that inxi certainly looks like your system is full. Try this from the live terminal - it will take a while, so don't interrupt it. For the first usage of sudo you'll get some message about causing the end of the world - just hit <Enter> or whatever.
Code:
sudo mount /dev/sda2 /mnt
du -hT
sudo du /mnt -xh | sort -hr | head -n 20
Pick an obvious troublemaker, say /mnt/home/jkneex and run the last command again like this
Code:
sudo du /mnt/home/jkneex/ -xh | sort -hr | head -n 20
sudo rm /mnt/home/jkneex/badboy1
sudo rm /mnt/home/jkneex/badboy2
"rm" will delete any file you pass to it - it's on your neck

Last edited by syg00; 12-15-2021 at 12:04 AM. Reason: added du
 
1 members found this post helpful.
Old 12-15-2021, 12:36 AM   #17
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Instead of all that repeated typing to find the heavy usage, just make sure ncdu is installed, then after mounting, login as root (if root has its own password) or su -, cd / or cd /home and open ncdu, from which you can navigate according to where directory sizes lead you to find where the space has gone.
 
Old 12-15-2021, 02:43 AM   #18
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Good point if the OP can come to terms with the curses interface. Nice tool.
 
Old 12-15-2021, 07:49 PM   #19
jkneex
LQ Newbie
 
Registered: Dec 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks Mr Mazda. I don't know what ncdu is and couldn't verify if it is installed.
 
Old 12-15-2021, 07:51 PM   #20
jkneex
LQ Newbie
 
Registered: Dec 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
trying to empty memory

I tried the coding for emptying some memory. The problem I seemed to run into was naming the user. There are 2 options from the regular login screen which I have circled in red, but neither seems to work. Screen shots...
Attached Thumbnails
Click image for larger version

Name:	linux 8.jpg
Views:	7
Size:	27.8 KB
ID:	37866   Click image for larger version

Name:	linux 9.jpg
Views:	8
Size:	22.2 KB
ID:	37867   Click image for larger version

Name:	linux 10.jpg
Views:	7
Size:	13.3 KB
ID:	37868  
 
Old 12-15-2021, 08:21 PM   #21
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
You missed a space character when typing this command.
Code:
sudo mount /dev/sda2 /mnt
You did not preserve case when typing this command.
Code:
du -hT

Last edited by allend; 12-15-2021 at 08:24 PM.
 
1 members found this post helpful.
Old 12-15-2021, 08:24 PM   #22
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Seem to me you are often missing the ' ' (spaces) in the command lines you type.
To mount that device on /mnt it would be 'sudo mount /dev/sda2 /mnt' as shown by syg00 above.
I would modify his suggestions to the following
Code:
sudo mount /dev/sda2 /mnt
du -h
sudo du -xh /mnt | sort -hr | head -n 20
NOTE, the spaces MUST be where they are shown to avoid the errors you have gotten earlier.

To know your user name, simply remember either what you logged in as, or alternatively you can do
Code:
echo $USER
to find your username

Remember that often when suggestions are made for which we have no way of knowing the setup on your system we will put in some example words that you are expected to replace with the real values that apply to your system. Typing things exactly as posted may work if it is a valid construct, but also may not. The ones I posted here are valid for almost all systems.

Another thing to remember and learn from.
Almost every command has a help page that can be accessed by (using du as the example) 'man du' which would have told you the T option was not a valid option for your system and thus lead to replacing 'du -hT' with 'du -h'
 
Old 12-15-2021, 08:52 PM   #23
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by jkneex View Post
I don't know what ncdu is and couldn't verify if it is installed.
Code:
# sudo dpkg -l | grep ncdu
ii  ncdu	1.14.1-1	amd64	ncurses disk usage viewer
# sudo apt show ncdu | grep -A5 cript
Description: ncurses disk usage viewer
 Ncdu is a ncurses-based du viewer. It provides a fast and easy-to-use interface
 through famous du utility. It allows one to browse through the directories and
 show percentages of disk usage with ncurses library.

# sudo apt install ncdu
...
 
Old 12-15-2021, 08:57 PM   #24
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by computersavvy View Post
you can do
Code:
echo $USER
to find your username
whoami is 4 fewer keystrokes, + <RETURN>, to return username.

EDIT
5 fewer. I forgot to count the shift key.

Last edited by mrmazda; 12-15-2021 at 09:10 PM.
 
Old 12-15-2021, 11:45 PM   #25
jkneex
LQ Newbie
 
Registered: Dec 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
re ncdu

ran into this...
Attached Thumbnails
Click image for larger version

Name:	linux 11.jpg
Views:	5
Size:	35.8 KB
ID:	37869  
 
Old 12-15-2021, 11:54 PM   #26
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
That's a common result of absent network connectivity. Does /etc/resolv.conf exist? If yes, what does it contain?
 
Old 12-16-2021, 12:21 AM   #27
jkneex
LQ Newbie
 
Registered: Dec 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
attempt to sudo rm

From attached, the file called /mnt/home/jimmy/Videos is very big and, given the problem appears to stem from video capture, seems a prime suspect. However, it could not be removed because it is a directory. Any suggestions?

I did two days work on a Libre document without backing up prior to this problem. The Libre document is the main thing I'm hoping to regain access to.
Attached Thumbnails
Click image for larger version

Name:	linux 13.jpg
Views:	5
Size:	41.8 KB
ID:	37870   Click image for larger version

Name:	linux 12.jpg
Views:	4
Size:	36.7 KB
ID:	37871  

Last edited by jkneex; 12-16-2021 at 12:25 AM.
 
Old 12-16-2021, 12:44 AM   #28
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by jkneex View Post
From attached, the file called /mnt/home/jimmy/Videos is very big and, given the problem appears to stem from video capture, seems a prime suspect. However, it could not be removed because it is a directory. Any suggestions?
Examine the directory's content with ncdu or nc. Likely it has a huge stream capture file besides your other video files.
 
Old 12-16-2021, 01:05 AM   #29
jkneex
LQ Newbie
 
Registered: Dec 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
/etc/resolv.conf : Permission denied
 
Old 12-16-2021, 01:53 AM   #30
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Login as root, or do su - first, then use viewer. Or prefix your viewer command with sudo.
 
  


Reply



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
Help - My system is looping through every login screen on startup jnbbender Linux - General 2 08-08-2013 04:18 PM
Something depends on something else but something else is to be installed javascriptninja Linux - Newbie 3 02-05-2012 04:22 PM
login looping plaircpa Slackware 3 10-31-2005 08:10 PM
making something.something.com in apache and bind kunteper Linux - Software 0 02-24-2004 12:30 AM
Something new something different. enk0d Slackware 11 06-01-2003 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 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