Linux2009. 6. 8. 17:27
/proc에는 신기한 넘들이 많다
아무튼 하드 정보라고 함은 하드 제조사라던가, 모델명인데

이것은
/proc/ide/hd?/model 에 존재 한다. sata는 어디 붙는지 모름 -ㅁ-

$ tree /proc/ide
.
|-- drivers
|-- hda -> ide0/hda
|-- hdb -> ide0/hdb
`-- ide0
    |-- channel
    |-- hda
    |   |-- cache
    |   |-- capacity
    |   |-- driver
    |   |-- geometry
    |   |-- identify
    |   |-- media
    |   |-- model
    |   |-- settings
    |   |-- smart_thresholds
    |   `-- smart_values
    |-- hdb
    |   |-- capacity
    |   |-- driver
    |   |-- identify
    |   |-- media
    |   |-- model
    |   `-- settings
    |-- mate
    `-- model

내가 쓰는 시스템에서는
HL-DT-STCD-RW/DVD DRIVE GCC-4244N
FUJITSU MHV2080AT PL
ST3120025ACE
ST3802110ACE
이런것들이 나오는데, 나오는 정보를 봐서는 CD롬 역시 IDE 방식으로 연결되면 나오는 것 같다.


usb로 연결된 하드의 경우에는 usb 장치로 인식되며
$ tree /proc/scsi
 .
|-- device_info
|-- scsi
|-- sg
|   |-- allow_dio
|   |-- debug
|   |-- def_reserved_size
|   |-- device_hdr
|   |-- device_strs
|   |-- devices
|   `-- version
`-- usb-storage
    |-- 2
    `-- 3

$ more 2 3
::::::::::::::
2
::::::::::::::
   Host scsi2: usb-storage
       Vendor: AXXEN
      Product: SKYMIRROR
Serial Number: 2008021900000000591896EB
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
::::::::::::::
3
::::::::::::::
   Host scsi3: usb-storage
       Vendor: NSI
      Product: ST3250310AS
Serial Number: 0010101650000000W
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:

이런식으로 USB에서 인식이 된다.

'Linux' 카테고리의 다른 글

dhcp 작동중인지 확인하는 방법  (0) 2009.06.09
ip 관련 정보 얻어내기  (2) 2009.06.09
하드웨어 정보 받아오기  (0) 2009.06.08
리눅스에서 hex edit 하기  (0) 2009.05.28
ghex - gnome hex editor  (0) 2009.05.28
Posted by 구차니
Linux2009. 3. 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 파일 시스템에 존재하는 파일들에 대한 내용을 담고 있다(아싸 득템!)

'Linux' 카테고리의 다른 글

lspci - list all PCI devices  (0) 2009.04.06
gdm.conf에 XDMCP 설정하기  (2) 2009.03.25
리눅스 배포본/배포판 만들기  (0) 2009.03.17
fs:msdos 8.3형식으로 mount  (2) 2009.03.16
syslinux / syslinux.cfg  (1) 2009.03.15
Posted by 구차니