Article 5JF9F rc.S not mounting /proc and /sys dirs

rc.S not mounting /proc and /sys dirs

by
budman85
from LinuxQuestions.org on (#5JF9F)
hi,

I ran into an issue after upgrading. I was able to pinpoint the issue.
When rc.S is started, if the proc dir exists, it's not mounting it.
I had to record it with my phone to see the boot errors (is there a bootlog daemon we can enable?). Right after INIT starts, all I see is /procs/mounts doesn't exist causing other issues for /sys not to mount either. Maybe be better to check on /proc/mounts symlink isn't broken.

At first, I would boot into single mode, then telinit 3. At this point, I think single mode may have mounted /proc, because I tried running fdisk -l and it didn't give a proc dir error. When I init multiuser mode, it then flashed the screen and udev loaded and everything else. I was able to use X11 again as a user.

In the rc.S file, I commented out the if's and added a chmod 755 /proc /sys, not sure what was setting the dirs to 544. I have to trace that one. Even when I changed it to 755 and rebooted, the dirs went back to 544. Feels like a umode setting. After updating rc.S, I rebooted and no more errors as /proc mounted and /sys mounted.

# Mount /proc if it is not already mounted:
#if [[ ! -d /proc/sys ]]; then
chmod 755 /proc
/sbin/mount -v proc /proc -n -t proc 2> /dev/null
#fi

# Mount /sys if it is not already mounted:
#if [ ! -d /sys/kernel ]; then
chmod 755 /sys
/sbin/mount -v sysfs /sys -n -t sysfs 2> /dev/null
#fi



I see in the Changelog:
rc.S: Use GazL's proposals for detecting/mounting /proc and /sys.

Is anyone else running into this issue?
My boot is /dev/sdb1 - I don't think that would matter.

Also, running "su -" from a Terminal inside XFCE, takes almost a minute now to bring up a prompt. Did something change?

Thanks
Richlatest?d=yIl2AUoC8zA latest?i=sX7tff-uYuo:RyAGZp2MLTo:F7zBnMy latest?i=sX7tff-uYuo:RyAGZp2MLTo:V_sGLiP latest?d=qj6IDK7rITs latest?i=sX7tff-uYuo:RyAGZp2MLTo:gIN9vFwsX7tff-uYuo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments