date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,572,335,195,000 |
I'm stuck at figuring out how to sum ls 5th column result with awk. If I add $bytesum+=... then the program obviously breaks.
Any ideas?
bytesum=0
for i in `cat fileextensions.txt | sort | uniq`
do
ls -Rl "$folder" | grep $i | awk '{bytesum+=$5}; {print $9 " " $5}'
done
echo $bytesum
|
With GNU find all you need is:
find . -type f -printf '%s\n' | awk '{s+=$0} END{print s+0}'
With any find:
find . -type f -exec stat -c '%s\n' {} \; | awk '{s+=$0} END{print s+0}'
To just find and stat files with a specific extension in a specific directory ("folder" is a Windows term, in UNIX terminology it's a dir... | How to iteratively sum file sizes with given file extensions? |
1,572,335,195,000 |
I set var inside loop, like this:
eval "PB_$i=`cat btc_pub_$i.key`"
where $i is the index of loop.
I want to do echo or printf of
$PB_$i ($PB_0,$PB_1, etc)
I tried with
echo $PB_${i}
but dosen't work
|
It sounds like what you're looking for is a dereference:
$ foo=bar
$ bar=somewords
$ printf "The value of %s is '%s'\n" "${foo}" "${!foo}"
The value of bar is 'somewords'
$ var_1=foo
$ var_2=bar
$ for i in 1 2; do v="var_${i}"; printf "%s\n" "${!v}"; done
foo
bar
I might, though, suggest rather than using a series o... | Echo variable with index |
1,572,335,195,000 |
I am trying to loop through multiple remote servers with respective users and ssh and run some command.
I tried, something like in shell script:
#!/bin/bash
Q_HOST=host1 host2 host3 #list of hosts
Q_USER=user1 user2 user3 #list of users
for host in Q_HOST; user in Q_USER;
do
ssh $user@host df -h
done
but I think th... |
You've got the syntax for assigning to arrays slightly wrong, and your loop can't work like that in bash. In fact, the loop that you've written looks almost like what's possible to do in the zsh shell. You also have forgotten to double quote your variables.
For a zsh solution:
#!/usr/bin/zsh
hosts=( host1 host2 ho... | ssh multiple hosts with respective users |
1,573,673,756,000 |
I have a csv file 20 columns. in the first part of the file is the geolocation info. What I am trying to do is to find the geolocation data for a certain record.
First if identifies the user "ROSA". On that line search through the first 10 columns and if any of them contains "GeoLocation" print only the next record n... |
Try this:
awk -F"," '($0~/ROSA/) {for(i=1;i<=10;i++) {if ($i~/GeoLocation/) print $(i+1)}}' filename.csv.
Additionally I would avoid searching whole line for ROSA of You know field number or at least include the delimiters in regex to not match substrings.
Also You do not want to print the next record (that would be ... | awk command combining if and for |
1,573,673,756,000 |
I'm trying to do "one line script" or really small bash script.
It have to find file (for example ./xxx/one.php) and if that file exist edit (with printf or echo) other file IN SAME directory (for example ./xxx/test.php).
Right now I made second part - editing existing file, but I don't have idea how to, or where to e... |
The -execdir option to find is handy here:
find -name 'one*.php' -execdir bash -c '
if [ -e test.php ] ; then
printf ... && mv test.bak test.php
fi' {} \;
-execdir is
Like -exec, but the specified command is run from the subdirectory containing the matched file, which is not normally the directory in which you s... | Find file while other file exist in same directory |
1,573,673,756,000 |
I'm trying to replicate the setup of 50 printers from one server to another server.
Command:
lpadmin -p printer_name -v printer_ip -E and some more parameters.
I have the printer names in one text file and the printer IPs in another text file.
Printername.txt contains name of printers in separate lines
Printerip.txt c... |
You can take one line each from each file using paste:
paste Printername.txt Printerip.txt
Then use awk to insert the option arguments in that:
paste Printername.txt Printerip.txt | awk '{print "-p", $1, "-v", $2, "-E ..."}'
And finally use xargs to use this as arguments for the command:
paste Printername.txt Printe... | How to pass arguments to a command from two files? |
1,573,673,756,000 |
I have below code snippet working in bash:
for i in `ps -eaf | grep -i <pattern> | awk '{print $3}'`; do kill -9 $i; done
But I have a requirement to port this code to work in csh shell due to some legacy application is written using csh.
Sample output of "ps -eaf | grep -i | awk '{print $3}'"
5284
3543
14390
481... |
foreach i (`echo 1 2 3`)
echo $i
end
Using your example:
foreach i (`ps -eaf | grep -i <pattern> | awk '{print $3}'`)
kill -9 $i
end
| for loop logic porting from bash to csh |
1,573,673,756,000 |
Im collecting the LPAR names and assigning to a variable on AIX , Then using multiple commands for processing.
LPAR Names on the system are : ABCD56777 TSM Mobile CD CPT 2
for lparname in `lssyscfg -r lpar -m $system -F name,lpar_env |cut -f 1 -d, | sort`;
But the above for loop variable doesn't pick up the complet... |
The issue is that your command substitution expands to a whitespace-delimited string and the loop will iterate over all words in that string. A "word" is anything delimited by a space, tab or newline character.
Also note that in Bourne-like shells other than zsh, those words are further subject to filename generation... | for loop variable assignment with whitespaces |
1,573,673,756,000 |
I have a file to process and get some entries from it. The file format is:
Example Input:
String1:"Hello"
String2:"World"
String3:"Question"
End
String1:"HelloAgain"
String5:"Answer"
End
String1:"NewEntry"
String2:"Foo"
String5:"NewFile"
End
Script will iterate and try to find String1 and print it, if String2 als... |
Given your provided input and requested output:
$ awk -F: '$0 == "End" { printf "\n" } $1 ~ /^String[12]$/ { gsub( /\"/, "", $2 ); printf( "%s ", $2)}' input
Hello World
HelloAgain
NewEntry Foo
| Iterate over some pattern using shell |
1,573,673,756,000 |
I have several files to copy from various directories but each file has the same name so I need to copy them to a single directory and rename each in turn as "expect1, expect2, expect3", etc.
The code I've tried so far is
let i=1; for file in delay* ; do (
cd $file
cp expectation_file ~/target_dir
... |
This may be more versatile.
#!/bin/bash
i=0
source_files=$(find /tmp -name "*.zip")
target_dir=~/temp1/
for source in ${source_files}; do
((i++))
mv ${source} ${target_dir}/$(basename ${source})${i}
done
source_files expression can be anything like $(ls *.zip), this example finds all zip files under /tmp/.
| Copy multiple files from different directories while renaming? |
1,573,673,756,000 |
I am trying to write a script that will connect to Oracle from a jump server (i.e) I will execute my script from a jump server, In my script I will have a config file as below
#USERNAME PASSWORD TNSNAMES SUCCESS/FAIL
ODB ODB123 ODB1
CDC CDC123 CDC1
So , Now i will pas... |
So it's just about the editing in place. I prefer sed -i for this:
tail -n+2 test.txt|while read -r line ; do
user_name=`echo "$line"|cut -d\ -f 1`
password=`echo $line|cut -d\ -f 2`
TNS_NAME=`echo $line|cut -d\ -f 3`
echo "exit" | ${ORACLE_HOME}/bin/sqlplus -S ${user_name}/${password}@${TNS_NAME} |grep -E ... | How to execute a script based on a file |
1,573,673,756,000 |
Suppose I want to unzip files recursively that have the pattern ${file}*.zip in some directory /home/A/XML using find command
find /home/A/XML -type f -name "${file}*.zip" -exec unzip '{}' -d /target/path \;
For now, I wish to parse a list of directories instead of just /home/A/XML
for dir in "${path}"; do
... |
If that list of directories is stored newline-delimited (one on each line) in a scalar variable $path (not a good name for a variable as it's special in several shells, though not bash), you'd do:
IFS=$'\n' # split on newline
set -o noglob # disable glob
for dir in $path # invoke the split+glob operator ($path unquot... | Can list of directories be parsed into a find command? |
1,573,673,756,000 |
I'd like to repeatedly iterate over, alternate between, and/or cycle through multiple commands; in a kind of pattern or loop. The desired end result could be thought of as not totally unlike watch.
I've been experimenting with variations of this basic formula; but something is missing, wrong, or otherwise:
for x in {1... |
It's alright, I think I figured it out.
I think I just need to add another && sleep 1 between the <second command> and ; done.
Something like:
for x in {1..60};
do
<first command> &&
sleep 1 &&
<second command> &&
sleep 1;
done
| How to repeatedly alternate between two (or more) commands? |
1,573,673,756,000 |
I've following array and variable :
httpurl="http://www.nnin.com"
firstquery=$(curl -s -X POST -d "UID=user1&PWD=1111" $httpurl)
name="firstcust"
ip="105.105.0.1"
httpurl="http://www.mmim.com"
secondquery=$(curl -s -X POST -d "UID=user2&PWD=2222" $httpurl)
name="secondcust"
ip="106.106.0.1"
httpurl="http://www.ooio.... |
Use some thing like:
httpurl[0]="http://www.nnin.com"
query[0]="curl -s -X POST -d 'UID=user1&PWD=1111'"
name[0]="firstcust"
ip[0]="105.105.0.1"
httpurl[1]="http://www.mmim.com"
query[1]="curl -s -X POST -d 'UID=user2&PWD=2222'"
name[1]="secondcust"
ip[1]="106.106.0.1"
httpurl[1]="http://www.ooio.com"
query[1]="curl... | How to grouped the following variable and command and read 1 by 1 |
1,573,673,756,000 |
I want to parse data of particular columns from several files(aprilPlate.txt, mayPlate.txt, junePlate.txt, julyPlate.txt, augustPlate.txt) using For loop.
The data of input files (aprilPlate.txt, mayPlate.txt, junePlate.txt, julyPlate.txt, augustPlate.txt) look like:
Incl Cal Ps Name Q Con Std Status
True ... |
Something like will help you
for file in aprilPlate.txt mayPlate.txt junePlate.txt julyPlate.txt augustPlate.txt;
do
for z in A B;
do for i in 3 4 5 13 14 15;
do grep $z$i $file |
awk -F "\t" '{print $3 "\t" $5}' |
sed -e 's/A[3-5]/SWC/g;s/A[1][0-9]/SWD/g;s/B[3-5]/TZC/g;s/B[1][0-9]/TZD/g;' ... | How to use 3rd variable in BASH for loop? |
1,573,673,756,000 |
I've a script with this code
for i in {2..9}
do
grep "Node${i}\|01, source address = 00:00:00:00:00:0${i}" t1.txt > t2.txt
done
Is it possible to expand the loop from "9" to the "f" character of the exadecimal MAC address, in order to handle the "a" to "f" cases too?
|
Just add another brace expansion for the letters:
for i in {2..9} {a..f}
do
grep "Node${i}\|01, source address = 00:00:00:00:00:0${i}" t1.txt > t2.txt
done
Note that this is likely not what you really want. Each time this code runs, it will overwrite the contents of t2.txt which means you will only ever see the ... | Loop through MAC addresses, how to handle both numbers (0-9) and letters (a-f) in a "for" loop |
1,573,673,756,000 |
Imagine I have two folders in my current working directory: back/ and front/. I am trying to enter inside each of them and do some stuff. From the simple script below:
for dir in */ ; do
echo "$(dir)"
done
I was expecting an output like:
back
front
However, what I am getting is:
back front
back front
I don't ... |
In POSIX-like shells, $(cmd) is the syntax for command substitution, $(cmd) is expanded to the output of cmd minus the trailing newline characters.
What you want instead is parameter expansion: $dir or ${dir} (here with the parameter being the dir variable).
pwd (print working directory) is the command that outputs th... | Output of loop variable shows different value than expected |
1,573,673,756,000 |
This command gives an error "sh: -c: line 1: syntax error: unexpected end of file"
for file in /dev/DataStage/myProject/source/TEST/MyFile_*.csv; do echo "Testing" done
What is wrong with the above command ?
Thank you
|
You have to add ; before done, or put new line here.
for file in /dev/DataStage/myProject/source/TEST/MyFile_*.csv; do echo "Testing" ; done
| sh: -c: line 1: syntax error: unexpected end of file |
1,573,673,756,000 |
This is the code and I need to display in the terminal like this way:
(1,1) (1,2) (1,3) (1,4) (1,5)
(2,1) (2,2) (2,3) (2,4) (2,5)
(3,1) (3,2) (3,3) (3,4) (3,5)
(4,1) (4,2) (4,3) (4,4) (4,5)
but my output it's like this:
1,1) 1,1) 1,1) 1,1) 1,1)
2,1) 2,1) 2,1) 2,1) 2,1)
3,1) 3,1) 3,1) 3,1) 3,1)
4,1) 4,1) 4,1)... |
The $j variable was unused:
for (( i=1; i<5; i++ )); do
for (( j=1; j<=5; j++)); do
echo -n "($i,$j) "
done
echo
done
| Script with nested for loops [closed] |
1,573,673,756,000 |
I was editing a shell script and I want to know how can use for to use all directories listed by a list or variables and then execute a command.
Example:
I have this directories:
/dirname1/app1
/dirname1/app2
/dirname2/app1
/dirname2/app2
The thing is each directory have 8 application directory, and I need to get the... |
My advice is keep things simple. Don't write a whole script when there is a ready-made tool that already does what you want.
du is the tool for reporting on disk usage, and find is the tool for finding files. Use them together.
find dirname* -mindepth 1 -maxdepth 1 -type d -exec du -hs {} \;
-maxdepth and -mindept... | for loop to evaluate multiple directories and execute command |
1,573,673,756,000 |
What is wrong here? I am getting error near `done'.
echo " Writing a program to print even numbers by adding 1 if the number is odd."
for i in {1..10}
do
d=$(($i % 2))
if [[$d = 1]]
then
$iq=$(($i+1))
echo "$iq"
done
echo "end"
|
This should work:
#!/bin/bash -
echo " Writing a program to print even numbers by adding 1 if the number is odd."
for i in {1..10}
do
d=$(($i % 2))
if [[ $d -eq 1 ]]
then
iq=$(($i+1))
echo "$iq"
fi
done
echo "end"
Inserted a fi, removed the $ from $iq=... and added spaces inside the [[ ... ]]... | BASH syntax error near unexpected token 'done' |
1,573,673,756,000 |
When I run ping example.com, it prints the result of each exchange in the console. I'd like to filter each result so that, instead of showing all the information, it shows only a subset of it.
So, instead of:
PING example.com (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=2... |
My suggestion uses sed. I don't understand what you mean about your dynamic strings, other than you want to transform something to something else. Most filters will do that.
ping -c 3 1.1.1.1 | sed -En 's/.*=([0-9.]+) ([a-z]+)$/\1\2/p'
32.5ms
34.5ms
37.5ms
| return substring of a dynamic ping |
1,573,673,756,000 |
I am dealing with simple for loop, which loop the filles and execute on it some commands. I need to set up the filter with IF statement to consider only file started with the keyword "AllBoxes":
for pdb in "${storage}"/"${experiment}"/*.pdb ; do
pdb_name=$(basename "$pdb" .pdb)
# if file starts with pharase ... |
The error is probably because you need a space after the == however you won't be able to use wildcards like that in an expanded test. You could use =~ to do regex matching (something like AllBoxes.*) however if you quote it, it will be treated literally. If you only care about AllBoxes files however you could just m... | bash: IF condition with keyworld within FOR loop |
1,573,673,756,000 |
I've written a small script made to backup downloads from TOR because occasionally TOR will try to merge its place holder file (a zero byte file with original file name) and its actual download file (original file plus a .part extension) early which will result in a loss of all data.
As an addition in this script I w... |
If you are certain there are no newlines in the file names then you can just do this:
find /sdcard/Download/tordownloadbackup/ -type f -printf '%f\n' |
awk '{ print substr($0,1,length($0)-5); }' |
while IFS= read -r filename; do
: ...
done
The general approach with whatever characters in the path ... | How do I get the required input for this 'for' loop? |
1,573,673,756,000 |
This works
#!/bin/bash
dir="/home/masi/Documents/CSV/Case/"
targetDir="/tmp/"
id=118
channel=1
filenameTarget=$targetDir"P"$id"C"$channel".csv"
cat $dir"P"$id"C"$channel"T"*".csv" > $filenameTarget
Successful output when debugging with bash -x ...
+ dir=/home/masi/Documents/CSV/Case/
+ targetDir=/tmp/
+ id=118
+ chan... |
[[ -f $lastFile ]] is truthy if the file exists. It then follows that since you reached cat $dir"P"$id"C"$channel"T"*".csv" that path really does not exist. You probably wanted if ! [[ -f $lastFile ]].
Also, Use More Quotes™ properly - you should be quoting the variables. Quoting static strings is a nice safeguard but... | Why this expression does not expand in Bash for-for structure? |
1,573,673,756,000 |
I am trying to do a simple script which runs a few commands N number of times, determined by the user's input. However, when it comes to run the commands (in a for loop) - The variable is ignored:
read -p "Please enter the number of times you wish to fail over: " num
...
for run in {1..$num}
do echo "STOP: "
... |
Just a collection of - more or less secure - and possibly well known approaches:
a=5
eval "for i in {1..$a}; do echo \$i; done"
cat <<< "for i in {1..$a}; do echo \$i; done" | bash
echo "for i in {1..$a}; do echo \$i; done" | bash
for i in $(seq 1 $a); do echo $i; done
| Why does this for loop ignore my variable? [duplicate] |
1,573,673,756,000 |
I would like to order the 5th column by highest value and select the 4th if it matches the 5th column.
cat TABLE_LIST
C1 C2 C3 C4 C5 C6
3 No ENCRYPTION /opt/oracle/oradata/ORCLCDB/encryption.dbf 8 0
2 No RETENTION /opt/oracle/oradata/ORCLCDB/retention.... |
According to comments you want to list the 4th column in the order dictated by the 5th column (in reverse numerical order).
$ sed '1d' <TABLE_LIST | sort -k5,5nr | awk '{ print $4 }'
/opt/oracle/oradata/ORCLCDB/encryption.dbf
/opt/oracle/oradata/ORCLCDB/retention.dbf
/opt/oracle/oradata/ORCLCDB/users01.dbf
/opt/oracle... | bash script looping two functions |
1,573,673,756,000 |
I have multiple image files in a folder and have created a folder for each file. Now I want to cp one file in each folder.
I used
for i in `seq 1 9`; do mkdir $i; done
and then to copy all the files into the folders. I tried to use
for s in Whats* && i in `seq 1 9`;do cp $s $i;done
for s in *; do for i in `seq 1 9`;... |
Assuming you want directories with integer names, and that you want to have one directory per file that matches the ./WhatsApp* pattern:
shopt -s nullglob
counter=0
for name in ./WhatsApp*; do
counter=$(( counter + 1 ))
mkdir "$counter" && cp "$name" "$counter"
done
This tries to create a directory for each ... | How to specify 2 variables in a for loop in bash shell? |
1,573,673,756,000 |
I have to execute following loop:
root1=path/to/root1
root2=path/to/root2
for i in {1..2}; do ${root${i}}; done
It doesn't give desired output:
path/to/root1
path/to/root2
Admin suggested thread brought solutions that doesn't lead to result i seek, e.g.
for i in {1..2}; do \$root$i; done
Output:
$root1
$root2
|
Assuming you are using the bash shell, it looks as if you want to use an array:
root[1]=path/to/root1
root[2]=path/to/root2
for i in {1..2}; do
printf '%s\n' "${root[i]}"
done
or, write the assignment to root as a single array assignment (note that the first index is 0 in a bash array unless explicit indices are... | What is correct syntax to for loop variable in PATH? |
1,573,673,756,000 |
I am currently using 2 scripts. 1 script to filter the files by year. 2nd script into which sits inside the year subfolders to filter by month # (01-12).
Is there something that would be better than what I have below?
All of the files are in 1 directory:
SOURCE: ./tape_backup/sync1/* (1.4 million files)
TARGET: ./ta... |
If you're going to be calling mv 1.4 million times, it's going to be slow - no way around that. But you already know the pattern of the filenames, so why not batch them, calling multiple files with a single mv:
for yy in {1990..2019}
do
y=${yy#[0-9][0-9]} # remove first two digits of year
mv ./*D??"$y" "/cygd... | bash if statement help |
1,573,673,756,000 |
I have a directory that contains 10,665 jpeg files.
I want to move 500 files to a new directory, and 500 to the next directory, etc.
The largest files must be moved first:
500-1 contains the 500 largest files, 500-2 the next largest 500 files, etc.
The reason I want to do this is that I want to give the JPEGs to som... |
On a Linux-based system or other one using GNU find you can use a loop something like this
find -maxdepth 1 -type f -printf '%s\t%P\0' |
sort -z -rn |
(
# x is max files per directory; d is directory number; k is file counter
x=500 d=1 k=1
while IFS=$'\t' read -r -d '' size path
... | Move every 500 files in new directory [closed] |
1,573,673,756,000 |
The first part of what i am mucking around with simply creates a folder entitled command_manuals that contain text file copies of all the commands available at the bash shell, the filenames which are the command names themselves.Aside from some unusual error messages that do not affect the script from achieving it's ... |
The issue is in ./secondpart.sh: line 8, which should set $filename.
stat and rm have $filename as argument, so they are complaining. These errors are follow-ups.
So you need to fix line 8.
You should almost always have set -euo pipefail at the beginning of your scripts to let them exit on the first error and thus to ... | Bash Script general questions [closed] |
1,573,673,756,000 |
I want to make the script to extract the users of linux server and check if "/home/$user/public_html/vb/includes/config.php" is exist , i want the script to check all the users in the server and search many files in all users
|
This will search for public_html/vb/includes/config.php in the home directory of every user on the system, no matter how they are defined (/etc/passwd, ldap, yp, etc)
file="public_html/vb/includes/config.php"
for homedir in $(getent passwd | cut -d: -f6) ; do
f="${homedir}/${file}"
[ -e "$f" ] && echo "$f"
done... | Creating shell script with bash scripting [closed] |
1,573,673,756,000 |
I am trying to make sh script which uses 'sed' to make bubblesort algorithm
I am strugling, how to make for loop
for n in $1
do
echo $n
done
How can I change body of the for loop to make just n-1 cycles? I tried this $1-1 but it doesn't work. It will print part of the string and - 1.
|
n-1 cycles means that the last item shouldn't be considered.
Use the following approach(assuming that your input argument will always be a string of space-delimited substrings):
s=$1
for n in ${s:0:-2}
do
echo $n
done
${s:0:-2} - slice of items containing all items except the last one
^ ^
| |
fr... | How to make for loop with $1 - 1 cycles [closed] |
1,303,906,768,000 |
I'm a Windows guy, dual booted recently, and now I'm using Linux Mint 12
When a Windows desktop freezes I refresh, or if I am using a program I use alt + F4 to exit the program or I can use ctrl + alt + delete and this command will allow me to fix the Windows desktop by seeing what program is not responding and so on... |
You can try Ctrl+Alt+* to kill the front process (Screen locking programs on Xorg 1.11) or Ctrl+Alt+F1 to open a terminal, launch a command like ps, top, or htop to see running processes, and then launch kill on non-responding process.
Note: if not installed, install htop with sudo apt-get install htop.
Also, once don... | What to do when a Linux desktop freezes? |
1,303,906,768,000 |
I have a really strange situation here. My PC works fine, at least in most cases, but there's one thing that I can't deal with. When I try to copy a file from my pendrive, everything is ok -- I got 16-19M/s , it works pretty well. But when I try to copy something to the same pendrive, my PC freezes. The mouse pointer ... |
Are you using a 64-bit version of Linux with a lot of memory? In that case the problem could be that Linux can lock for minutes on big writes on slow devices like for
example SD cards or USB sticks. It's a known bug that should be fixed in newer kernels.
See http://lwn.net/Articles/572911/
Workaround: as root issue... | Why is my PC freezing while I'm copying a file to a pendrive? |
1,303,906,768,000 |
I've got an eeePC 900a: it has a 8GB flash as disk and only 1GB of RAM. The Linux distribution installed on it is ArchLinux.
When the system runs out of memory it becomes extremely unresponsive: it takes several seconds/minutes to do things like switching to TTY1 or even moving the mouse pointer. Sometimes it looks li... |
Recently I found a solution to my problem.
Since the Linux OOM killer isn't able to do its job properly, I started using a userspace OOM Killer: earlyoom. It's written in C, fairly configurable and it's working like a charm for me.
I've also heard about some alternatives, like Facebook's OOMD, developed to run on thei... | System hanging when it runs out of memory |
1,303,906,768,000 |
I use Ubuntu. Sometimes, the system does not have any response with mouse and keyboard. Is there any way to solve this problem except hitting the reset button on the machine?
|
If you want a way to reboot, without saving open documents, but without hitting the reset button, then there are ways that are less likely to cause data loss. First, try Ctrl+Alt+F1. That should bring you to a virtual console, as ixtmixilix said. Once you're in a virtual console, Ctrl+Alt+Delete will shut down and reb... | How to fix non-responsive Ubuntu system? |
1,303,906,768,000 |
I'm using Linux 4.15, and this happens to me many times when the RAM usage reaches its top - The whole OS becomes unresponsive, frozen and useless. The only thing I see it to be working is the disk (main system partition), which is massively in use.
I don't know whether this issue is OS-specific, hardware-specific, or... |
What can make Linux so unresponsive?
Overcommitting available RAM, which causes a large amount of swapping, can definitely do this. Remember that random access I/O on your mechanical HDD requires moving a read/write head, which can only do around 100 seeks per second.
It's usual for Linux to go totally out to lunch... | What can make Linux unresponsive for minutes when browsing certain websites? |
1,303,906,768,000 |
To prevent fork bomb I followed this http://www.linuxhowtos.org/Tips%20and%20Tricks/ulimit.htm
ulimit -a reflects the new settings but when I run (as root in bash) :(){ :|:&};: the VM still goes on max CPU+RAM and system will freeze.
How to ensure users will not be bring down the system by using fork bombs or running... |
The superuser or any process with the CAP_SYS_ADMIN or CAP_SYS_RESOURCE capabilities are not affected by that limitation, that's not something that can be changed. root can always fork processes.
If some software is not trusted, it should not run as root anyway.
| How to prevent fork bomb? |
1,303,906,768,000 |
I am unable to enter anything at the login screen; it just freezes directly after the page shows. The cursor inside the login form blinks about 10 times, then it stops. I can't move the mouse or use the keyboard.
I already entered the secure mode and triggered update, upgrade and dist-upgrade via the root shell it mad... |
We were able to solve it by starting the shell in secure mode and executing the following commands.
apt-get update
apt-get install xserver-xorg-input-all
apt-get install ubuntu-desktop
apt-get install ubuntu-minimal
apt-get install xorg xserver-xorg
apt-get install xserver-xorg-input-evdev //I think th... | Ubuntu 16.04 - GUI freezes on login start page |
1,303,906,768,000 |
My laptop (no VM, just plain Ubuntu with encrypted home) freezes for 3 minutes a few times per day. During these 3 minutes, the disk LED indicates intense disk activity, and I can't even move the mouse or press CTRL-ALT-F1.
I want to use iotop to find out which process is causing this.
The problem with iotop is that i... |
Not exactly what I was looking for but close: iotop -o
So I will use:
sudo nice -20 sudo iotop -tbod10 > ~/iotop.log
| Make iotop show only the most disk-intensive item |
1,303,906,768,000 |
Sometimes VirtualBox causes random freeze of my Mint 16 Cinnamon Desktop 64bit. I am not able to pinpoint what is actually wrong and even where to fill the bug report.
But the life goes on and I need some means of re-initializing the windowing subsystem without losing the work I've done with existing applications.
W... |
I don't know what the Cinnamon guys renamed gnome-shell when they forked, so you'll have to find this out. It's probably either cinnamon-shell or cinnamon or something. I'll assume it's called cinnamon.
Now, the GNOME Shell - and by extension, Cinnamon - will respond to SIGHUP by completely reinitializing. It's basica... | How to recover from desktop freeze without losing running windows? |
1,303,906,768,000 |
last three days I am experiencing random freezes. If i am looking on youtube when this happens Audio keeps playing but screen is froze and keyboard or cursor do not do anything.
I trying to look in sudo journalctl and this is what I found:
led 04 10:44:02 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic u... |
5.10.15 doesn't solve this problem. I still have same error. Intel bugs are really annoying since kernel > 4.19.85 (November 2019 !)
As a workaround, i915 guc need to be enable as mentionned in Archlinux Wiki : https://wiki.archlinux.org/index.php/Intel_graphics#Enable_GuC_/_HuC_firmware_loading and loaded before othe... | Arch linux randomly freezes after updating to kernel 5.10 |
1,303,906,768,000 |
I have 15 identical Linux RH 4.7 64-bit severs. They run cluster database (cluster is application level). On occasion (every month or so) a random box (never the same though) freezes.
I can ping the box and ping works. If I try to ssh in the box I get:
ssh_exchange_identification: Connection closed by remote host
SSH... |
It sounds like your kernel panicked in some way such that sshd couldn't send the server keys. Possibly, the kernel was wedged in such a way that the network stack was still up, but the vfs layer was unavailable.
When I experienced similar problems on a RHEL4 system, I set up the netdump and netconsole services, and a... | Debugging Linux machine freezes |
1,303,906,768,000 |
I am on Linux Mint 17. I experienced an unexpected software failure.
The desktop stopped responding to anything.
As I am inexperienced, I only managed to switch to the console using Ctrl+Alt+F1 and then rebooted the machine using reboot.
Is there a more appropriate procedure?
|
Update
As of Linux Mint 18, there has been a move to LightDM display manager, which you can restart as follows:
sudo service lightdm restart
Original answer
Running reboot is a perfectly safe way of doing it. If you just wanted to log out (restart your GUI session), you could have run:
sudo service mdm restart
That... | What to do when the desktop freezes? |
1,303,906,768,000 |
I have a newly installed Manjaro system and it works fine most of the time but it has frozen a couple of times randomly.
What logs should look in (and what should I look for) to try to diagose the problem? I know its quite a broad question, but there must be somewhere that would be a good starting point.
|
The two most common causes of crashes are video driver bugs and bad RAM.
You can look for clues in logs in /var/log. Video problems are logged in /var/log/Xorg.0.log. Problems detected by the kernel are logged in /var/log/kern.log or /var/log/messages or some other file depending on the distribution, I don't know whic... | My Linux desktop freezes randomly. What to look for in logs |
1,303,906,768,000 |
I was forced to shutdown (using the power button) and reboot after my laptop froze with just a black screen.
After such an incident, where should I look for error messages etc. that might indicate what caused the freeze?
I am running Xubuntu (Lucid) with Fluxbox as my window manager. Any suggestions are welcome but I ... |
If the screen and input devices (keyboard and mouse or trackpad) froze, the first place to start by looking would be in /var/log/Xorg.0.log (assuming that Xorg is running on the first display server).
If that doesn't yield any immediate clues, the next logs to check would be /var/log/messages.log and /var/log/dmesg.lo... | Where should I look for error messages after a freeze-up and reboot in Linux? |
1,303,906,768,000 |
The system often just freezes up without any warning, it doesn't gradually start getting slower or something like that, and every time I look the avarage system load is below 20% (usually not even 10%).
When looking at dmesg, there's one thing that always seems to come back though. The message composite sync not suppo... |
Well, I upgraded to Xubuntu 11.10 and installed the nvidia-173 drivers. My laptop gets slightly hotter than usual (only slightly because I keep my CPU at 1Ghz with cpufrequtils), but at least I haven't experienced any freezes yet. Also, there seem to be no issues with the NVidia drivers for a change (appart from the f... | System often freezes without warning |
1,303,906,768,000 |
My laptop is an Acer predator helios 300 with intel i7-7700hq and an NVIDIA GTX 1050ti. It had a 128GB NVME SSD and 1TB hard disk. I had dual boot on it with fedora 29 installed on the SSD and Mint Tessa installed on the Hard Disk. I deleted all the fedora partitions including the EFI partition from within mint using ... |
I was fighting this issue for 3 days, tried all of the above options but none of them helped me.
But I solved it!
So, in my case the issue was because of UEFI boot (probably because laptop is very old: lenovo ideapad z570 and UEFI implementation is buggy).
SOLUTION:
I just added noefi into the kernel options and my la... | System freeze on reboot/shutdown |
1,303,906,768,000 |
I encountered several crashes of my machine. Meanwhile, I can reproduce it when I start a program that fills up all memory. Once the system starts writing to the swap file, the system freezes and I have to reboot.
In the journal, I see no useful log information before the crash, for instance:
Mar 23 19:12:01 classen s... |
After some experiment, I can confirm that it was actually thrashing in combination with a huge swap partition (16 GB).
Thanks for the comments, Otheus and cas, you had the right intuition. I underestimated the effect. Maybe because previous machines that I used had smaller swap spaces (in comparison to the memory), so... | Machine freezes once it hits swap space under heavy load |
1,303,906,768,000 |
My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It may look different - white screen, black screen, screen freeze.
Checking syslog after hangs brought me the same lines just before system hanged: pastebin, last are:
08:26:34 wpa_supplicant[1069]: nl80211: send... |
This is a known bug, check this launchpad bug report. There is only one suggestion offered to fix it, message n.24:
Oops this has been going on since 2009 and a developer did respond that it is simply for roaming in corporate environments with multiple access points to connect to. If you only have one AP at home go i... | wpa_supplicant nl80211 hangs linux mint frequently |
1,303,906,768,000 |
In my attempt to get unique entries (read lines) out of a simple text file, I accidentally executed nano SomeTextFile | uniq.
This "instruction" renders the shell (bash) completely (?) unresponsive/non-usable -- tested within from Yakuake and Konsole. I had to retrieve the process id (PID) (by executing ps aux | grep ... |
As other answers have already explained, Ctrl+C doesn't kill Nano because the input of nano is still coming from the terminal, and the terminal is still nano's controlling terminal, so Nano is putting the terminal in raw mode where control characters such as Ctrl+C are transmitted to the program and not intercepted by... | Accidental `nano SomeFile | uniq` renders the shell unresponsive |
1,303,906,768,000 |
I'm a non-root user on a shared compile server that mounts /home via NFS from some other host. I have a directory ~/a/b with lots of subdirectories c1,c2,.... I wanted to delete ~/a/b completely, and succeeded for most of the cN directories. But a few (say c1) are completely inaccessible: I can execute them (i.e. cd i... |
Removing a file or directory is an atomic operation requiring one system call, so if the rm command hangs, it's because the kernel is stuck. On an NFS filesystem, this can be (and usually is) due to the server not responding. On a local filesystem, this can be (and usually is) due to a hardware failure. Your disk is p... | Removing a directory hangs |
1,303,906,768,000 |
Many times I find GNOME file copy GUI tool (Nautilus) irritating when it stops working. It happens when:
I cancel the copy or move
I try to copy to blue tooth exchange folder to my friends laptop(when he forgets to permit the operation or if the file is big)
some other times, it just hangs while copying
So I obvious... |
As far as I know, there is no way to rescue Nautilus (file manager for GNOME) when it hangs. You are left only with the option of killing it, so go to the command line and run:
killall nautilus
After that, it should automatically restart, and then you can try again.
This is just a bug in it. Try avoid parallel copyin... | How to quit GNOME file copy GUI after it hangs |
1,303,906,768,000 |
I'm currently running Debian 6.0.5 on my white Macbook 2008 (4,1) and have recently noticed that when I download, move, or decompress a file, Gnome freezes up completely for at least 20 seconds. These freezes happen off and on until the file is done downloading. Oddly enough I can still use Compiz to switch between wo... |
Test the partitions with a livecd of some distro more updated. Mount the partition, write a lot of files and check the dmesg. The kernel of Debian Stable is old and if your problem is a kernel bug, probably is solved.
You also can try with other schedulers. Add "elevator=noop" or "elevator=deadline" to your grub. Some... | Hard drive writes freezing up Gnome |
1,303,906,768,000 |
My linux desktop system freezes (aptosid/debian sid) sometimes and after a reboot I can't find any infos about the reason for the freeze in messages/dmesg/syslog/Xorg.*.log.
When it "freezes" I can still move the mouse in X and sometimes even move the windows for a short time before the system stops responding.
Last ... |
Sounds like a potential hard drive problem. The behavior you describe is exactly what you would see if the hard drive suddenly stopped responding to requests, or started returning errors. Try running smartctl -a /dev/sda, where sda is the device of your hard drive, to see if the hard drive has logged any errors.
You ... | System freezes. Can't find anything in the logs |
1,303,906,768,000 |
I am using Arch Linux and the Cinnamon desktop environment. In the last few weeks I have been getting apparently random, brief freezes (a few seconds, 5-10 or so) in Chromium, Brave, Franz and Slack. The freezes are independent, I can have a frozen Chromium, for example, while Brave is working fine and vice versa.
I t... |
I would suggest you to switch from x11 to wayland to avoid the freezing. While this problem seems to be specific to the apps you mentioned, I have had similar issues in the past, albeit affecting the entire desktop, and switching to Wayland fixed them for me.
Unfortunately, Cinnamon isn't compatible with Wayland yet, ... | Random freezes for chromium and electron-based apps |
1,303,906,768,000 |
After closing the lid of my laptop I suffer a periodic freezing system (~0.5 seconds). The symptoms are:
mouse pointer stops
keyboard input stops (=delayed)
video freezes
ms teams meetings stuck
(rarely sometimes the "internet" is not working)
My System:
Linux Mint Dell 13 9315 with Linux Mint 21.1 Cinnamon
usb-c-h... |
My problem started immediately after i closed the lid.
You can solve this temporarily with
killall csd-power
for further investigation details run the following command and close the lid again:
/usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-power --verbose
as the name suggest the problem belongs to the power... | linux mint periodically freezing after closing lid |
1,419,587,150,000 |
When my system freezes randomly it starts to slow down heavily and in the end it does not react anymore. I can provoke it pretty consistently, if I start Firefox alone (with many tabs open) and start playing a YouTube video. Switching workspaces may contribute. On the other hand, it also happened while I was only runn... |
A/ Since you report an error related to firmware, the nvidia proprietary driver would surely not have that problem.
However, the 340 version is the latest being compatible with your device and because 340 does not support kernel modsetting, it is not longer compatible with linux > 5.4 kernels.
Moreover, because that d... | Linux Mint 20.3 laptop freezes randomly because of nouveau driver |
1,419,587,150,000 |
I used OpenSuse for several years now. One of the things I utmost liked with this distribution was the way Plasma/KDE issues where handled: from time to time it may happens that the panel briefly disappear and a messagebox opens-up telling me that Plasma desktop has crashed and has been restarted, also proposing to se... |
TL;DR: Here the problem was apparently caused by an issue (most probably some obscure race condition) between OpenGL and KWin.
To workaround it, one must disable OpenGL and use XRender instead (in System configuration > Desktop effects > Advanced > Compositing type, select "XRender" instead of the default OpenGL).
A f... | How to enable Plasma/KDE automatic restart upon freeze? |
1,419,587,150,000 |
Vim and especially Gvim stops responding and utilizes 100% of CPU upon opening big .js files (1000+ lines). Pressing Ctrlc stops the process. Whatever Vim does trying to open the file, it displays the file contents—all folded into a single fold—and each character input in insert mode takes minutes to display on the s... |
Try removing any extra plugins or syntax files you have for editing JS files. A poorly written vimscript or syntax file (basically a bunch of regexes) can make Vim eat all CPU cycles in a blink.
| Vim high CPU usage upon opening JS files |
1,419,587,150,000 |
So my parents offered my a Laptop, a quite good one judging by my other computers (for example my Desktop is still stuck on CDQ), and it is always sort of rude to return a gift in any situation, but it has serious trouble with drivers.
The laptop is an Asus GL552V, which has fairly standard components:
Intel 6700HQ A... |
The drivers start to appear in newer kernels.
Here is the problem: https://bugzilla.kernel.org/show_bug.cgi?id=109081
In case anyone wants to buy this laptop to use with Linux, wait for that bug to be fixed before doing so.
Answering to the question:
It would be a good idea to return the laptop if you had the same si... | Got a brand new laptop with hardware still unsupported. Should I wait or return it? |
1,419,587,150,000 |
Since upgrading to 12.04, I've randomly experienced this strange phenomenon where my mouse mostly doesn't work and keyboard mostly does. I have not been able to identify a cause for this. Sometimes it will happen minutes after I start-up, other times after the computer has been idle for a while, and other times in the... |
I have seen such behaviour with wireless mice with low battery... try another mouse?
Failing USB mice can also behave erratically, in my experience.
| Ubuntu 12.04 Gnome 3 "freezes" randomly - not a normal freeze though |
1,419,587,150,000 |
I have a Dell Latitude 5500 and a Dell Latitude 7550. The 5500 has Debian 10 and KDE, and the 7550 has Ubuntu 20.04 with KDE. In both laptops, if I close the lid, when I open it later the built-in laptop keyboard is completely locked-up and I can't type anything. The trackpad still works though and I am able to click ... |
Alright, so.
In a terminal, open /etc/default/grub.
Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT=.
Replace it with GRUB_CMDLINE_LINUX_DEFAULT="atkbd.reset i8042.reset i8042.nomux quiet splash".
Save and exit the file.
Run sudo update-grub.
If this doesn't work, follow the same process but try GRUB_CMDLI... | laptop keyboard locks up after closing lid |
1,419,587,150,000 |
My new laptop is randomly freezing. This freezing occurs rarely - every dozen days. However once happened just after previous. The problem is that I cannot find what causes this freeze. I use this laptop for work so stability is very important.
During freeze there is noise sound from speakers (duration about one seco... |
It came out that there was problem with ram memory and ssd drive. Both exchanged to new one under warranty and problem is solved. No freeze for three weeks with no processor flags set.
BTW there is another issue with graphic but I am going to describe it in another thread.
| Lenovo Ideapad running Mint random freeze [closed] |
1,419,587,150,000 |
My system was working fine but after the changes in past two days I started getting this problem.
The Changes I made: I added a 2GB 800mgz RAM stick and replaced my old HDD with a new SSD two days ago and installed Linux on it. And yesterday there was a kernel update in the update manager.
How problem started occu... |
I got the solution, I was missing some important details, while booting into Mint a small error message flashed some times for 1-2 seconds saying mce: hardware error cpu 0 machine check 0 bank 0.
This can happen due to some reasons:
CPU Overheating or a permanent CPU damage.
VRAM/RAM Error.
In my case it was because... | mce: hardware error cpu 0 machine check 0 bank 0. System just freezes, everything just stops including mouse on Linux Mint XFCE 20 |
1,419,587,150,000 |
I bought a brand new laptop and tried installing Ubuntu 20.04 on it (via bootable usb), however I experience frequent issues which render the system unusable, ie:
everything freezes (including mouse cursor, ctrl+alt+f1 combination doesn't work), followed by reboot after about 10s
laptop suddenly reboots
various thing... |
TL;DR I came to the conclusion that it's likely a hardware issue and decided to return the laptop.
Full story:
After some investigation I got an impression that the problem was related to the Nvidia GPU, as when I was using Intel it wasn't happening for a day or two.
A friend advised me to update BIOS; after doing th... | Frequent freezes and reboots on Lenovo Legion 5i RTX2060 |
1,419,587,150,000 |
I'm not so new to Linux in general, but I am new to Arch.
I've installed it twice (the first time on an HDD, just to try while waiting for the SSD to be delivered to me, the second time, a few days after, on the SSD), with i3 and other programs in order to have a usable desktop environment. By the way, my choices were... |
I'm posting this self-answer since it represented a solution for me, so far, and could help someone else who is looking for answers without paying enough attention to the question, but I'll wait for some guru to give an explanation to this strange problem.
After having connected a wired PS/2 port keyboard and verified... | keyboard freezes after opening program, mouse keeps working |
1,419,587,150,000 |
Situation:
I am using Linux Mint 18.2 Cinammon 64bit with Virtualbox installed.
Within Virtualbox, I have a single virtual machine (VM) - Windows 7 64bit - with four snapshots (each a uniquely configured environment for a specific purpose, eg.photoshop, software testing).
For a half of year everything was running perf... |
I had a similar problem once, the graphics card was too weak and therefore the screen froze. If I pressed CTRL-ALT-F3 I could still access my terminal very slowly.
Here are my thoughts:
Check if ram maxes and swap is used extensively when VM starts e.g. using top or htop and checking the ram and swap bars
Check iot... | How to diagnose, why Linux Mint host freezes after starting Virtualbox VM |
1,419,587,150,000 |
I have just installed Debian Stable with gnome 3 on my msi laptop MSI GS 60 2PC-247XFR, when I shut down or quit session the system just freezes, here is a quote from my syslog file:
Sep 26 17:44:21 debian gnome-session[1175]: nm-applet-Message: PID 1 (we
are 1361) sent signal 15, shutting down...
Sep 26 17:44:21 deb... |
I have fixed the problem by changing "Primary Display" from nvidia to intel in my BIOS, no more freeze
I also noticed that "lspci -nn | grep VGA" does not detect my gtx860m neither "nvidia-detect", I'll open a new question later for that... it may be related..
EDIT:
Now I fixed all my problems with nvidia, freeze etc.... | newly installed debian gnome 3 hangs at shut down |
1,419,587,150,000 |
I have two accounts, daniel and dn. When I log in with daniel first, everything is okay. But I can't login with dn, it freezes. It's irrelevant if I log out daniel or try a parallel login. It's the same way round with the account daniel if I log in dn first.
The desktop is shown, without any folders and I can't move ... |
Looks a lot like an issue with your graphics card driver (nouveau) crashing when loading the second desktop for some reason (I am no kernel expert so I can't explain why).
I'd suggestion either:
Try a more recent kernel (you may need to build it yourself if there's none already available for Mint).
If you don't mind ... | Linux mint freezes on second account login - unable to handle kernel NULL pointer dereference at (null) |
1,515,445,968,000 |
I am using cygwin on Windows 10, to ssh to my servers, and recently I noticed that whenever I pressed CTRL+o the entire session/cygwin window would freeze up. I tested it out on putty as well and same thing happens. I have also noticed that pressing CTRL+o again causes it to unfreeze.
I am pretty sure this did not use... |
Do you have by any chance NZXT Cam software running? The default hotkey to activate it's overlay is Ctrl+O. Remove the assigned hotkey in NZXT Cam Settings > Overlay and you should be good.
| CTRL-O causing terminal to freeze |
1,515,445,968,000 |
TL;DR
Question: How can I disallow installing of the package intel-microcode in the future? With my bad memory, I may try installing it someday, again.
Long story
Yesterday, I installed the intel-microcode package on Linux Mint 18.3 using driver-manager.
Problem: in this laptop's case, it causes a complete system fre... |
You can give the package a negative pin; that will prevent apt from installing it. Add a file named, for example, no-intel-microcode in /etc/apt/preferences.d, containing
Explanation: intel-microcode causes this laptop to crash
Package: intel-microcode
Pin: release n=xenial*
Pin-Priority: -1
Attempting to install int... | How can I prevent installation of a specific package on Linux Mint? |
1,515,445,968,000 |
My Computer has been freezing a lot lately, and with no apparent reason.It freezes even if my usage is 3% CPU and 9% RAM.
I was using Windows 8 until I installed Ubuntu 14.04.
It was really slow, and after some researching, I adopted the idea that Ubuntu 14.04 wasn't really that stable, so I decided I'd download a le... |
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and... | Linux freezing randomly |
1,515,445,968,000 |
I've been trying to unarchive a cpio archive (in this case, my initial ramdisk). However, when I try to extract the files, cpio hangs forever. It happens if I pass the -V argument to print extra info, too.
alex@alexs-arch-imac:/tmp/initramfs$ cpio -i initramfs-linux.img # wait for a while after this
^C
alex@alexs-arch... |
For some weird reason, cpio doesn't like to take a file argument. Instead, you have to pipe the archive into cpio. An inexperienced user would do the following:
cat initramfs-linux.img | cpio -i
However, this would get you the Useless Use of cat Award. A better way would be:
cpio -i < initramfs-linux.img
This uses t... | When I execute a cpio command, it hangs forever |
1,515,445,968,000 |
I need some help diagnosing and finding the root cause of my system stability issues. All signs point to some sort of hardware problem (disk or RAM) but my investigations so far don't turn up anything.
This is a brand new system with new hardware running Ubuntu 20.04. It is a NUC (D54250WYK / NUC8I5BEH) with 2x16GB RA... |
After a lot of digging, I appear to have found the solution (no crashes so far 🤞)
tl;dr:
In /etc/default/grub in the GRUB_CMDLINE_LINUX_DEFAULT variable I added:
nvme_core.default_ps_max_latency_us=0 and pcie_aspm=off, which ends up looking like:
GRUB_CMDLINE_LINUX_DEFAULT="nvme_core.default_ps_max_latency_us=0 pc... | System stability issues - disk becoming read-only, system coming to a halt, Input/output errors in terminal |
1,515,445,968,000 |
I'm using compton for compositing with this config in i3wm in Ubuntu 18.04:
# _
# ___ ___ _ __ ___ _ __ | |_ ___ _ __
# / __/ _ \| '_ ` _ \| '_ \| __/ _ \| '_ \
# | (__ (_) | | | | | | |_) | |_ (_) | | | |
# \___\___/|_| |_| |_| .__/ \__\___/|_| |_|
# |_|
########... |
This seems to be a compton issue and there's no solution as far as I know. I recommend you to read and participate in this Github thread (it seems to be the most active). This bug is hard to reproduce and we need as much information as possible (config files, logs, setups, etc).
Update: 2018-09-21
Well, it seems that... | i3wm [official ubuntu version] screen freezes randomly when window is fullscreen |
1,515,445,968,000 |
Since yesterday, I am having regular total freeze of my OS, archlinux, with no clear reason why.
The only thing I'm doing is browsing the internet with Firefox while it happens.
The audio, bluetooth are still working during these freezes, but I have no way to interact with the system...
I tried to find something helpf... |
This is probably the same issue that is discussed here and here.
A short-term solution (that works for me too) is uninstalling xf86-video-intel.
| OS freezes completely |
1,515,445,968,000 |
When my laptop is at work (running OpenSUSE Tumbleweed), and when the network cable -> USB adapter is plugged in, eventually in a day the computer sort-of-freezes. I can still operate everything normally, but as soon as I attempt any sudo command, the process attempting it freezes; this includes sudo reboot. On the ot... |
TLDR;
In my case I fixed adding Defaults !fqdn to the /etc/sudoers file
Details:
Maybe is freezing due to a network problem. Fix the network, then sudo will work again, I hope.
I was with similar problem (on Ubuntu Mate) and seems that we have kind of a cyclical dependency:
By some reason sudo needs network (to vali... | Why is my sudo process freezing? |
1,515,445,968,000 |
My computer (which has an NVIDIA card) has a rendering problem that is very annoying.
Sometimes the X server 'locks up' after freezing (or whatever's going on in there because VLC music loops at the current packet then) for ~1 second, the pointer becomes invisible, the keyboard & mouse won't work and I get a screen th... |
By the way: alt-sysrq-[rk] won't help here - it actually kills all the programs itself and putting you in that console scenario. However, that is not the problem. In a nutshell, it's nouveau.
From what you're saying, the X server is still functioning but the graphics "connection" appear to be cut off from your display... | X server, keyboard & mouse lockup with corrupted display |
1,515,445,968,000 |
I'm trying to use my new Wacom (CTL-490DW-S (Intuos DRAW)) drawing tablet with Linux Mint.
I have an PC with a clean install (due to me messing up so many times already!) of Linux Mint:
Linux Mint 17.3
Cinnamon 2.8.6 32-bit
Kernel 3.19.0-32-generic
The PC is a:
Intel Core 2 Quad Q8200 @ 2.33GHz x4
3.8GiB Memory
11... |
I was in the same boat. Was able to get the tablet recognized on Arch linux by installing linux-headers, and input-wacom-dkms from AUR which did the patching of the kernel. I'm not sure if it will work on Debian-based distros (Ubuntu/Mint) but there's a python script for input-wacom-dkms here. From what I've read the... | Linux Kernel - Wacom Tablet (CTL-490DW-S) - Lockout |
1,515,445,968,000 |
I'm running Linux Mint Maya 13.2 on a laptop from a USB stick, and SSHing onto that install from my own work computer.
When i'm editing a file with Vim, i keep getting a pause of about a minute where it becomes completely unresponsive. The cursor is blinking but i can't do anything. After a minute or two it comes ba... |
network conditions. To detect if your network conditions are good exit to shell on remote machine and hold any character key. If you see that character flow is unstable or 'hangs' you have network problems.
vim does autosave and target disk if NFS or something like that. To detect Either use sar to get data from the ... | Vim pausing randomly for a minute or so at a time |
1,515,445,968,000 |
Yesterday I installed Mint 15 MATE on my laptop. Everything worked perfectly, so I installed some packages (python-django, mysql-server, and some other python modules). I also ran apt-get update && apt-get upgrade. Finally I selected a NVIDIA proprietary driver recommended by Mint, and changed the desktop icons.
I did... |
I had also some trouble with my Nvidia Card at boot up and occasionnal freeze.
What i've done was to add 'nomodeset' to the grub boot option.
You should try it... if it solve the problem you can make the change permanent :
Edit /etc/default/grub
sudo nano /etc/default/grub
Find this line :
GRUB_CMDLINE_LINUX_DEFAULT=... | Mint 15 freezes at startup |
1,515,445,968,000 |
I've seen a few different questions about ls hanging. It's usually because they use the -l switch, which causes a stat on the file, which in turn is a bad symlink or pointing to an NFS mount or some such.
I have a local file (in an old copy of the Git source that somebody else unpacked, of all things) that causes sta... |
It may be a problem in getting the user name or group name, if you use and LDAP or NIS or other sources for that. What are you passwd and group lines in /etc/nsswitch.conf? This may be the case if an ls -nl return immediately.
| Local, regular file causes `stat` or `ls -l` to hang |
1,515,445,968,000 |
After an update/ upgrade on Debian 12 (weekly update), there is NO WiFi, files are not opening, unable to shutdown or sleep, and freezes when using sudo. The bug is fixed with a new release of kernel. But, I am NOT able to install the new kernel.
I downloaded the new kernel file to a flash drive using another laptop
... |
I got the trick from @Jaromanda X and details from u/Hendersen43 and
u/Only_Space7088 at:
https://www.reddit.com/r/debian/comments/18i60wx/networkmanager_service_freezes_the_whole_pc_after/
I am giving details to help newbees...:
I solved it by:
(1) Interrupting booting process, and changing the kernel back to the pre... | After an update (a kernel bug it seems) Debian 12 hangs when hitting sudo: Unable to install the new kernel with bug fixed |
1,515,445,968,000 |
I have set up a machine that I use as a server using Ubuntu 20.04 . The machine worked perfectly but lately, it started giving me a really strange behavior. One time while I was working remotely suddenly I could not use anything. All the binaries were unreachable and whenever I was trying to invoke them using their pa... |
So, finally, I had a chance to take look at the actual machine and perform some changes.
The issue, (at least it seems like that) was solved by doing the following; The SATA port#0 on the Motherboard, had a dangling cable that was NOT connected to any HDD or SSD. Instead, my HDD was connected with another cable on SAT... | System Frozen: Input/Output error |
1,515,445,968,000 |
I've been having this problem for several months. I'm running Linux on my personal computer. At random times, upwards of 3 times per day, my system totally freezes and becomes unresponsive to any input except a hard power-off. No mouse cursor movement, no SysRq magic keys, even pressing Num Lock doesn't toggle the LED... |
This freezing closely matches an open bug in the Linux Kernel (https://bugzilla.kernel.org/show_bug.cgi?id=109051) related to power management and idle states of certain Intel processors. My system uses an i3-3220T CPU manufactured ca 2013, which appears to be approximately the same generation as the processors affect... | Random freezes, kdump not triggered, system does not reboot |
1,515,445,968,000 |
My Debian Sid (KDE) OS (on a PC with an Nvidia GTX 970, proprietary drivers, an i7-8700K CPU, and 16GB RAM) has begun freezing randomly. Once or twice a day, it's completely unresponsive; the mouse won't move, and SysRq does nothing.
This began after upgrading a bunch of packages. I checked syslog but nothing sticks... |
In case anyone is interested - I tried several things:
bios update
memtest came up clean
switch to Cinnamon
downgrading nvidia drivers to previous version
setting intel_idle.max_cstate
and some other less notable things. Eventually I compiled a newer version of the kernel and have had no freezes for a few days.
| Debian sid freezing randomly |
1,515,445,968,000 |
I use Linux Mint with Dell XPS 15 as work laptop and build a large Android application using gradle.
With all optimizations it still uses almost all available RAM (16 GB) and starting to use SWAP from swapfile (maybe, I should use swap partition instead?). It causes a high I/O rate and Cinnamon (and all other applica... |
With all optimizations it still uses almost all available RAM (16 GB)
it — who? Typically every general purpose OS designed since 1970s uses all available RAM or its huge part for slow storage content caching intensively. If it means VM cache what troubles are there? Run free -m and study its output, it used to have... | Linux freezes during I/O load [closed] |
1,515,445,968,000 |
I am trying to mount directories from my work machine on my laptop via sshfs. The command I'm running is
sshfs -d -o allow_other -o reconnect -o ServerAliveInterval=15 server:~/Documents ~/Documents/home
The corresponding entry in ~/.ssh/config is
Host server
User myname
Port 22
ProxyCommand ssh -q -W ma... |
Okay the problem was that the actual name of mountPoint was home and somehow that was too much for sshfs. If anyone knows why it's not a good idea to call the mount point home I'd be happy to learn something here.
Cheers
| Using sshfs freezes all terminals |
1,515,445,968,000 |
Since a recent update, when I quit a web page containing a Flash animation in Firefox, the plugin-container process becomes a zombie, and then the systemd-journald process (also maybe something like systemd-coredump sometimes) eats several hundreds megabytes of memory. I don't have much RAM, so it makes my system swap... |
According to ArchWiki, you can run this to disable crash dump journaling:
# ln -s /dev/null /etc/sysctl.d/50-coredump.conf
# sysctl kernel.core_pattern=core
| How can I prevent systemd from freezing my system when Flash dies? |
1,515,445,968,000 |
I just had a weird system freeze that I resolved using alt-sysrq-e. Here's my dmesg: https://gist.github.com/1609263
I was wondering whether it might be some kind of deadlock in the reiserfs3 code since it's mentioned so many times (and in nearly all the call traces)? Or would it look the same with any other file syst... |
I ran a Slackware system for 8 years using ReiserFS v3 as the main filesystem. I don't think I ever had a problem until the disk started having hardware problems. I looked at your messages, and although the problem appears to come from filesystem code, it also looks like ext3 messages are mixed in there.
Personally, I... | Is this task freeze related to ReiserFS (v3)? (or: is ReiserFS getting so old that it should be actively replaced?) |
1,515,445,968,000 |
I'm not sure how to debug this, but I've noticed if I am performing a task that requires a large amount of disk reads/write (such as updating a large postgres table) that periodically actual reads and write will fall to 0 while dm_crypt shows 99.9% IO usage in iotop.
On top of this the whole DE will freeze every so o... |
To fix this I had to edit vm.dirty_ratio and vm.dirty_background_ratio. The issue was I was writing to the disk faster than the disk could handle and the system froze whenever the cache was filled.
| dm_crypt / kworker hogging IO and causing system freeze |
1,509,752,415,000 |
I'm experiencing random desktop freezes (I have to hard shut down the system) after recent updates on my Archlinux box.
Today it happened a few minutes after startup. The only programs running were:
Google Chrome 43.0.2357.134 (recently installed)
Gnome shell 3.16.3
Gnome Terminal 3.16.1
pacman 4.2.1
My kernel versi... |
Mine was a kernel bug in the Bluetooth module introduced in kernel 4.1 and fixed in release 4.1.7.
| Linux desktop keep randomnly freezing after recent updates |
1,509,752,415,000 |
I am using centOS, sometimes the system just does not respond at all. In windows box, I can ctrl-alt-delete.
On a Linux machine, how should I handle this?
|
IMHO, There is no such ctrl+alt+del key-combination for Linux. But to check, why the machine get hangs, you can do either:
Press alt+ctrl+f1, and observe the command "top", to see "who"/"which program" is eating up the cpu and causing the hang.
You can place "system-monitor" in the taskbar, whose indicator will sho... | No response on a Linux machine |
1,509,752,415,000 |
For the last few hours, my computer has been freezing at random every minute or so. I'll type some text, and it won't appear until ~15 seconds later, all in one block. It started happening all at once for no apparent reason. I didn't make any system changes (that I can think of). I'm using about 2% CPU and 10% RAM.
Th... |
They are probably very related.
STOP USING THAT COMPUTER UNTIL YOU FIX THE FAN
It can only take milliseconds for the CPU to go from "OK" to "OMG I melted". They should never be used with out proper cooling. To do so, will cause damage, and could cause a fire, injury, and all manor of bad things.
That warning aside Li... | Linux randomly freezing? |
1,509,752,415,000 |
I have this rule which runs a script to send me an email whenever a drive drops out of the system:
SUBSYSTEM=="block", ACTION=="remove", ENV{DEVTYPE}=="disk",\
RUN="/usr/sbin/disk-monitor.sh $env{DEVNAME}"
This is the script:
#!/bin/bash
echo "Dropout detected $(date)" | mail -s "WARNING: Drive $1 has dropped ou... |
I think the problem here is that your RUN=script directive overrides an existing one, which was necessary for dmcrypt to work properly. Try whether using RUN+="/usr/sbin/disk-monitor.sh $env{DEVNAME}" works better (notice the +).
Is it really DEVNAME, too? man udev tells me about $dev and $devpath and $devnode, but no... | Why does this udev rule cause cryptsetup to freeze? |
1,509,752,415,000 |
My system failed to boot several times today.
After completely disconnecting it from power, I managed to get it back on, luckily, but I'd like to comprehend what has happened.
From a user's point of view, it was like this:
I turn on the PC, the fans are noisier than usual and the boot process would get stuck sometimes... |
You have a modern multi-core processor and your distribution uses systemd. As a result, at boot time, many things will happen in parallel, sometimes with no fixed ordering. Some of the log messages might be slightly out of order with each other, if they used different routes (native systemd journaling vs. the kernel's... | How to read these journal entries after failed boot? |
1,509,752,415,000 |
I have Debian 10 Buster installed on my Acer Nitro AN515-51
laptop (dual boot with Windows 10). These are the system specs:
Graphics: Nvidia GeForce GTX 1050 ( 4GB VRAM); Intel UHD Graphics 630.
RAM: 8GB SDRAM (DDR4)
lscpu | grep -i model reports this:
Model: 158
Model name: Intel(R) Core(TM) ... |
Unfortunately this is still too unspecific to give you a definitive answer but here are some things you can try:
Check the system log files by running sudo less /var/log/syslog and sudo less /var/log/kern.log. Look for messages related to ACPI or your NVIDIA drivers. Maybe it contains some errors that point you into ... | Debian 10 Buster hangs when I try to reboot/shut down |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.