On Sunday 14 November 2004 7:14 pm, ABHISHEK GUJAR wrote:
Hi, On suse linux we have 7 run levels, 0 to 6 and the single user maintenance mode 'S' or 'single'.On system boot the init program runs /etc/init.d/boot script which runs all the scripts in boot.d(here it mounts the fs read write ) and then switches to the default run level, running start scripts in rc*.d dir.
However if you boot directly into run level S by typing S or single at boot prompt, init does not run any of the scripts in boot.d dir and hence the file system is still read only when the system comes up in single user mode(S).
My question is where or at what point does init decide that if it has boot into S, it should not run the /etc/init.d/boot..thereby keeping the fs read only?? The /etc/inittab file does not show this logic although it does say that if you boot in emergency(-b) mode it should not run the boot script..but thats different coz its not a run level.. The file, /etc/inittab controls what init runs at startup: /etc/init.d/boot is always the first script to be run. Then, the choice of what scripts to run are based on the run level. Run Level S is more of a legacy to older SuSE systems. Run level 1 is the appropriate single user mode run level.
--
Jerry Feldman