¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
´ë¿ë·® ÆÄƼ¼Ç ¼³Á¤ parted
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-08-19 (±Ý) 12:55 Á¶È¸ : 17441
±ÛÁÖ¼Ò :
                                
# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

WARNING: The size of this disk is 6.0 TB (5999956066304 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).
 
fdisk ¸í·É¾î´Â 2.2 TB ÀÌ»óÀÇ ÆÄƼ¼ÇÀ» Áö¿øÇÏÁö ¸øÇϹǷÎ, ´ë¿ë·® ÆÄƼ¼ÇÀ» ±¸¼ºÇϱâ À§Çؼ­´Â ´ÙÀ½°ú °°Àº ¹æ¹ý¿¡ µû¶ó ÀÛ¾÷À» ÇØÁà¾ß ÇÕ´Ï´Ù.
 
 
[root@localhost ~]# parted  -help
Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...]
Apply COMMANDs with PARAMETERS to DEVICE.  If no COMMAND(s) are given, run in
interactive mode.
OPTIONs:
  -h, --help                    displays this help message
  -i, --interactive             where necessary, prompts for user intervention
  -l, --list                    lists partition tables of all detected devices
  -s, --script                  never prompts for user intervention
  -v, --version                 displays the version
 
COMMANDs:
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           prints general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partititon NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [free|NUMBER|all]                  display the partition table, a partition, or all devices
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resize NUMBER START END                  resize partition NUMBER and its file system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  displays the current version of GNU Parted and copyright information

[root@localhost ~]# parted /dev/sdb  
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)
print
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags
 
(parted) mkpart
Partition name?  []?  Enter
File system type?  [ext2]?  Enter
Start? 0    ½ÃÀÛÁöÁ¡ ÁöÁ¤
End? 6000GB   ³¡³ª´Â µð½ºÅ©ºí¶ô ÁöÁ¤
 
(parted) print   ¼³Á¤ÇÑ ÆÄƼ¼Ç Á¤º¸ È®ÀÎ
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  6000GB  6000GB  ext3
(parted) mkpart
Partition name?  []?   Enter
File system type?  [ext2]?  Enter
Start? 6000GB
End? 100%     ¸¶Áö¸·±îÁö ÁöÁ¤
(parted)
print
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  6000GB  6000GB  
 2      6000GB  8000GB  2000GB
 
(parted) q    ³ª°¡±â
 
# ÆÄƼ¼Ç Á¤º¸È®ÀÎ
[root@localhost ]# cat /proc/partitions
major minor  #blocks  name
   8        0   78150744 sda
   8        1     104391 sda1
   8        2    4192965 sda2
   8        3    4192965 sda3
   8        4          1 sda4
   8        5   10241406 sda5
   8        6    5116671 sda6
   8        7    4610623 sda7
   8        8    1052226 sda8
   8        9   48636756 sda9
   8       16 7812456448 sdb
   8       17 5859374983 sdb1
   8       18 1953081431 sdb2

[root@localhost network-scripts]# mkfs.ext3 /dev/sdb1
[root@localhost network-scripts]# mkfs.ext3 /dev/sdb2

 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.