GNU Parted¤Î»È¤¤Êý
http://extstrg.asabiya.net/pukiwiki/index.php?GNU%20Parted%A4%CE%BB%C8%A4%A4%CA%FDÌܼ¡
parted¤Îµ¯Æ° †
¡Ú½ñ¼°¡Û
# parted /dev/[DEVICE]
¡ÚÎã¡Û
# parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted)
¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¾õÂÖ¤òɽ¼¨ †
¡Ú½ñ¼°¡Û
(parted) print
(parted) p
¡ÚÎã¡Û
(parted) print Model: AMCC 9650SE-12M DISK (scsi) Disk /dev/sdb: 10000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 2000GB 2000GB 1
¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎºîÀ® †
¡Ú½ñ¼°¡Û
- ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¤ßºîÀ®
(parted) mkpart
- ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®
(parted) mkpartfs
¡ÚÎã1¡Û
¥Ñ¡¼¥Æ¥£¥·¥ç¥óNo.1¡¢EXT3¡¢2TB¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®(parted) mkpart Partition name? []? 1 File system type? [ext2]? ext3 Start? 0 End? 2000000
¡ÚÎã2¡Û
¥Ñ¡¼¥Æ¥£¥·¥ç¥óNo.2¡¢EXT3¡¢2TB¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®(parted) mkpart Partition name? []? 2 File system type? [ext2]? ext3 Start? 2000000 End? 4000000
¡ÚÎã3¡Û
¥Ñ¡¼¥Æ¥£¥·¥ç¥óNo.3¡¢EXT3¡¢4TB¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®(parted) mkpart Partition name? []? 3 File system type? [ext2]? ext3 Start? 4000000 End? 8000000
¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Îºï½ü †
¡Ú½ñ¼°¡Û
- ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Îºï½ü
(parted) rm [¥Ñ¡¼¥Æ¥£¥·¥ç¥óNo.]
GPT¥â¡¼¥É¤ØÀÚ¤êÂØ¤¨(2TB°Ê¾å¤Î¥Ç¥£¥¹¥¯»ÈÍÑ»þ) †
(parted) mklabel gpt
¥Ø¥ë¥× †
- ±Ñ¸ì
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
Last-modified: 2010-07-18 (Æü) 14:50:08 (4701d)