LinuxQuestions.org
Register a domain and help support LQ
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 05-29-2001, 10:24 AM   #1
cpersic
LQ Newbie
 
Registered: May 2001
Posts: 4

Rep: Reputation: 0
Exclamation


HELP!!!

I am not well versed in linux at all. I managed to get my system configured, and it has been running very nicely as a server for the past 3 weeks.

Yesterday, while transfering files, it crashed. When I try to reboot I get - no such file or directory. I fried doing a fsck but it too found nothing.

I am running RH 7.1.

As it is going through the boot cycle, it fails and gives me the following

mounting proc: file system dup2:bad file descriptor
Configuring kernel parameters: dup2: bad file descriptor
Setting Clock: dup2: bad file descriptor

then goes into
/etc/rc.sysinit : dev/null; : Input/output error - a few times and then tells me

An error Occurred during the file system check. Dropping you to shell; the system will reboot when you leave the shell. Give root password for maintenance.

If I go through the installation screens, and get to the drive partitioning are it looks like when I try to view the partitions that the names ie /home /boot etc are not there. Does that make sence.

HELP!!!!

Chris



 
Old 05-29-2001, 10:52 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,027
Blog Entries: 54

Rep: Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767
bad news.

dup2 "Bad file descriptor" in essence means "cant check, cant mount, cant read". Processes spawned tru rc.sysinit (the boot script) can't get file descriptors off of /proc, cuz the partition /proc is on isnt fsck'ed, so /proc can't be mounted in read-write mode.

try booting off the install cd with "linux rescue" or use a bootfloppy, or use a bootdisk like tomsrtbt.
run fsck with the -f (force) on /dev/(all partitions).
if any errors come tru, plz tell us exactly what.

*just my curiousity, did u have a good security scheme on ure box?

HTH
 
Old 05-29-2001, 12:32 PM   #3
cpersic
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
OK,
I tried booting off the CD -and did the rescue mode

I am going through the hundreds of errors in my hde6 (which is my /home)

it gets to a point and then spits out a sequence of increasing numbers - ie. -5646026 -5646027 -5646027, etc.

What do I do - I was able to stop it with a <CTRL> C and then when i did the fsck again - same thing - should I let it continue??

Chris


 
Old 05-29-2001, 01:03 PM   #4
cpersic
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
NEW INFO

Got through all of the fsck ... here are the results

HDE1 /boot clean

HDE5 swap - The super block could not be read or does not describe a correct ext2 file system. Bad Magic Number in Super-Block while trying to open /dev/hde5

HDE6 /home clean
HDE7 /usr clean
HDE8 / clean
HDE9 /var clean

Now when I re-boot I get the dup2 error, but now I get
/etc/rc.sysinit : dev/null; : Read Only file system instead on inut/output error

Chris
 
Old 05-29-2001, 01:09 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,027
Blog Entries: 54

Rep: Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767Reputation: 2767
Ok, kewl.
U didnt know, but Ext2fs has more than one superblock.

Now since this is /swap we wont bother (no data on it). Boot off some disk and delete & create a new spaw in its place.
 
Old 05-29-2001, 03:14 PM   #6
cpersic
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
BIG PROBLEM,

I killed the /swap partition and it re-assigned hde numbers to the remaining drives

Now i cannot get anything from my /home directory - I get the error that I had from the swap directory.

At this point I only want to save the data - I don't care if I have to re-install Linux.

Chris
 
Old 01-07-2002, 01:40 PM   #7
systemgsr
LQ Newbie
 
Registered: Dec 2001
Location: So Cal
Posts: 5

Rep: Reputation: 0
I'm also getting this on about 10 of my machines. Is it hardware? I have a auto update script running which compares RPM's on the local system to updates.redhat.com and if updates.redhat.com is newer it does a rpm -U --nodeps package name. Could this be a problem?

Here's my quick fix for this but it sucks because it keeps happeneing again and again.

boot off toms boot disk

mount /dev/hda7 /mnt (hda7 = / partition on my machine)
cd /mnt/dev
rm null
mknod null c 1 3
chmod 0666 null
cd /
umount /dev/hda7
reboot


if you have the redhat cd you can do this 2 by just gettign into the install and then pressing alt+f2 and it should bring you to a sh term.
 
  


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
System crash!!!! hacinn Linux - Hardware 2 09-15-2004 06:55 PM
System crash Dauer Linux - Hardware 1 09-14-2004 03:06 PM
system crash masand Linux - General 6 01-21-2004 08:56 PM
System Crash??? cstovall Linux - General 2 10-04-2003 09:31 AM
System Crash linuxfond Linux - Newbie 2 04-09-2003 06:42 AM


All times are GMT -5. The time now is 04:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration