실무명령어# 87-9 : 리눅스 부팅파티션 설정하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 4,805 조회
- 0 추천
- 목록
본문
실무명령어# 87-9 : 리눅스 부팅파티션 설정하기
자, 이번에는 특정파티션을 부팅가능한 파티션으로 설정하는 부팅파티션을 설정해 보도록 하겠습니다. 앞의 예와 마찬가지로 /dev/hdb파티션을 대상으로 fdisk를 실행 시킵니다.
그리고 현재 설정된 파티션을 확인하기 위하여 "p"를 입력 하였습니다.
[root@file root]# fdisk /dev/hdb
Command (m for help): Command (m for help): p
Disk /dev/hdb: 6448 MB, 6448619520 bytes 255 heads, 63 sectors/track, 784 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdb1 1 250 2008093+ 83 Linux /dev/hdb2 251 500 2008125 83 Linux /dev/hdb3 501 784 2281230 82 Linux swap
Command (m for help): |
fdisk명령어 중 "a"는 해당 파티션을 부팅파티션으로 설정할 수 있는 fdisk명령어입니다.
그리고 /dev/hdb1을 부팅파티션으로 설정할 것이므로 파티션번호인 "1"을 입력 하였습니다.
그리고 "p"로 설정된 파티션정보를 다시 확인하였습니다.
Command (m for help): a Partition number (1-4): 1
Command (m for help): Command (m for help): p
Disk /dev/hdb: 6448 MB, 6448619520 bytes 255 heads, 63 sectors/track, 784 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdb1 * 1 250 2008093+ 83 Linux /dev/hdb2 251 500 2008125 83 Linux /dev/hdb3 501 784 2281230 82 Linux swap
Command (m for help): Command (m for help): w The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks. [root@file root]# |
설정하기 전과 달라진 것이 있다면 /dev/hdb1 파티션의 "Boot"항목에 "*"표시가 되어있는 것을 확인할 수 있습니다. 이것은 /dev/hdb1파티션이 부팅파티션임을 나타내고 있습니다. 확인하신 후에 설정한 내용을 저장하고 fdisk를 빠져나가기 위하여 "w"를 입력 하였습니다.
관련자료
-
이전
-
다음