질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

df -h 명령에서 보면 총HDD용량은 어디있죠?

작성자 정보

  • 도리 작성
  • 작성일

컨텐츠 정보

본문

[root@test root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: FUJITSU  Model: MAP3735NC        Rev: 0108
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: FUJITSU  Model: MAP3735NC        Rev: 0108
  Type:   Direct-Access                    ANSI SCSI revision: 03

---- 위와같이 HDD 의 모델을 보구 용량을 찾아보면 되죠~
[root@test root]# cat /proc/ide/hda/model
SAMSUNG CD-ROM SN-124
------- ide 는 위와같은 명령어


====== 다음은 fdisk 이용방법 ==========
[root@test root]# fdisk /dev/sda

The number of cylinders for this disk is set to 8936.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p  

Disk /dev/sda: 73.5 GB, 73508513792 bytes
255 heads, 63 sectors/track, 8936 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14         274     2096482+  82  Linux swap
/dev/sda3             275        8936    69577515   83  Linux

Command (m for help): q

관련자료

댓글 1

초보학생님의 댓글

  • 초보학생
  • 작성일
고맙습니다. 근데 답변을 전부쓰신건가요? 아님..방법좀..

공지사항


뉴스광장


  • 현재 회원수 :  60,043 명
  • 현재 강좌수 :  35,853 개
  • 현재 접속자 :  87 명