Single user S mode file system read only !
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.. Thanks, ----Abhishek __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
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
Jerry,
I understand that but what I am trying to find
out is IF you boot into S, why is the file system
mounted read only. On carefully looking at the boot
messages I see that if you boot in S none of the
scripts in boot.d directory are run. How does init
decide that??The /etc/init.d/boot script does not
indicate this.
Thanks,
----Abhishek
--- Jerry Feldman
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
default run level, running start scripts in rc*.d
On Sunday 14 November 2004 7:14 pm, ABHISHEK GUJAR wrote: the dir.
However if you boot directly into run level S by typing S or single at boot prompt, init does not
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
run 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
Partner Technology Access Center (contractor) (PTAC-MA) Hewlett-Packard Co. 550 King Street LKG2a-X2 Littleton, Ma. 01460 (978)506-5243 -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com
participants (2)
-
ABHISHEK GUJAR
-
Jerry Feldman