在线亚洲黄色-在线亚洲观看-在线亚洲电影-在线亚洲成人-岛国大片在线观看免费版-岛国大片在线播放高清

linux分區(qū)命令

導(dǎo)讀linux分區(qū)需先添加硬盤(pán),然后fdisk/dev/sdb創(chuàng)建分區(qū),執(zhí)行mkfs.xfs /dev/sdb1格式化并創(chuàng)建文件系統(tǒng),創(chuàng)建掛載目錄/sdb1,最后掛載/dev/sdb1到/sdb1即可。
視頻內(nèi)容

產(chǎn)品型號(hào):Thinkpad E15

系統(tǒng)版本:centos8

案例:在sdb盤(pán)上建一個(gè)分區(qū),大小為1G

在虛擬機(jī)上添加一塊硬盤(pán)

 

例:對(duì)sdb這塊盤(pán)劃分一個(gè)100M的分區(qū)出來(lái)

[root@xuegod63 ~]# fdisk /dev/sdb

...

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   刪除分區(qū)

   g   create a new empty GPT partition table

   G   create an IRIX (SGI) partition table

   l   list known partition types   顯示分區(qū)類(lèi)型

   m   print this menu   打印幫助菜單

   n   add a new partition   添加新的分區(qū)

   o   create a new empty DOS partition table

   p   print the partition table   顯示分區(qū)表

   q   quit without saving changes   不保存,退出

   s   create a new empty Sun disklabel

   t   change a partition's system id   改變分區(qū)類(lèi)型

   u   change display/entry units

   v   verify the partition table

   w   write table to disk and exit   寫(xiě)分區(qū)表信息到硬盤(pán),保存操作并退出

   x   extra functionality (experts only)

Command (m for help): p   -----打印分區(qū)表

Command (m for help): n   ----新建一個(gè)分區(qū)

Partition type:

   p   primary (2 primary, 0 extended, 2 free)    p:主分區(qū)

   e   extended                         e:擴(kuò)展分區(qū)

Select (default p):     --#直接默認(rèn)

Using default response p

Partition number (1,4, default 1):   ---#直接默認(rèn)

First sector (1230848-41943039, default 1230848):   ---#直接默認(rèn) 

Using default value 1230848

Last sector, +sectors or +size{K,M,G} (1230848-41943039, default 41943039): +1G 

#輸入分區(qū)大小

Partition 3 of type Linux and of size 1 GiB is set

Command (m for help): w   #保存退出

格式化并創(chuàng)建文件系統(tǒng)

[root@xuegod63 ~]# mkfs.xfs  /dev/sdb1   

注:-f 參數(shù)可以對(duì)已經(jīng)存在文件系統(tǒng)的分區(qū),強(qiáng)制格式化

[root@xuegod63 ~]# mkdir /sdb1   #創(chuàng)建掛載點(diǎn)

[root@xuegod63 ~]# mount /dev/sdb1 /sdb1/ #掛載

[root@xuegod63 ~]# df -h    #查看

總結(jié): 

1. 添加硬盤(pán)

2. fdisk /dev/sdb創(chuàng)建分區(qū)

3. mkfs.xfs /dev/sdb1格式化并創(chuàng)建文件系統(tǒng)

4. 創(chuàng)建掛載目錄/sdb1

5. 掛載/dev/sdb1到/sdb1

大家在看
為你推薦
資訊專(zhuān)欄
熱門(mén)視頻
相關(guān)推薦
nginx和apache的區(qū)別是什么 nginx安裝與使用 nginx反向代理典型配置 linux創(chuàng)建分區(qū) linux配置nginx linux系統(tǒng)分區(qū)方案 linux下nginx安裝步驟 linux怎么分區(qū) 怎么安裝nginx服務(wù)器 安裝linux如何分區(qū) linux安裝ngnix linux硬盤(pán)分區(qū)命令 linux怎么安裝nginx linux一般怎么分區(qū) linux環(huán)境下安裝nginx linux對(duì)磁盤(pán)分區(qū)的命令 linux系統(tǒng)下nginx的安裝 linux如何手動(dòng)分區(qū) linux下安裝nginx教程 linux硬盤(pán)怎么分區(qū) nginx簡(jiǎn)單配置反向代理 nginxlinux安裝 nginx和apache的對(duì)比區(qū)別 linuxapache安裝 linux硬盤(pán)分區(qū) 360極速瀏覽器右下角廣告怎么關(guān)閉 nginx做反向代理怎么配置 nginx安裝配置linux dockerrun參數(shù) nginx和apache 如何安裝apache linux分區(qū)教程 360瀏覽器右下角淘寶廣告怎么關(guān)閉 nginx的反向代理配置詳解 linux安裝nginx docker的基本命令 phpnginx和apache的區(qū)別 centos安裝apache linux分區(qū)方案 win10怎么共享打印機(jī)
Top 主站蜘蛛池模板: 欧美人与禽zozzo性伦交 | 日韩欧美国产中文 | 中文国产成人精品久久久 | 一区二区三区亚洲 | 黄色网站视频免费 | 久久精品亚洲一区二区 | 日韩视频在线免费观看 | 成人在线一区二区三区 | 三区在线观看 | 91在线精品亚洲一区二区 | 欧美日韩精品在线播放 | 国产精品一区二区在线观看 | 欧美另类日韩中文色综合 | 可播放的免费男男videos不卡 | 91原创在线 | 国产一级特黄全黄毛片 | 国产青草| 五月天色综合 | 色精品一区二区三区 | 久久久精| 一级毛片一级毛片一级级毛片 | 国产精品美女久久久久网站 | 欧美在线一区二区三区不卡 | 3a毛片| 在线观看国产视频 | 欧美日韩国产一区二区三区播放 | 亚洲一区二区三区成人 | 最新欧美日韩 | 国产精品一区二区三区免费 | 一边摸一边叫床一边爽 | 欧美精品国产一区二区 | 伊人久久精品久久亚洲一区 | 制服丝袜先锋影音 | 国产福利一区二区三区在线视频 | 亚洲视频在线观 | 2021国产精品自拍 | 日韩欧美精品一区二区 | 最新偷窥盗摄视频在线 | 日韩精品第二页 | 亚洲欧美日韩网站 | 高清国产精品久久 |