搜索

linux当中怎么管理磁盘和分区?

发布网友 发布时间:2022-02-26 19:49

我来回答

4个回答

热心网友 时间:2022-02-26 21:18

看看以下命令,fdisk,够清楚了吧。
[root@* ~]# fdisk /dev/cciss/c0d0p3
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

The number of cylinders for this disk is set to 68207.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): p

Disk /dev/cciss/c0d0p3: 284.9 GB, 2849825600 bytes
255 heads, 32 sectors/track, 68207 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System

Command (m for help): q

[root@* ~]#

热心网友 时间:2022-02-26 22:36

终端里输入:man fdisk 查看手册啊。

热心网友 时间:2022-02-27 00:11

也可以用图形化的软件palimpsest(磁盘实用工具)

热心网友 时间:2022-02-27 02:02

fdisk

df
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com
Top