linux下面的一個分割槽工具--parted

tonykorn97發表於2007-04-09

最近用到它,覺得不錯,在這裡推薦一下,以後記得用。


[root@test ~]# parted
GNU Parted 1.6.19
Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

Using /dev/sda
(parted) p
Disk geometry for /dev/sda: 0.000-34714.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 509.875 primary ext3 boot
2 509.875 1537.470 primary linux-swap
3 1537.471 11687.915 primary ext3
4 11687.915 34710.754 extended
5 24403.456 31376.953 logical ext3
6 31376.984 34710.754 logical ext3
(parted) ?
check MINOR do a simple check on the filesystem
cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition
help [COMMAND] prints general help, or help on COMMAND
mklabel LABEL-TYPE create a new disklabel (partition table)
mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem
move MINOR START END move partition MINOR
name MINOR NAME name partition MINOR NAME
print [MINOR] display the partition table, or a partition
quit exit program
rescue START END rescue a lost partition near START and END
resize MINOR START END resize filesystem on partition MINOR
rm MINOR delete partition MINOR
select DEVICE choose the device to edit
set MINOR FLAG STATE change a flag on partition MINOR
(parted) q
Information: Don't forget to update /etc/fstab, if necessary.

關於分割槽方面的文章推薦兩篇:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245640/,如需轉載,請註明出處,否則將追究法律責任。

相關文章