linux磁盤分區命令
產品型號:Thinkpad E15
系統版本:centos8
案例:在sdb盤上建一個分區,大小爲1G
在虛擬機上添加一塊硬盤
例:對sdb這塊盤劃分一個100M的分區出來
[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 刪除分區
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
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 -----打印分區表
Command (m for help): n ----新建一個分區
Partition type:
p primary (2 primary, 0 extended, 2 free) p:主分區
e extended e:擴展分區
Select (default p): --#直接默認
Using default response p
Partition number (1,4, default 1): ---#直接默認
First sector (1230848-41943039, default 1230848): ---#直接默認
Using default value 1230848
Last sector, +sectors or +size{K,M,G} (1230848-41943039, default 41943039): +1G
#輸入分區大小
Partition 3 of type Linux and of size 1 GiB is set
Command (m for help): w #保存退出
格式化並創建文件系統
[root@xuegod63 ~]# mkfs.xfs /dev/sdb1
注:-f 參數可以對已經存在文件系統的分區,強制格式化
[root@xuegod63 ~]# mkdir /sdb1 #創建掛載點
[root@xuegod63 ~]# mount /dev/sdb1 /sdb1/#掛載
[root@xuegod63 ~]# df -h #查看
-
蘋果手機微信下載不了怎麼辦
1、可能無線網絡地址參數出錯,可以進入到蘋果手機“無線局域網”裏面,在已經連接上的WiFi信號點擊選擇忽略此網絡,然後清空掉原有錯誤的網絡,然後在重新連接斷開的WiFi信號,這樣就可以下載微信了。2、網絡出現錯誤,在蘋果手機設置裏面,打開通用、點擊還原、選擇還原網...
-
怎麼查看微博最近訪客,如何查看微博最近訪客
怎麼查看微博最近訪客:1、首先網頁登錄微博首頁。2、然後點擊右上角自己的頭像。3、點擊進去後點擊管理中心。4、在管理中心裏可以看到全部數據的概覽。5、往下拉可以看到具體的詳情信息。6、訪客互動可以在互動分析裏進行查看,也可以進行導出。...
-
微信上的表情包怎麼保存到手機,微信上的表情包如何保存到手機
1、在聊天記錄中找到要保存的微信表情,長按該表情彈出菜單,然後選擇編輯。2、在編輯界面中,可以根據自己的需求對錶情圖片進行修改,然後點擊完成。3、在下方彈出的菜單中,點擊保存圖片。4、手機提示我們保存成功了,也就是說該微信表情已經保存到手機裏了。...
-
怎麼調效果更好
1、首先打開播放器,播放一首歌,選擇均衡器。2、就可以進行相應的設置,在選擇自定義的時候。3、需要了解音樂均衡器的各個頻段所增益的樂器及調節效果,20HZ-40HZ,在這一段中提升能夠使音樂變得強而有力。4、40HZ-150HZ,是聲音的基礎部分,聲音豐滿柔和。...