GRUB전용명령어 geometry 사용법
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,145 조회
- 0 추천
- 목록
본문
GRUB전용명령어 geometry 사용법
사용형식 : geometry DRIVE [CYLINDER HEAD SECTOR [TOTAL_SECTOR]]
지정한 디바이스 드라이브에 대한 정보를 출력하는 명령어입니다.
즉 특정 디스크 장치명을 지정하면 그 디스크의 실린더, 헤드, 섹터정보와 전체 섹터수, 그리고 각 파티션별 파일시스템종류와 파일시스템 타입 등을 출력해 줍니다.
아래의 예는 첫번째 하드디스크의 장치정보를 확인하기 위하여 “geometry (hd0,1)”와 “geometry (hd0)’명령어를 차례대로 사용한 것입니다.
grub> geometry (hd0,1) geometry (hd0,1) drive 0x80: C/H/S = 1044/255/63, The number of sectors = 16777216, /dev/sda Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x82 Partition num: 2, Filesystem type is ext2fs, partition type 0x83 Partition num: 4, Filesystem type is ext2fs, partition type 0x83 grub> grub> grub> geometry (hd0) geometry (hd0) drive 0x80: C/H/S = 1044/255/63, The number of sectors = 16777216, /dev/sda Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x82 Partition num: 2, Filesystem type is ext2fs, partition type 0x83 Partition num: 4, Filesystem type is ext2fs, partition type 0x83 grub> |
위의 결과에서 알 수 있는 것은 hd0, 즉 첫번째 하드디스크의 실린더수, 헤드수, 섹터수는 각각 1044개, 255개, 63개입니다.
그리고 전체 섹터수는 16777216개입니다.
그리고 드라이브 장치명은 /dev/sda입니다.
또한 각 4개의 파티션에 대한 파일시스템타입과 파티션타입을 알 수 있습니다.
관련자료
-
이전
-
다음