中文字幕亚洲第一精品|精品国产免费一区二区|久久婷婷五月六月综合版|中文字幕熟妇久久久人妻|久久综合精品国产一区无码|国产成人精品永久免费视频|午夜亚洲国产精品理论片a级|久久精品一区二区三区无码护土

 訪問手機(jī)版  

Linux常用命令|Linux培訓(xùn)學(xué)習(xí)|考試認(rèn)證|工資待遇與招聘,認(rèn)準(zhǔn)超級(jí)網(wǎng)工!

招聘|合作 登陸|注冊(cè)

網(wǎng)絡(luò)工程師培訓(xùn)

當(dāng)前位置:網(wǎng)絡(luò)工程師 > 技術(shù)課程 > linux > 熱點(diǎn)關(guān)注 > linux常用命令

Linux 磁盤管理

時(shí)間:2019-07-04

linux命令大全 root_linux命令大全_紅帽linux命令大全

[root@www ~]# df /            <==注意:重點(diǎn)在找出磁盤文件名而已
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc2              9920624   3823168   5585388  41% /
[root@www ~]# fdisk /dev/hdc  <==仔細(xì)看,不要加上數(shù)字喔!
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):     <==等待你的輸入!

輸入 m 后,就會(huì)看到底下這些命令介紹

Command (m for help): m   <== 輸入 m 后,就會(huì)看到底下這些命令介紹
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition            <==刪除一個(gè)partition
   l   list known partition types
   m   print this menu
   n   add a new partition           <==新增一個(gè)partition
   o   create a new empty DOS partition table
   p   print the partition table     <==在屏幕上顯示分割表
   q   quit without saving changes   <==不儲(chǔ)存離開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  <==將剛剛的動(dòng)作寫入分割表
   x   extra functionality (experts only)

離開 fdisk 時(shí)按下 q,那么所有的動(dòng)作都不會(huì)生效!相反的, 按下w就是動(dòng)作生效的意思。

Command (m for help): p  <== 這里可以輸出目前磁盤的狀態(tài)
Disk /dev/hdc: 41.1 GB, 41174138880 bytes        <==這個(gè)磁盤的文件名與容量
255 heads, 63 sectors/track, 5005 cylinders      <==磁頭、扇區(qū)與磁柱大小
Units = cylinders of 16065 * 512 = 8225280 bytes <==每個(gè)磁柱的大小
   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
# 裝置文件名 啟動(dòng)區(qū)否 開始磁柱    結(jié)束磁柱  1K大小容量 磁盤分區(qū)槽內(nèi)的系統(tǒng)
Command (m for help): q
 上一個(gè)教程:Linux reset命令