FreeNas can't load kernel - linux

My freeNAS Server has runned about 1.5 years now but over night it crashed and was not available anymore. No WebGUI, no Network Connection, no reaction on the console.
After resetting and autobooting i get the error "Can't load Kernel".
load /boot/kernel
throw's the error "don't know how to load module '/boot/kernel'"
the directory '/boot/kernel' exists, but no copy or backup like '/boot/kernel.old' or something else
What can I do now? Is there some tool to repair the kernel or can i paste 'kernel'-fiels from another installation?
freeNAS is installed on USB-Stick
FreeNas version 8 (how can i get the correct version, because it's not written in console)
I'm sorry I'm an absolute linux rookie.

Related

Bad exit status from /var/tmp/rpm-tmp.9hCo4Y (%build)

Currently working with a RHEL 6 offline system.
I am using a RHEL6 repo server to compile a new IGB driver (IntelĀ® Network Adapter Driver for 82575/6, 82580, I350, and I210/211-based Gigabit Network Connections for Linux*) with a RHEL6 kernel update. It will be included in a RHEL6 patch update for an offline system. The IGB driver version I am using is igb-5.13.7 and the kernel update I am using for this patch is 2.6.32-754.48.1.el6 (x86_64).
When I use the command "rpmbuild -tb igb-5.13.7.tar.gz", the compilation errors out and I receive the following message: "Bad exit status from /var/tmp/rpm-tmp.9hCo4Y (%build)".
The last IGB network driver I compiled successfully was igb-5.10.2. Since then, I installed the most recent RHEL6 kernel update to the repo server, removed the old repodata, created new repodata, ran yum update, and restarted the repo started. I have done nothing out of the ordinary for my patch update and I have no idea why I am receiving the above error.
I read on another Stack Overflow question that if you look in the network driver's spec file (in this case igb.spec), you can find the error on line 28. For me, line 28 was "LANG=C" so I'm pretty sure that's not the issue.
Any advice on how to fix this issue or about what files I should look into?
I've tried using an older version of the IGB driver (igb-5.11.4) in case the new driver file was bad. I've tried redownloading the IGB driver I was using (igb-5.13.7) in case the file I had was corrupted.
I've tried checking the SPEC file which was recommended in another Stack Overflow to find the issue on line 28.
I've tried deleting all of the patch files and network driver from the repo server to start the whole process over from scratch. Same issue arises every time.
I've tried a solution that involves rebuilding an RPM from the Source RPM, installing the RPM spec, and rebuilding the package. However, I can't find the source RPM for the latest IGB driver. Willing to continue down this path if someone knows where to find the igb-5.13.7 source rpm or how to obtain it.

Putty: Network Error: Software caused connection abort

I have RHEL 6.8 Machine installed in a VM. I moved one file libc.so.6 from /lib64/ to /lib64/backup/. Since then I am not able to connect to that machine through Putty or WinSCP. Both the tools give the same error. Software caused connection abort.
As I haven't created this VM, I don't have permission to restart it. But will restarting the machine, solve the issue ? What can be the solution for this situation, except re-installing the OS ?
libc.so.6 is the standard C library and by moving it you borked your system quite well.
The error you get means that SSH connection cannot be established.
All you can do now is access the machine via the console and restore the file in its original position.
The time-saving workaround is to reinstall the OS.
Note :- Reinstalling the OS will solve the issue, but you'll lose all the installed software and the data. That's why it is a workaround and not the solution.

Cygwin Bad Address

When I open a cygwin console I get the following message:
hostname: : Bad address
Furthermore when I try to ssh into a server I get this message:
gethostname: Bad address
Does anyone know what this might be about? I tried reinstalling ssh and reinstalling cygwin to no avail.
I believe this is a known problem affecting some 64-bit users with the latest version of Cygwin (1.7.29-2).
See the thread here: http://cygwin.com/ml/cygwin/2014-04/msg00132.html
I believe the only solution at this point is to download a recent snapshot, which has a patch for this.
You can get snapshots here: http://cygwin.com/snapshots
But read the directions first here: http://cygwin.com/faq.html#faq.setup.snapshots
The only way I could fix this was by installing the 32bit version of Cygwin, it's worked perfectly on my 64bit system.
Chris's method worked. I'm just going to put it in my words here.
This happened to me with Cygwin 64bit. I unplugged my laptop and at some point it crashed and restarted, it had a network issue wlan. I'm not sure the cause but suddenly I got that message "hostname: : Bad address" when going into cygwin. cygwin.bat runs .\bin\bash --login i and then I got that message
Judging by the solution that worked (replacing cygwin1.dll)
My guess is cygwin1.dll got corrupted, perhaps from an unexpected shutdown (as I just had one of those and was fine before).
Solution was, to replace cygwin1.dll with the latest one from the cygwin snapshots link.
I went here
https://cygwin.com/snapshots/
Got the latest cygwin1.dll
by clicking this link
Downloading cygwin1....dll.xz
http://cygwin.com/snapshots/x86_64/cygwin1-20141120.dll.xz
Extracting cygwin1.dll from it with 7zip (though some may use tar within cygwin but I closed cygwin particularly as i'll be replacing that file of cygwins)
made a copy of my existing cygwin1.dll and Copied cygwin1.dll over my existing cygwin1.dll
(I dragged the cygwin1.dll icon onto the command prompt to get the path to expand)
C:\cygwin\bin>move cygwin1.dll cygwinold1.dll
1 file(s) moved.
C:\cygwin\bin>move C:\Users\harvey\Downloads\cygwin1-20141120.dll\cygwin1.dll .
1 file(s) moved.
Then cygwin started fine no problems.

Legacy Cywgin Installation Using Cywgin Time Machine Failing (Unable to get setup-2.ini)

I am attempting to download an older version of Cygwin (1.7.16) in order to compile an open source project (Dummynet - windows port).
The only way i found of doing so is by using a project known as Cygwin Time Machine.
In order to use this i downloaded the cygwin 1.7 installer from 'ftp://www.fruitbat.org/pub/cygwin/setup/1.7/setup-1.7.exe', and when prompted for a download site, added 'ftp://www.fruitbat.org/pub/cygwin/circa/2012/08/20/222043'. However, the download fails with the following error :
Unable to get setup-2.ini from
ftp://www.fruitbat.org/pub/cygwin/circa/2012/08/20/222043
Im looking for help in getting past this error, or any other alternative way of installing Cywgin 1.7.16 (Aug 20, 2012).
The Admin at Cygwin Time Machine was kind enough to point me to the solution. The issue can be resolved by downloading the cygwin setup exe from cygwin.com/setup-x86.exe and starting it with the -X option. Once started, one may choose any cygwin 1.7.* snapshot url from the cygwin time machine site and add that as the mirror to download and install cygwin from.

vmware player unable to start services in kubuntu

my environment:
kubuntu : 3.2.0-generic-pae
vmware player: VMware-Player-4.0.4-744019.i386.bundle
And i have been installed it.
$sh VMware-Player-4.0.4-744019.i386.bundle
I have a problem, when i launch "menu->system->VMware Player"
it launch a window and start compiling:
[ok] Virtual Machine Monitor
[failed] Virtual Network Device
[ok] VMware Blocking Filesystem
[ok] Virtual Machine Communication Interface
[ok] VMCI Sockets
[result fail]Starting Vmare Services
See log file /tmp/vmware-root/modconfig-2722.log for detail
from log file:
[msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings":
No such file or directory.
[msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config":
No such file or directory.
[msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/preferences"
No such file or directory.
Failed to find /lib/modules/preferred/build/include/linux/version.h
Failed to compile module vmnet!
Could some people tell me what's wrong ?
I suppose that there are no linux headers installed on your machine, that is why it is impossible to build the vmnet module. You must install headers and then try once again.
Ok, I've had the same problem this evening when upgrading from 4.0.3 to 4.0.4. What I've found to work is to first download the patch from this VMWare community thread - http://communities.vmware.com/thread/344213
Unzip it and then open the patch-modules_3.2.0.sh in gedit. There will be three lines at the top that read:
fpatch=vmware3.2.0.patch
vmreqver=8.0.2
plreqver=4.0.2
You have to change the plreqver=4.0.2 to plreqver=4.0.4
Then, open your terminal and run
sudo ./patch-modules_3.2.0.sh
As a side note, keep that file handy, because I found that I had to do the same thing when upgrading from 4.0.2 to 4.0.3 in Ubuntu 12.04. However, when you try the same again in the next upgrade (e.g. change the plreqver to 4.0.5 and run the script), it will say that the file is already patched and it won't work.
To get around this, you need to go to the "/usr/lib/vmware/modules/source/" folder, find the hidden file called ".patched", and delete it (easiest option is to "sudo nautilus" in terminal and hunt through the folder structure). Then it thinks that it hasn't been patched and does the process again.
Hope this gets your VMWare back up and running.

Resources