LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2005, 05:05 PM   #1
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
Couple of problems, gcc, corrupt filesystem, and RAM


I apperantly did some bad stuff to my system, so I've got a few questions on fixing it.

I had an old 2.4.20 kernel which kept locking up. I decided since it was vunerable and locking up, I'd upgrade to 2.6.10. Unfortunatally, I've had to do cold reboots because of the lockups since then. This is what I believe is causing my other errors...

I recompiled gcc, which under the old kernel had been segmentation faulting compiling some applications, but could still compile hello world apps. It compiled, but when I tried to delete the directory I had unzipped it to, I couldn't delete the file INSTALL, even as root, it seemed to me like a filesystem error, so I went to init 1 and ran fsck.

It said I had 3 bad spots that could be fixed with reiserfsck --rebuild-tree, but when I ran reiserfsck with that option, it only displayed the help.

So my questions are,

1. Why is gcc segfaulting on so many apps, currently blackbox wm.
2. How can I run fsck so that it will rebuild the filesystem and fix the errors.
3. In doing this, I've been watching my RAM, which has always had about 100 Megs Free, but for some reason, swap space is used. Is there a program to push everything from swap to RAM?

-Thanks
 
Old 02-07-2005, 06:47 PM   #2
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hi,

Hopefully I can help a little!

Quote:
It said I had 3 bad spots that could be fixed with reiserfsck --rebuild-tree, but when I ran reiserfsck with that option, it only displayed the help.
You'll probably find that in order to run this, you'll first have to unmount the filesystem. If I remember correctly, at init 1 only the root filesystem is mounted, but if you only have one large partition...you're probably going to need to boot from floppy/cdrom.

If you did unmount the fs, did you remember to specify a device (e.g. /dev/hda1) for the command to perform the check on?

Quote:
3. In doing this, I've been watching my RAM, which has always had about 100 Megs Free, but for some reason, swap space is used. Is there a program to push everything from swap to RAM?
The system will swap out unneeded data to keep free system ram to maintain system responsiveness etc.

Quote:
1. Why is gcc segfaulting on so many apps, currently blackbox wm.


Good question, could possibly be a hardware fault, but probably not. Have you checked things like /var/log/messages and /var/log/syslog?

Cheers,

Steve
 
Old 02-08-2005, 12:05 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
The command would be :
reiserfsck --rebuild-tree /dev/hd(your device + partition)

and not:
fsck reiserfsck --rebuild-tree (or any other wrong command you did type)

What is your glibc version ?
/lib/libc.so.6 | grep version

And your gcc version :
gcc -v
(post the whole output please)

Last edited by keefaz; 02-08-2005 at 12:06 PM.
 
Old 02-08-2005, 02:59 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what processor and what's the temperature of it?
 
Old 02-14-2005, 09:13 PM   #5
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
Oh! I forgot to post when I got this fixed. Well here's everything that happened in case someone else has this problem...

1. I installed slackware 9.0, my favorite version, because it came on one CD, that was probably a bad idea.

2. I was very stupid for about 2 months, and left myself open to that huge hole in the 2.4.20 kernels before I finally decided to upgrade because of lockups occurring because of the kernel.

3. I compiled a 2.6.7 kernel and stuck that in lilo, but I still got lockups, and I had some driver issues so I decided to fall back to 2.4.20

4. I decided 2.6.10 was the way to go and compiled that, got it running smoothly, but apparently something in tmp or swap was bad . . .

5. After so many lockups, and so many cold reboots, the hard drive had become corrupted. I began to get bad links to files in the allocation table making files that I couldn't see the info for, and that couldn't be deleted, even as root.

6. The kernel eventually needed to access something, actually I think it was X that died first, but eventually, everything fell apart and it just locked up/reboted.

7. I let it run through it's rebooting, until it stopped about half way through for no apparent reason. I rebooted only to have a kernel panic claiming a bad eip value, spitting out all sorts of register values and stack traces.

8. I tried rebooting again, and I got "ERROR CRC ERROR IN 'LINUX'", at this point I became very frightened

9. I fell back, again, to my 2.4.20 kernel, and ran fsck, it said there were errors and I had to rebuild the tree.

10. I reboted and ran from an old gentoo CD, reiserfsck /dev/hda. It rebuilt the entire tree and said it found 14 bad links in the allocation table.

11. I rebooted and everything was fine, except for the files that I lost, most of which were just source files in things like naim, etc


Hope this helps someone.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Virtual FileSystem on RAM (not VFS!!)? shrey_j Programming 0 07-06-2004 03:22 AM
Accessing the Video Ram through Gcc pvvraju Programming 1 05-24-2004 10:48 AM
accesing the video Ram through Gcc pvvraju Linux - General 1 05-24-2004 09:16 AM
Unknown or corrupt filesystem Synergetek Linux - Newbie 1 02-03-2003 05:14 AM
Ext2 Filesystem in RAM Fernando Linux - General 0 03-21-2002 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 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