On Dec 14, 2011, at 2:21 PM, Dave McGuire wrote:
In 18 years of
Unix I still have to see a proper implemented Linux
single user mode on any distribution. Single user mode is:
1. Execute kernel.
2. Kernel mounts / read-only.
3. Kernel creates /sbin/init process with PID 1.
4. init(8) invokes /bin/sh on /dev/console.
5. root prompt and _nothing_ more. Especially no mount of any file
systems other then /-read-only.
Oh hell, SunOS4 (the BSD-based one!) doesn't even do that! It mounts the
filesystems before giving you a single-user shell.
I mean, I've always just used "init=/bin/sh" as a kernel flag for the
single-user boot. It does all of that except for actually running /sbin/init. You have
to reboot to get back into multi-user mode, but that's a small price to pay.
- Dave