Linux 磁盘管理
Linux 磁盘管理好坏直接关系到整个系统的性能问题。
Linux 磁盘管理常用三个命令为 df、du 和 fdisk。
- df(英文全称:disk free):列出文件系统的整体磁盘使用量
- du(英文全称:disk used):检查磁盘空间使用量
- fdisk:用于磁盘分区
df
df命令参数功能:检查文件系统的磁盘空间占用情况。可以利用该命令来获取硬盘被占用了多少空间,目前还剩下多少空间等信息。
语法:
df [-ahikHTm] [目录或文件名]
选项与参数:
-
-h:以人类可读的方式显示输出结果(例如,使用 KB、MB、GB 等单位)。
-
-T:显示文件系统的类型。
-
-t <文件系统类型>:只显示指定类型的文件系统。
-
-i:显示 inode 使用情况。
-
-H:该参数是 -h 的变体,但是使用 1000 字节作为基本单位而不是 1024 字节。这意味着它会以 SI(国际单位制)单位(例如 MB、GB)而不是二进制单位(例如 MiB、GiB)来显示磁盘使用情况。
-
-k:这个选项会以 KB 作为单位显示磁盘空间使用情况。
-
-a:该参数将显示所有的文件系统,包括虚拟文件系统,例如 proc、sysfs 等。如果没有使用该选项,默认情况下,df 命令不会显示虚拟文件系统。
实例 1
将系统内所有的文件系统列出来!
[root@www ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc2 9920624 3823112 5585444 41% /
/dev/hdc3 4956316 141376 4559108 4% /home
/dev/hdc1 101086 11126 84741 12% /boot
tmpfs 371332 0 371332 0% /dev/shm
在 Linux 底下如果 df 没有加任何选项,那么默认会将系统内所有的 (不含特殊内存内的文件系统与 swap) 都以 1 Kbytes 的容量来列出来!
实例 2
将容量结果以易读的容量格式显示出来
[root@www ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdc2 9.5G 3.7G 5.4G 41% /
/dev/hdc3 4.8G 139M 4.4G 4% /home
/dev/hdc1 99M 11M 83M 12% /boot
tmpfs 363M 0 363M 0% /dev/shm
实例 3
将系统内的所有特殊文件格式及名称都列出来
[root@www ~]# df -aT
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/hdc2 ext3 9920624 3823112 5585444 41% /
proc proc 0 0 0 – /proc
sysfs sysfs 0 0 0 – /sys
devpts devpts 0 0 0 – /dev/pts
/dev/hdc3 ext3 4956316 141376 4559108 4% /home
/dev/hdc1 ext3 101086 11126 84741 12% /boot
tmpfs tmpfs 371332 0 371332 0% /dev/shm
none binfmt_misc 0 0 0 – /proc/sys/fs/binfmt_misc
sunrpc rpc_pipefs 0 0 0 – /var/lib/nfs/rpc_pipefs
实例 4
将 /etc 底下的可用的磁盘容量以易读的容量格式显示
[root@www ~]# df -h /etc
Filesystem Size Used Avail Use% Mounted on
/dev/hdc2 9.5G 3.7G 5.4G 41% /
du
Linux du 命令也是查看使用空间的,但是与 df 命令不同的是 Linux du 命令是对文件和目录磁盘使用的空间的查看,还是和df命令有一些区别的,这里介绍 Linux du 命令。
语法:
du [-ahskm] 文件或目录名称
选项与参数:
- -a :列出所有的文件与目录容量,因为默认仅统计目录底下的文件量而已。
- -h :以人们较易读的容量格式 (G/M) 显示;
- -s :仅显示指定目录或文件的总大小,而不显示其子目录的大小。
- -S :包括子目录下的总计,与 -s 有点差别。
- -k :以 KBytes 列出容量显示;
- -m :以 MBytes 列出容量显示;
实例 1
只列出当前目录下的所有文件夹容量(包括隐藏文件夹):
[root@www ~]# du
8 ./test4 <==每个目录都会列出来
8 ./test2
….中间省略….
12 ./.gconfd <==包括隐藏文件的目录
220 . <==这个目录(.)所占用的总量
直接输入 du 没有加任何选项时,则 du 会分析当前所在目录里的子目录所占用的硬盘空间。
实例 2
将文件的容量也列出来
[root@www ~]# du -a
12 ./install.log.syslog <==有文件的列表了
8 ./.bash_logout
8 ./test4
8 ./test2
….中间省略….
12 ./.gconfd
220 .
实例 3
检查根目录底下每个目录所占用的容量
[root@www ~]# du -sm /*
7 /bin
6 /boot
…..中间省略….
0 /proc
…..中间省略….
1 /tmp
3859 /usr <==系统初期最大就是他了啦!
77 /var
通配符 * 来代表每个目录。
与 df 不一样的是,du 这个命令其实会直接到文件系统内去搜寻所有的文件数据。
fdisk
fdisk 是 Linux 的磁盘分区表操作工具。
语法:
fdisk [-l] 装置名称
选项与参数:
- -l :输出后面接的装置所有的分区内容。若仅有 fdisk -l 时, 则系统将会把整个系统内能够搜寻到的装置的分区均列出来。
实例 1
列出所有分区信息
[root@AY120919111755c246621 tmp]# fdisk -l
Disk /dev/xvda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 2550 20480000 83 Linux
/dev/xvda2 2550 2611 490496 82 Linux swap / Solaris
Disk /dev/xvdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x56f40944
Device Boot Start End Blocks Id System
/dev/xvdb2 1 2610 20964793+ 83 Linux
实例 2
找出你系统中的根目录所在磁盘,并查阅该硬盘内的相关信息
[root@www ~]# df / <==注意:重点在找出磁盘文件名而已
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc2 9920624 3823168 5585388 41% /
[root@www ~]# fdisk /dev/hdc <==仔细看,不要加上数字喔!
The number of cylinders for this disk is set to 5005.
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)
Command (m for help): <==等待你的输入!
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLM8
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLM6
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLM2
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLM1
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLLZ
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLLY
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLLX
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLLV
https://gitee.com/plwed821/klgwedptjz/issues/IDPLLT
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLLW
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLLS
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLLU
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLLR
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLLQ
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLLP
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLLO
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLLN
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLLM
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLLJ
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLLI
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLLH
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLLF
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLLE
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLLC
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLLB
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLLA
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLL9
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLL8
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLL7
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLL6
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLL4
https://gitee.com/plwed821/klgwedptjz/issues/IDPLL3
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLL2
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLL1
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLL0
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLKZ
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLKX
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLKY
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLKW
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLKV
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLKS
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLKR
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLKQ
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLKO
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLKP
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLKN
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLKM
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLKL
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLKK
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLKH
https://gitee.com/hrsap829/avavokcghz/issues/IDPLKG
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLKI
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLKF
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLKE
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLKD
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLKC
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLKB
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLKA
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLK9
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLK8
https://gitee.com/plwed821/klgwedptjz/issues/IDPLK7
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLK5
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLK6
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLK1
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLK2
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLK0
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLJZ
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLJX
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLJY
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLJW
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLJU
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLJV
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLJT
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLJS
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLJQ
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLJO
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLJP
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLJN
https://gitee.com/hrsap829/avavokcghz/issues/IDPLJM
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLJL
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLJK
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLJJ
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLJH
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLJG
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLJF
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLJE
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLJD
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLJC
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLJA
https://gitee.com/plwed821/klgwedptjz/issues/IDPLJB
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLJ8
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLJ9
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLJ7
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLJ4
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLJ6
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLJ3
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLJ2
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLJ0
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLIZ
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLIY
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLIW
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLIV
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLIU
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLIT
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLIS
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLIR
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLIP
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLIQ
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLIN
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLIM
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLIL
https://gitee.com/hrsap829/avavokcghz/issues/IDPLIK
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLIJ
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLII
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLIH
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLIG
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLIF
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLIE
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLID
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLIC
https://gitee.com/plwed821/klgwedptjz/issues/IDPLI9
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLI8
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLI7
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLI6
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLI5
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLI4
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLI3
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLI1
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLI0
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLHY
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLHX
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLHW
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLHV
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLHU
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLHT
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLHQ
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLHS
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLHP
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLHO
https://gitee.com/hrsap829/avavokcghz/issues/IDPLHN
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLHM
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLHL
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLHK
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLHJ
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLHI
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLHH
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLHG
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLHD
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLHE
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLHC
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLHB
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLHA
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLH8
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLH6
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLH7
https://gitee.com/plwed821/klgwedptjz/issues/IDPLH4
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLH3
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLH1
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLH2
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLH0
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLGY
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLGX
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLGW
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLGV
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLGS
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLGU
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLGR
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLGP
https://gitee.com/hrsap829/avavokcghz/issues/IDPLGQ
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLGO
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLGN
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLGM
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLGL
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLGK
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLGI
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLGH
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLGG
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLGE
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLGF
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLGD
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLGB
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLGA
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLG9
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLG8
https://gitee.com/plwed821/klgwedptjz/issues/IDPLG6
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLG7
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLG5
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLG4
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLG0
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLFZ
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLFY
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLFW
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLFX
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLFU
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLFT
https://gitee.com/hrsap829/avavokcghz/issues/IDPLFS
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLFR
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLFP
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLFQ
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLFO
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLFN
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLFM
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLFK
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLFL
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLFJ
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLFI
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLFH
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLFG
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLFE
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLFD
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLFC
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLFB
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLF8
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLF9
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLF7
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLF6
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLF5
https://gitee.com/plwed821/klgwedptjz/issues/IDPLF4
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLF2
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLF1
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLF0
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLEZ
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLEX
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLEW
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLEV
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLEU
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLET
https://gitee.com/hrsap829/avavokcghz/issues/IDPLER
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLES
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLEQ
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLEP
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLEO
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLEN
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLEM
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLEK
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLEJ
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLEH
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLEF
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLEG
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLEE
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLE9
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLEC
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLED
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLEA
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLE8
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLE6
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLE7
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLE5
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLE4
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLE0
https://gitee.com/plwed821/klgwedptjz/issues/IDPLE1
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLDZ
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLDY
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLDX
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLDW
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLDV
https://gitee.com/hrsap829/avavokcghz/issues/IDPLDU
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLDT
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLDR
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLDS
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLDQ
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLDP
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLDO
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLDN
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLDM
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLDK
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLDJ
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLDI
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLDH
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLDF
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLDE
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLDD
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLDB
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLDA
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLD7
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLD9
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLD5
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLD6
https://gitee.com/plwed821/klgwedptjz/issues/IDPLD3
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLD2
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLD1
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLD0
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLCZ
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLCY
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLCX
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLCW
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLCV
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLCU
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLCT
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLCS
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLCQ
https://gitee.com/mknlp654/lvlbjjoviq/issues/IDPLCP
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLCO
https://gitee.com/hrsap829/avavokcghz/issues/IDPLCN
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLCM
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLCL
https://gitee.com/ythav416/yzeawsolcr/issues/IDPLCJ
https://gitee.com/eimmr106/fnnvnvrjnx/issues/IDPLCI
https://gitee.com/vzant672/hqqmfbxhez/issues/IDPLCH
https://gitee.com/gvmlq957/mddzvssoog/issues/IDPLCE
https://gitee.com/qaopd261/vuyuyurjrj/issues/IDPLCD
https://gitee.com/cmwrm452/cmqqjfbtqm/issues/IDPLCC
https://gitee.com/qfirh537/kxfbxupqqq/issues/IDPLCB
https://gitee.com/jshas014/fbvzrnfcgq/issues/IDPLC6
https://gitee.com/lsuek303/evzzvoyqqv/issues/IDPLCA
https://gitee.com/musdu888/wzzvrjfxyq/issues/IDPLC8
https://gitee.com/ltsln347/fckkexbxph/issues/IDPLC9
https://gitee.com/irzly969/ibjrkgxuyu/issues/IDPLC7
https://gitee.com/tkxph279/cqowmobntf/issues/IDPLC5
https://gitee.com/urccy801/avzsokcuzu/issues/IDPLC3
https://gitee.com/ythah007/acpldzjfgg/issues/IDPLC2
https://gitee.com/plwed821/klgwedptjz/issues/IDPLC0
https://gitee.com/rgfrk051/ixxpdrokso/issues/IDPLC1
https://gitee.com/daicm274/gbdzzvocqj/issues/IDPLBZ
https://gitee.com/tdthn433/ctzgfsvdkw/issues/IDPLBY
https://gitee.com/lktve630/iykdtpldwy/issues/IDPLBX
https://gitee.com/mikje539/yurrrnfxtq/issues/IDPLBV
https://gitee.com/kyvqg832/pqgdrrrjjn/issues/IDPLBU
https://gitee.com/zveom930/fswvlhhzle/issues/IDPLBT
https://gitee.com/mpbzq237/zvdskgyryv/issues/IDPLBR
https://gitee.com/rgzfu954/tnnjfbldea/issues/IDPLBS
https://gitee.com/hrsap829/avavokcghz/issues/IDPLBO
https://gitee.com/eshqx424/ikkhdzrgbg/issues/IDPLBP
https://gitee.com/dumpt250/ueifbbfggb/issues/IDPLBM
https://gitee.com/adcce026/nnvscyqmmb/issues/IDPLBN
输入 m 后,就会看到底下这些命令介绍
Command (m for help): m <== 输入 m 后,就会看到底下这些命令介绍
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition <==删除一个partition
l list known partition types
m print this menu
n add a new partition <==新增一个partition
o create a new empty DOS partition table
p print the partition table <==在屏幕上显示分割表
q quit without saving changes <==不储存离开fdisk程序
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)
离开 fdisk 时按下 q,那么所有的动作都不会生效!相反的, 按下w就是动作生效的意思。
Command (m for help): p <== 这里可以输出目前磁盘的状态
Disk /dev/hdc: 41.1 GB, 41174138880 bytes <==这个磁盘的文件名与容量
255 heads, 63 sectors/track, 5005 cylinders <==磁头、扇区与磁柱大小
Units = cylinders of 16065 * 512 = 8225280 bytes <==每个磁柱的大小
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 1288 10241437+ 83 Linux
/dev/hdc3 1289 1925 5116702+ 83 Linux
/dev/hdc4 1926 5005 24740100 5 Extended
/dev/hdc5 1926 2052 1020096 82 Linux swap / Solaris
# 装置文件名 启动区否 开始磁柱 结束磁柱 1K大小容量 磁盘分区槽内的系统
Command (m for help): q
想要不储存离开吗?按下 q 就对了!不要随便按 w 啊!
使用 p 可以列出目前这颗磁盘的分割表信息,这个信息的上半部在显示整体磁盘的状态。


