ܼ

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.1EXT32TBΥѡƥ
    (parted) mkpart
    Partition name?  []? 1
    File system type?  [ext2]? ext3
    Start? 0
    End? 2000000   

    2
    ѡƥNo.2EXT32TBΥѡƥ
    (parted) mkpart
    Partition name?  []? 2
    File system type?  [ext2]? ext3
    Start? 2000000
    End? 4000000

    3
    ѡƥNo.3EXT34TBΥѡƥ
    (parted) mkpart
    Partition name?  []? 3
    File system type?  [ext2]? ext3
    Start? 4000000
    End? 8000000 


ѡƥκ

ڽ񼰡

  • ѡƥκ
    (parted) rm [ѡƥNo.]

GPT⡼ɤڤؤ(2TBʾΥǥѻ)

(parted) mklabel gpt

إ

  • Ѹ
    check NUMBERdo a simple check on the file system
    cp [FROM-DEVICE] FROM-NUMBER TO-NUMBERcopy file system to another partition
    help [COMMAND]prints general help, or help on COMMAND
    mklabel,mktable LABEL-TYPEcreate a new disklabel (partition table)
    mkfs NUMBER FS-TYPEmake a FS-TYPE file system on partititon NUMBER
    mkpart PART-TYPE [FS-TYPE] START ENDmake a partition
    mkpartfs PART-TYPE FS-TYPE START ENDmake a partition with a file system
    move NUMBER START ENDmove partition NUMBER
    name NUMBER NAMEname partition NUMBER as NAME
    print [free/NUMBER/all]display the partition table, a partition, or all devices
    quitexit program
    rescue START ENDrescue a lost partition near START and END
    resize NUMBER START ENDresize partition NUMBER and its file system
    rm NUMBERdelete partition NUMBER
    select DEVICEchoose the device to edit
    set NUMBER FLAG STATEchange the FLAG on partition NUMBER
    toggle [NUMBER [FLAG]]toggle the state of FLAG on partition NUMBER
    unit UNITset the default unit to UNIT
    versiondisplays the current version of GNU Parted and copyright
    information

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2010-07-18 () 14:50:08 (4157d)