OS/Linux

리눅스 파티션 만들기

유앤아이의 뉴패러다임 2012. 10. 21. 10:21

debian:~# fdisk /dev/hdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xc10c960e.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.


The number of cylinders for this disk is set to 39546.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n

Command action
   e   extended
   p   primary partition (1-4)
p

Partition number (1-4): 1
First cylinder (1-39546, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-39546, default 39546): 39546

P를 입력하여 설정된 파티션 정보를 확인합니다.

Command (m for help): p

Disk /dev/hdb: 20.4 GB, 20409532416 bytes
16 heads, 63 sectors/track, 39546 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xc10c960e

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       39546    19931152+  83  Linux

파티션 테이블을 기록합니다.

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.