LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-24-2002, 02:48 PM   #1
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Rep: Reputation: 15
segmentation fault question


I downloaded a bunch of stuff to /tmp/download. now my /tmp filesystem is hosed. I did a du -h at one point, and it said there was 1.1T of space used...and it is 3.8G filesystem!! hmm, guess I'll know better next time not to leave my FTP client up pulling stuff down overnight!

anyhow, anytime I go into /tmp and try to ls or du, I get this error:

kernel: Assertion failure in do_get_wirte_access() at transaction.c:706: "handle->h_buffer_credits > 0"

after this error message, my system is pretty locked up. can't even shut it down cleanly. so, I'd like to fix whatever I did.

any ideas what the frick I did? I guess I would be ok with deleting the fileysystem and recreating it, but any other solutions welcome.
 
Old 08-24-2002, 10:42 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you can, have you thought about mount /tmp on a separate, much larger partition to see if that would help at all?
 
Old 08-26-2002, 04:40 AM   #3
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Rep: Reputation: 30
it is probably a stack overflow, what kernel are you using? if it's an old one, that could be a problem. do you have write access to /tmp in the account you are logged on with? your computer is probably locking up because the kernel is to busy trying to process with corrupted stacks.
 
Old 08-26-2002, 07:40 PM   #4
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
ok, I have 2.4.17 (default) and the 2.4.18 kernels configured. both hose when I do anything with /tmp. I can't delete files within tmp, can't do a du within tmp, and if I do, the system requires a hard shutdown (that is to say, power off is the only option). no doubt I'll corrupt other file systems if that practice continues. at this point. I would like to delete /tmp, and re-create it. I can only hope this fixes the problem.

how do I get to a point where I can umount /tmp. it is always a busy device (I suspect the system stores tmp stuff there...).

anyhow, a procedure for deleting the /tmp filesystem, and then recreating it would be appreciated. here is the /tmp line from my /etc/fstab:

LABEL=/tmp /tmp ext3 defaults 1 2

thanks in advance!

Last edited by adenardo; 08-26-2002 at 07:42 PM.
 
Old 08-26-2002, 08:20 PM   #5
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Rep: Reputation: 30
why are you mounting a directory? does /tmp contain a partition? perhaps there is something conflicting between the two versions of the kernels? can you delete the old one and use the newer one as the default?
 
Old 08-27-2002, 11:08 AM   #6
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
/tmp is its own partition. the tmp filesystem is on its a partition that happens to have a label of /tmp. I am going to boot to partiion magic, deletel the /tmp partition, re-create it and I'll post my results. I had just hoped there was an easier way to solve this problem, but I can't spend my whole month worrying about this. I'll hope to post an update by the end of the day.
 
Old 08-28-2002, 03:32 PM   #7
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
instead of /etc/fstab, I should have included stdout from df -h. here it is:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.9G 2.2G 1.5G 59% /
/dev/md0 7.7G 6.6G 816M 90% /backup
/dev/hda3 8.1G 1.7G 6.0G 21% /data
/dev/hda2 12G 7.0G 4.5G 61% /home
/dev/sda1 2.0G 2.0G 0 100% /mp3
none 251M 0 250M 0% /dev/shm
/dev/hda7 3.9G 3.4G 373M 91% /tmp
/dev/hda5 3.9G 2.5G 1.2G 67% /usr
/dev/hda6 3.9G 643M 3.1G 17% /usr/local

now the problem is that I cannot delete /dev/hda7 with partition magic 6.0, because it does not recognize ext3 filesystems....argh! so, how can I blow away /dev/hda7, and then re-create it? any help appreciated, thanks.
 
Old 08-28-2002, 03:44 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Use Linux fdisk (or parted). Before this I'd try to run fsck on your /tmp partition. It may help.
 
Old 08-28-2002, 04:07 PM   #9
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
how do I umount /tmp? it is always busy. I cannot cleanly shut down my computer, because the /tmp filesystem is hosed. so, given that I turn off the power, and reboot, how do I boot to a mode where I can fsck /dev/hda7?

when i try to fsck now, it says that Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage. is this really a concern since the filesystem is already hosed?
 
Old 08-28-2002, 07:25 PM   #10
Dexatrim
LQ Newbie
 
Registered: Aug 2002
Posts: 15

Rep: Reputation: 0
It sounds like you can't umount because you are getting the device busy message, right?

Just a suggestion, but if you can boot cleanly, use telinit to drop into single user. This should stop any access of /tmp by other processes. Then umount.

Don't know if it'll work. Don't really have enuf info.
 
Old 08-29-2002, 07:26 AM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If its busy try running "fuser" on it's contents and itll tell you what processes have stuff in use in /tmp
 
Old 08-29-2002, 03:28 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Run fsck from an installation cd.
 
Old 08-30-2002, 01:14 PM   #13
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
thanks, got it. all is well ;-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault ice99 Linux - Software 1 08-19-2005 11:33 AM
segmentation fault r_x Linux - Software 3 04-26-2005 05:22 AM
segmentation fault? sgm Programming 1 01-25-2003 08:41 PM
Segmentation Fault Nezar Linux - General 1 06-10-2001 03:17 PM

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

All times are GMT -5. The time now is 02:03 AM.

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