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 |
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.
|
 |
08-24-2002, 02:48 PM
|
#1
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Rep:
|
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.
|
|
|
08-24-2002, 10:42 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
If you can, have you thought about mount /tmp on a separate, much larger partition to see if that would help at all?
|
|
|
08-26-2002, 04:40 AM
|
#3
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Rep:
|
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.
|
|
|
08-26-2002, 07:40 PM
|
#4
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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.
|
|
|
08-26-2002, 08:20 PM
|
#5
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Rep:
|
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?
|
|
|
08-27-2002, 11:08 AM
|
#6
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
/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.
|
|
|
08-28-2002, 03:32 PM
|
#7
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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.
|
|
|
08-28-2002, 03:44 PM
|
#8
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Use Linux fdisk (or parted). Before this I'd try to run fsck on your /tmp partition. It may help.
|
|
|
08-28-2002, 04:07 PM
|
#9
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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?
|
|
|
08-28-2002, 07:25 PM
|
#10
|
LQ Newbie
Registered: Aug 2002
Posts: 15
Rep:
|
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.
|
|
|
08-29-2002, 07:26 AM
|
#11
|
Moderator
Registered: May 2001
Posts: 29,417
|
If its busy try running "fuser" on it's contents and itll tell you what processes have stuff in use in /tmp
|
|
|
08-29-2002, 03:28 PM
|
#12
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Run fsck from an installation cd.
|
|
|
08-30-2002, 01:14 PM
|
#13
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
thanks, got it. all is well ;-)
|
|
|
All times are GMT -5. The time now is 02:56 PM.
|
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
|
|