How can 开发者_开发百科I know from which device the Linux kernel booted?
mount
Unless that command specifies a device for /boot then you can assume that it's on /.
In fact, something like that http://lkml.org/lkml/2003/12/19/139 can satisfy me. But a simplier way will be appreciate.
cat /proc/cmdline
精彩评论