LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2004, 04:24 PM   #1
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Rep: Reputation: 15
reoccuring /dev/null error on bootup


I keep getting a dup2: Bad file descriptor error.

Then it goes on to list lines of /dev/null: Read-only file system.

A while ago I accidently deleted it, but then I thought that I created it back properly. Now, it seems that I must delete a corrupt one and create a proper one on every boot-up.

Here is how I've fixed it, (except the last line has a -m in it.)
http://www.linuxquestions.org/questi...hreadid=132085

How could I permanently get rid of this problem?

Thanks
 
Old 01-13-2004, 05:06 PM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
The only thing I can think of would be to put those commands in a start up script that runs on boot. Possibly /etc/rc.d/rc.local (not sure of the RedHat equivalent though). This would be a dirty fix though and if it works, it would still be a good idea to try a better solution rather than a workaround. Hope this helps for now.
 
Old 01-13-2004, 05:35 PM   #3
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Original Poster
Rep: Reputation: 15
That is a fix--dirty as it is. I'll just try not to power down for a long while and keep searching for a more structured fix. Thanks though.
 
Old 01-13-2004, 05:48 PM   #4
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
If you do reboot and run into problems, boot back up with a boot disk and go into single user mode and get rid of your modifications to the file. I can't remember the exact command to boot to single user from boot disk (haven't had to do this in well over a year luckily) but a quick search here at LQ will lead to dozens of threads I'm sure. Do the search first if you're going to reboot, then write down the command by hand...just in case.
 
  


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
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 01:46 PM
fstab-sync: error: libhal_ctx_init_direct: (null): (null) rpz Linux - Hardware 1 11-01-2005 06:42 AM
Reoccuring error when trying to code php mrobertson Programming 13 06-03-2005 02:01 PM
mv c:\WINDOWS /dev/null; mount /dev/hda treehead LinuxQuestions.org Member Intro 5 10-19-2004 09:53 AM
my linux error : Couldn't open /dev/null (read-only filesystem) Darick Ang Linux - General 3 10-28-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration