Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2008, 07:43 AM
|
#1
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Rep:
|
Command "mail" returns "panic: temporary file seek"
Hello all.
One of our RHEL 4.2 servers is behaving very strange. Consider this:
Code:
[root@server1 /tmp]# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 446711 messages 276778 new 446711 unread
fseek: Invalid argument
panic: temporary file seek
Avbrutt (SIGABRT)
I run a simple command such as "mail", and it returns a fseek error. It's running on Vmware ESX, and I have no indicating that there is a hardware failure. Does anyone know where to even start debugging this thing?
Regards,
kenneho
|
|
|
12-22-2008, 07:52 AM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
AFAIK it has to do with large mailboxes.
Try mutt to see if you can access the mailbox
|
|
|
12-23-2008, 02:30 AM
|
#3
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Original Poster
Rep:
|
Mutt worked just fine. Seems like all of the mails are just debug stuff. Can I simply remove the file /var/spool/mail/root to get rid of the mails? Or do I have to re-create an empty version the file.
|
|
|
12-23-2008, 02:35 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
you can do
cat /dev/null > /var/spool/mail/root
|
|
|
12-23-2008, 03:03 AM
|
#5
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Original Poster
Rep:
|
Thanks, I'll give it a try as soon as I get the chance. And I'll report back here the results.
|
|
|
12-23-2008, 03:27 AM
|
#6
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Original Poster
Rep:
|
I worked like a charm. Thank you for your help.
I was worried that the fseek error would imply something seriously wrong with the file system or hardware, so I'm happy it was just this small thing.
|
|
|
All times are GMT -5. The time now is 02:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|