Site Tools


linux:general:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:general:troubleshooting [2018/08/28 17:23] lunetikklinux:general:troubleshooting [2019/01/24 17:04] – [Cant mount Windowsshares (CIFS) on Linux] lunetikk
Line 1: Line 1:
 ===== Troubleshooting ===== ===== Troubleshooting =====
 +
 +==== Removing old kernels leads to broken symlinks ====
 +
 +=== Description ===
 +
 +apt-get autoremove leads to a broken symlink which requires a reload of grub
 +
 +<code>
 +apt-get autoremove
 +...
 +The link /vmlinuz.old is a damaged link
 +Removing symbolic link vmlinuz.old
 + you may need to re-run your boot loader[grub]
 +The link /initrd.img.old is a damaged link
 +Removing symbolic link initrd.img.old
 + you may need to re-run your boot loader[grub]
 +</code>
 +
 +=== Reason === 
 +
 +Broken symlinks
 +
 +=== Fix === 
 +
 +Run "update-grub"
 +<code>
 +update-grub
 + Generating grub configuration file ...
 + Found linux image: /boot/vmlinuz-3.13.0-157-generic
 + Found initrd image: /boot/initrd.img-3.13.0-157-generic
 + Found linux image: /boot/vmlinuz-3.13.0-153-generic
 + Found initrd image: /boot/initrd.img-3.13.0-153-generic
 + Found memtest86+ image: /boot/memtest86+.elf
 + Found memtest86+ image: /boot/memtest86+.bin
 + done
 +</code>
 +
 +\\
 +\\
  
 ==== Linux starts in emergency mode - faulty logical volume (xfs) ==== ==== Linux starts in emergency mode - faulty logical volume (xfs) ====
Line 91: Line 130:
  
 mysqld would have been started with the following arguments: mysqld would have been started with the following arguments:
---user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306 --basedir=/usr --datadir=/var/lib/mysql --tmpdir=/tmp --lc-messages-dir=/usr/share/mysql --skip-external-locking --bind-address=127.0.0.1 --key_buffer=16M --max_allowed_packet=16M --thread_stack=192K --thread_cache_size=8 --myisam-recover=BACKUP --query_cache_limit=1M --query_cache_size=16M --log_error=/var/log/mysql/error.log --expire_logs_days=10 --max_binlog_size=100M+--user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306...
 </code> </code>
  
-Compare the defaults for "socket", both should be the same. If you get a different socket for your client, try to connect to your database by using the same+Compare the defaults for "socket", both should be the same. If you get a different socket for your client, try to connect to your database by using the same as specified for mysqld
 <code>mysql --socket=/var/run/mysqld/mysqld.sock -hlocalhost -uroot -p</code> <code>mysql --socket=/var/run/mysqld/mysqld.sock -hlocalhost -uroot -p</code>
  
Line 124: Line 163:
  
 The connection should work now.  The connection should work now. 
 +\\
 +\\
 +
 +==== Cant mount Windowsshares (CIFS) on Linux ====
 +
 +=== Description ===
 +
 +Mounting your share leads to the following error
 +
 +<code>
 +mount error(9): Bad file descriptor
 +</code>
 +
 +=== Reason === 
 +
 +Microsoft released an Update (January 8, 2019 (Monthly Rollup)) which broke smb2.0 and 2.1 connections.\\
 +
 +The issue affect Windows 7 and Windows Server 2008 (R2).
 +
 +[[https://www.theregister.co.uk/2019/01/09/windows_7_network_broken/|https://www.theregister.co.uk/2019/01/09/windows_7_network_broken/]]
 +
 +[[https://serverfault.com/questions/948263/kb-4480970-and-or-kb-4480960-breaks-smb2-connections-to-windows-7-shares|https://serverfault.com/questions/948263/kb-4480970-and-or-kb-4480960-breaks-smb2-connections-to-windows-7-shares]]
 +
 +=== Fix === 
 +
 +Microsoft released a fix to fix their update... m(
 +<code>
 +This update resolves the issue where local users who are part of the local “Administrators“ group may not be able to remotely access shares on Windows 7 SP1 and Windows Server 2008 R2 machines after installing the January 8th, 2019 security updates. 
 +This does not affect domain accounts in the local "Administrators" group.
 +</code>
 +
 +Download KB4487345 and install the fix: [[http://www.catalog.update.microsoft.com/Search.aspx?q=KB4487345|KB4487345]]
 \\ \\
 \\ \\
  
linux/general/troubleshooting.txt · Last modified: 2020/12/03 15:12 by lunetikk