
...dup2: Bad file descriptor [FAILED] .../dev/null: Read-only file system
Hi,
Read lots of Dejanews (er Google) posts regarding failed initialization
scripts in /etc/rc.d.
The RedHat guides were informative about the sequence of how to boot up a
running system.
After Lilo and the kernel pass control to init something gets out of whack.
It seems that /etc/rc.d/rc.sysinit can't do its job right, which is really
weird. I was using my 6.9 (Pinstripe) edition of RedHat when one day the
Acer Extensa 670CDT notebook decided to go into its BIOS. Upon reboot the
system hasn't been able to boot into multiuser mode.
Here's my observations, but without a cure yet:
Reinstalled via "Update" my system using an installation CDROM.
Reboot: ...dup2: Bad file descriptor
Ran "Expert" mode in CDROM and fscked the unmounted filesystem
Reboot: ...dup2: Bad file descriptor
Ran command prompt from anoter distro's CDROM & fscked again:
Reboot: ...dup2: Bad file descriptor
Rebooted and dropped into single user mode, mounted the installation CDROM
and remounted the filesystem read-write; & ran `rpm -vv -i --force
/mnt/cdrom/RedHat/RPMS/base*rpm
Reboot: ...dup2: Bad file descriptor
Curioristy began to set in so I remounted as read-write the filesystem and
manually started the various services in /etc/rc.d/init.d/* . These scripts
including the last one, linuxconf, returned [OK]. My prompt reading
root@(none). Startx works. In a Gnome-terminal I reboot the system using
`shutdown -r now`.
Reboot: ...dup2: Bad file descriptor.
Noticing that most of the /etc/ scripts mention RedHat 6.0, I transfer a
etc_rh6.0.tgz tarball by sneakernet via a floppy. With a backup etc.tgz made
I copy etc_rh6.0/rc.d/* over to /etc.
Reboot: ...dup2: Bad file descriptor.
Since that didn't work I restored the backup etc.tgz scripts I made, so I
could keep looking for a solution.
It appears that rc.sysinit has NOT been able to complete its job: Viewing a
boot screen I see that rc.sysinit fails at `action "Mounting proc
filesystem" mount -n -t proc /proc /proc` with all the next action
statements of the /etc/rc.d/rc.sysinit script consecutively failing as well,
dumping me back into logging in single-user mode to continue. Other a
Dejanews report similar errors with commenters suggesting fscking from a
boot disk or CDROM:
[FAILED]
/etc/rc.sysinit: /dev/null: Read-only file system
/etc/rc.sysinit: /dev/null: Read-only file system
Remounting read-write the root file system, the /proc filesystem is able to
be mounted.
However, upon rebooting the proc file system is added to /etc/mtab as
none /proc /proc
The rhl-rg-6.2en guide states at "2. System Administration: The Boot
Process, Init, and Shutdown" states, "Init [first] runs
/etc/rc.d/rc.sysinit, which sets your path, sets up networking if necessary,
starts swapping, checks the filesystems, and so on. Basically, rc.sysiit is
taking care of everything that your system needs to have done at system
initialization." The guide goes on to say that Init implements the
/etc/inittab file for description of how to setup each runlevel.
The manual 8 page for init suggests not using 0 (halt), 6 (reboot), or 1
(single user). So I've set linuxconf runlevel to 5
Could someone tell me which rpm from the installation CDROM will replace the
/etc/rc.init scripts?