Ubuntu Servers :: DMESG (command) Log Not Exist On HDD

Jul 19, 2010

I would like to find where logs form dmesg(command) are stored on my hdd drive. I'm testing broken hdd with badsectors, and I've got some i/o errors, that I can read (just the most recent) using dmesg command (dmesg buffer). I would like to see whole log, that is interesting for me, but I cannot find where it is stored in /var/log

dmesg command(buffer) (last few lines)
Code:
[245129.080558] end_request: I/O error, dev sdb, sector 218246624
[245129.080562] Buffer I/O error on device sdb, logical block 27280828
[245132.037921] sd 2:0:0:0: [sdb] Unhandled sense code
[245132.037925] sd 2:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[245132.037928] sd 2:0:0:0: [sdb] Sense Key : Medium Error [current]
[245132.037932] sd 2:0:0:0: [sdb] Add. Sense: Unrecovered read error
[245132.037936] end_request: I/O error, dev sdb, sector 218246624
[245132.037940] Buffer I/O error on device sdb, logical block 27280828 .....

View 2 Replies


ADVERTISEMENT

General :: What DMESG Command In Unix Do

Dec 10, 2010

What exactly is the use of dmesg?

View 3 Replies View Related

Red Hat / Fedora :: See Dmesg And /ver/log/messages Of Multiple Servers?

Oct 18, 2010

I have around 10 Servers.How to see Dmesg and /ver/log/messages of multiple servers from a centralized location

View 5 Replies View Related

General :: Grub 2 Bsd Command Does Not Exist

Aug 6, 2011

I am trying to run Memtest86+ on my Linux computer. I use Grub 2, and Memtest86+'s core is located in /boot/memtest86plus/memtest.bin file.It seems to be pretty newbie error, but I can't find any documentation covering this problem.If I use linux16 instead of netbsd, computer just restarts without any error.

View 9 Replies View Related

Ubuntu Servers :: Checking If Users Exist?

Jun 28, 2011

Not sure if this is the right place fo this but....I'm just learning to write bash scripts. I'm experimenting on a ubuntu server 11.04 virtual machine.As part of the script I want to automate user creation.Is there a way to check if a user already exists in a script. so i can do something like

Code:
if userexists; then
do this
else
do this instead
fi

View 6 Replies View Related

Ubuntu Servers :: Does Quality MTA Software Exist

Jul 9, 2011

I currently run a server. The web server (Abyss X1) runs on Linux, and the MTA server (MERCURY) runs in a virtualized Windows environment, within Linux.

I am soon going to be building a dedicated server, and at the moment it looks like it will be a Windows-based server, as I can't find MTA software for Linux with the feature I require.

I need MTA software that can show me network verbose output in real time, as such does MERCURY in the following screen shot: [url]

Does anyone know if such MTA software for Linux exist?

MERCURY does not work correctly under WINE, so the WINE method is not an option.

View 1 Replies View Related

General :: Slackware 13 Sessions Command Doesn't Exist?

May 24, 2010

I'm running Slackware 13 - xfce4 and I got a new session in background. How could I see that session and use it? In backtrack I'm doing it via sessions in terminal but im Slackware 13 session command doesn't exist.

View 2 Replies View Related

General :: Run Command Through Ssh But Also Run A If Check In Bash To See Ifa File Exist?

Aug 1, 2011

So I want to run command through ssh but also run a if check in bash to see ifa file exist. I know that to run ssh commands you do ssh user@server YOURCOMMANDbut if i need to run an if statements, how would this work??

View 4 Replies View Related

Ubuntu Servers :: 10.04 - ERROR: Module Perl Does Not Exist

Jun 14, 2010

I have Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 mod_fcgid/2.3.4 Phusion_Passenger/2.2.14 PHP/5.2.10-2ubuntu6 with Suhosin-Patch configured In UBUNTU 10.04 I like to install apache2 mod_perl I make apt-get install libapache2-mod-perl2 and I get: Quote: libapache2-mod-perl2 is already the newest version.

Ok I try sudo a2enmod mod_perl ERROR: Module perl does not exist! how I make Perl work in apache2 UBuntu 10.04

View 3 Replies View Related

Ubuntu Servers :: ERROR Module Fcgid Does Not Exist

Oct 3, 2010

I am running Ubuntu 10.04 x86 64 bit Desktop.I want to accomplish setting up a virtual host environment for education reasons. How may I accomplish this? So far I am going by this following guide: URL... But when I get to the part of entering the command in the terminal "a2enmod fcgid" I get the following error: "ERROR: Module fcgid does not exist" I've been pulling my hair and spent a ton of time trying out how to set up suexec and virtual hosting .

View 1 Replies View Related

Ubuntu Servers :: (IMO) Apache - Directory PHPInfo Does Not Exist

Mar 23, 2011

Have Apache running on Ubuntu Server. Say I have a domain, www.somewhere.com, and I have uploaded a file, phpinfo.php. If I hit http://www.somewhere.com/phpinfo.php, I get my file as expected. However, If I hit non-existent file http://www.somewhere.com/phpinfo/somefile.dat, it also acts as if I hit phpinfo.php, instead of giving me a 404 error. It seems that because the DIRECTORY "phpinfo" does not exist, it decided that I must have meant to hit phpinfo.php at the root of the site.

If I create an empty "phpinfo" directory then it behaves as expected and gives me a 404 not found page. This is reproducible for any other file name you can think of. I'm sure this is some Apache convenience behavior but I would like to disable it (it is messing with some mod_rewrite stuff I would like to do). Because it's hard to describe I cannot figure out which Apache option it might be (whatever I Google for gives me completely unrelated results).

View 9 Replies View Related

Ubuntu Servers :: /etc/default/grub File Does Not Exist?

Jun 10, 2011

Due to a motherboard issue, I need to edit a parameter in the "etc/default/grub" file.

However, the problem is, that file doesn't exist.

Grub does seem to be installed, I can get into grub from the command line etc.

This is a fresh install of Ubuntu Server - 10.04.2 LTS

Brand new box, no previous installs of anything, no other operating systems etc.

Is there somewhere else that file could reside ? I tried find -name '*grub*' and got plenty of files, but none are the one that I need.

Is there someway to generate this file ?

I remember when installing from the CD it asking about grub, but I don't recall which option I chose, it was whichever one was the default.

This thing won't reboot right after power loss etc until I can edit that value... which at the moment seems to not exist....

Btw, I'm not a total linux noob but far from an expert, so I may need any answers "dumbed down" a bit.

EDIT (more info):

It seems that I have regular "grub" and not "grub2" installed... I'm assuming that is part of the problem ?

My version: grub-install (GNU GRUB 0.97)

Does this version of grub allow you to edit options etc ?

Specifically, what I need to do, is edit this value: GRUB_CMDLINE_LINUX_DEFAULT

I need to add "reboot=a" to this line.

View 1 Replies View Related

Ubuntu Servers :: Cifs Share Does Not Exist, Localfolder Is Mounted?

May 28, 2010

When using the following cifs mount command, mount -t smbfs -o username=username,password=password //srv/shr /usr/localfolder/and the cifs share does not exist, localfolder is mounted like d????????? ? ? ? ? ? localfolderafter a number of time , when umounting we get a kern <soft lock>Is there any way to fail the mount if the destination share does not exist, ive had a quick look through man mount but can not see a solution.

View 1 Replies View Related

General :: Command Line - Create Directories That Don't Exist While Creating A New File?

May 8, 2010

I can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt

View 1 Replies View Related

CentOS 5 :: Search A Text File For The Existence Of Certain Strings And Execute A Command If They Exist, Something Along The Lines?

Feb 23, 2010

This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:

if <string> exists
command
or

if <any member of this list exists>
command

I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.

View 7 Replies View Related

Ubuntu :: Bootup-speed: How Does Dmesg Work?

Jan 26, 2010

REASON: I want to find out how to improve my boot-up and hibernate-awake time for ubuntu (it is 300% slower as hibernate on windows xp on the same machine)

QUESTION: well my question is concerning the tool dmesg. As I understood from reading the quite brief >>man dmesg this tool will show the messages the kernel put out during the boot-up. true? A typical line on my dmesg output I receive would look like this:

Code:
[...]
[ 39.632219] i915 0000:00:02.0: LVDS-1: EDID invalid.
[ 46.964733] wlan0: authenticate with AP 00:23:08:20:58:6f
[ 46.965988] wlan0: authenticated

subquestion:

a) the number in the beginning (is it the time between the two kernel messages?) in the example it wold be about 7 seconds

b) if it is the time in seconds: does it mean the kernel was abusing 7 dseconds for the output of the line? how can I track what causes the delays?

PS: maybe I should post this in a different ubuntuforums subgroup (if so which?) PSS: is there any good webpage (I have not found any yet) on this topic?

View 2 Replies View Related

Ubuntu :: Mouse Freezes, Got Dmesg Stacktrace?

May 5, 2010

I have been having some problems with a mouse on my system (amd64 variant).The problem has exhibited both with Karmic and Lucid, even after a clean install of Lucid. have a logictech wireless keyboard and mouse combo. After some time, the mouse just randomlyeezes, although the keyboard is still responsive.I plugged in a second USB (standalone) mouse.It initially worked, but after some time, it also freezes. I attempted to unplug the frozensecond mouse and place into another USB port. When I did, the red light on the bottom of the mouse failed to light up. I then attempted to plug in a third mouse, and it failed to show the light as well.When ssh'ing from another box, I get the following from dmesg:

Code:
[79275.300031] usb 4-1: new low speed USB device using ohci_hcd and address 2
[79275.524106] usb 4-1: configuration #1 chosen from 1 choice

[code]...

View 9 Replies View Related

Fedora :: Exactly How Does Dmesg Work?

Jul 21, 2010

I am new here and have only been using Linux for about 3 months so please help by explaining things clearly and don't assume I should know. However, for reasons too detailed to mention here I want to know how dmesg works. What I understand is that it provides log details of the startup, hardware etc until logger takes over. What I want to know is this: Do you still get new log messages in dmesg after boot and after the logger has taken over or is it simply a snapshot of what happens at boot time If you shutdown you machine or more importantly something happens to cause it to crash, does it or is it possible to make it record dmesg logs or is it purly a function of boot up

View 6 Replies View Related

Fedora :: F15: /var/log/dmesg Not Being Updated?

Jun 13, 2011

I run F15 on my desktop PC and /var/log/dmesg is not being updated. I used preupgrade to upgrade from F14 to F15 on June 3. I boot F15 at least once per day. /var/log/dmesg has not been updated since June 3. /var/log/dmesg was being updated correctly when I ran F14. On f15, if I issue "dmesg" from the command line, I get the expected result. Is this a bug?

View 12 Replies View Related

Red Hat / Fedora :: Usb Error In Dmesg

Apr 20, 2011

When I connect to the internal usb port, i find the following error msg in dmesg :

usb 3-2: device descriptor read/all, error -71

Is this benign, can i ignore?

The message doesnot appear when I connect to the external ports.

googling pointed me to this [URL]

AT the moment the stick is being detected and all works. But still confused as to whether I have a serious problem that may lead to the usb stick going missing or hanging at some point or is this error msg just a spurious one that I can safely ignore?

View 1 Replies View Related

Red Hat :: Script To Send The O/p Of Dmesg And Df -h?

Mar 25, 2011

I need a script to run in linux..it should mail the o/p of df -h & tail -20 dmesg every hour.

View 3 Replies View Related

Ubuntu :: Dmesg Output Polluted With Network Logs?

Apr 26, 2011

Occaisonally I use 'dmesg' to see what's happening with my system. Lately I've noticed something that I've never seen before: the output from dmesg is polluted with logs of network packets. At the moment, the output of 'dmesg' looks like this:

Code:
[312682.369635] [UFW BLOCK] IN=eth0 OUT= MAC=00:1e:8c:25:b8:a2:00:14:7f:ff:5d:00:08:00 SRC=58.28.25.10 DST=192.168.1.71 LEN=40 TOS=0x00 PREC=0x00 TTL=60 ID=0 DF PROTO=TCP SPT=80

[Code]...

How can I make dmesg useful to me again?

View 1 Replies View Related

General :: Troubleshoot Disk With Dmesg?

Mar 28, 2011

How can I troubleshoot disk with 'dmesg' cmd ? How to distinquish :

- physical disk error
- file system corruption

What is I/O Error ?

View 1 Replies View Related

Software :: Where Is Dmesg Output Stored

Sep 9, 2010

I have enabled usb storage debug prints for the debugging of my driver in kernel 2.6.24.4 of Fedora 8. When I type dmesg and press enter I see many prints on the screen. There are however lot many prints and I want all those prints from the beginning. However it seems that the older prints are overwritten with newer prints. SO if just redirect the dmesg output to some file, I get only newest prints but older are lost.

Surprisingly /var/log/messages doesn't contain those prints! Also I see there is a file named /var/log/dmesg , but that files never gets updated with the prints I see on the screen. So, my question is can I get all those dmesg prints right from the beginning in a file somewhere?

View 1 Replies View Related

Red Hat :: Load Average And Errors On Dmesg

Jan 18, 2011

I have two servers. One in production (lets call it the OLD ONE) and the other (lets call it the NEW ONE) in tests to replace the OLD ONE.This is the basic hardware of each one: (I can post more detailed info if you need, but beside the erros on dmesg, look at the the L2 cache of the NEW ONE )

Old one:
2 quad core processors that linux recognize as 8 x Intel(R) Xeon(R) CPU E5440 @ 2.83GHz - 32Kb L1 - 6Mb L2
48Gb RAM

New one:
8 quad core processor that linux recognize as 32 x AMD Opteron(tm) Processor 6136 @ 2.400Mhz (- 64Kb L1 - 512Kb L2
128Gb RAM

The scenario:We run a dataflex system on the old one, with average of 3000 users, with tops at 3300 users and sometimes less then 2000. In the old one, we have a load average from 2 to 6 with the 3000 users, depending on the type of application (sometimes we run reports to txt files that take more then 6 hours to complete and the load average can raise to 12). 85% of this conections are from remote links.
Dataflex is a language that derives from C that have their own sgbd (if we can call it that way), and have a limit of 2gb per table. This size we almost have on 5 tables and we use a dataflex feature to compress the data.

The problem:We are migrating (or trying to) the tables to oracle, so we bought new machines for the DB and the new one to replace the old one, becouse we think that could not handle the job with 2 oracles (load balance).In some tests we could see (or suposed) that the oracle database was not so fast with more then 1000 users (opening same table and doing the same task) and we decided to test the new one with the system that is in production right now, with dataflex tables, to ensure that the problem could be oracle.We change the HDs and IP. Started the system on the new one, and started to monitorate as the real users start their jobs. At 800 users the Load Average raised to 26 and with 1300 users we had more then 115 on Load Average. More users login in and the TOP become slow, pointing 400 of LA. From here we started to get some "Lock time out" erros and we had to change to the old one again, to prevent corruption on the tables. I'm analizing all report tools I know about performance and hardware and I cant see nothing. I saw some errors on dmesg, but I can say that is related to that problem.

View 6 Replies View Related

Slackware :: Deleted 'dmesg' By Mistake?

May 30, 2011

had upgraded from slackware 13 to 13.1 and finally 13.37.After this I noticed that 'dmesg' could only be executed as root. So inorder for a user to execute 'dmesg' I executed 'ln -s /bin/dmesg /usr/bin/dmesg'.What happened next is the symlink was created but the dmesg executable was deleted.I do not want to reinstall the OS (very time consuming on a P3 with 512MB RAM) so I want to know which package provides dmesg so that I can reinstall it.The dmesg man page indicated that klogd will provide the package but then when I reinstalled it it was a no go.

View 7 Replies View Related

General :: Debug The DMESG Mesaage Or Any Link For The Same?

Jan 28, 2011

was trying to understand the messages the DMESG gives .Does any one knows how to debug the DMESG mesaage or any link for the same ?

View 6 Replies View Related

General :: Console Display Dmesg Messages?

Feb 15, 2011

I've been getting messages, that should be in the dmesg log, on the console.This has been happening for a while, but I finally got tired of them.My system is Fedora release 14, Kernel 2.6.35.11-83 on an x86_64.When I reboot I get the following displayed with the login prompt.[ 52.492937] readahead-collector: starting delayed service auditd[ 52.795508] readahead-collector: sorting[ 53.033970] readahead-collector: finished

View 2 Replies View Related

General :: Save Dmesg After Crash Or Reboot

Dec 17, 2010

I have a gentoo distribution and need to store the information of dmesg collected until a system crash. At present, after a reboot or a crash the information in dmesg are lost and are not available at the next reboot. How can I save all the information in dmesg until a crash and read them after the succeed reboot?I also checked for dmesg.x files in /var/log or similar files but with no success.

View 4 Replies View Related

Slackware :: Insert Music CDs Floods Dmesg

Oct 11, 2010

I had a terminal open waiting to catch these messages that spam dmesg. Simply inserting a music CD into /dev/sr0 or /dev/sr1 gives me this:

[Code]...

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved