Linux2009.03.25 18:56
/proc/cmdline
를 열어 보면 된다.

 FC6 on notebook

$ more /proc/cmdline
ro root=/dev/VolGroup00/LogVol00 rhgb quiet


[발견 : http://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-access-bootargs-from-inside-the-kernel-692870/]



5.2. Top-level Files within the proc File System

Below is a list of some of the more useful virtual files in the top-level of the /proc/ directory.


5.2.2. /proc/cmdline

This file shows the parameters passed to the kernel at the time it is started. A sample /proc/cmdline file looks like the following:

ro root=/dev/hda2

This tells us that the kernel is mounted read-only (signified by (ro)) off of the second partition on the first IDE device (/dev/hda2).


[참고 : https://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-proc-topfiles.html]

위의 링크는 각종 /proc 파일 시스템에 존재하는 파일들에 대한 내용을 담고 있다(아싸 득템!)
Posted by 구차니

댓글을 달아 주세요