|
发表于 2004-4-7 09:43:42
|
显示全部楼层
其他UNIX变种好像自带低格工具,但Linux好像没有。
[root@home root]# parted
...
(parted) m
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
#把这里的/dev/hda换成你想操作的设备
(parted) select /dev/hda
Using /dev/hda
Information: The operating system thinks the geometry on /dev/hda is
1860/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted) p
Disk geometry for /dev/hda: 0.000-14594.150 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 2353.271 primary ntfs boot
2 2353.271 14590.283 extended lba
5 2353.302 3592.661 logical ntfs
6 3592.692 3694.636 logical ext2
7 3694.667 8691.416 logical ext3
8 8691.447 9460.151 logical linux-swap
9 9460.182 14590.283 logical fat32
#N代表Minor,按上表逐次选择你的Minor分区号,进行格式化
(parted) mkfs N ext2
... |
|