LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reoccuring /dev/null error on bootup (https://www.linuxquestions.org/questions/linux-newbie-8/reoccuring-dev-null-error-on-bootup-134456/)

mehesque 01-13-2004 03:24 PM

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

Texicle 01-13-2004 04:06 PM

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.

mehesque 01-13-2004 04:35 PM

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.

Texicle 01-13-2004 04:48 PM

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. :D


All times are GMT -5. The time now is 10:45 PM.