LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2004, 07:49 PM   #1
PocaHontas
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Unhappy "cp" command causes system crash


Hi!

I have a mail server which run Red Hat 7.3 with kernel 2.4.20-promise on an Acer Altos R300 platform. The mail server is running postfix and MailScanner, and not much else.

In the last week our mail server has crashed every day several times, until we realized that the server seems to crash every time a certain user accesses his mailbox. In trying to solve the problem we tried to "cp" the file for his user mailbox to another directory but this also crashes the system. We tried to move other mailboxes and they didn't cause a problem, only that one file does that we know of so far.

When I say crash, even the console is black, absolutely everything is frozen, which forces us to do a hard reboot. On bootup the filesystem check does find orphan i-nodes most of the time, but then passes the check successfully after the fix.

Could someone please help me to fix that file?

Thanks in advance!
Poca Hontas
 
Old 09-17-2004, 12:52 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
couple of things to try
mv the file to somewhere, and check it.

but most likely ... hmm ... have you run fsck over the hdd manually (ie the non startup one, but the one that would be run if it can't fix the mistakes)?

Another thing you might try is mount the hdd on another OS (eg a Knoppix or Slackware (or whatever) boot cd) and look at the file that way (that requires server downtime though).

Also you could just nuke the file, if the file is dead it's dead anyway, but of course you want to be sure it is dead before you do something to it ...

Incidentally, what was the last time it was changed ? what does a ls -op or a ls -l give?

Last edited by chakkerz; 09-17-2004 at 12:54 AM.
 
Old 09-17-2004, 01:48 AM   #3
PocaHontas
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks chakkerz!!!

fsck seems to have fixed the problem. Isn't that what runs on startup when it asks for confirmation for a file system check? I was so certain it was running fsck that I didn't bother running it again after bootup...

Thanks again!

Poca Hontas
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when using the "last" command in linux what does crash and down mean mcbrihk Linux - Newbie 4 12-05-2012 03:00 AM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 08:16 PM
where is command "cd" located? or is it a command/ system call? feetyouwell Linux - Software 5 10-01-2004 08:01 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM
'Last' command showing "Crash" for ftp users wizade Linux - Software 2 10-27-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration