久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價(jià)!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > Linux掛載硬盤后端開發(fā)

Linux掛載硬盤后端開發(fā)

時(shí)間:2023-05-28 19:05:28 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 網(wǎng)絡(luò)小編

導(dǎo)讀:后端開發(fā)后端開發(fā) 使用虛擬機(jī)時(shí)發(fā)現(xiàn)磁盤空間不夠了,需要掛載一個(gè)磁盤以供繼續(xù)使用,但是磁盤不是添加就可以使用的,還需要進(jìn)行[v_notice]一、添加磁盤[/v_notice]添網(wǎng)站seo優(yōu)化課程公司網(wǎng)站建設(shè)。

網(wǎng)站seo優(yōu)化課程公司網(wǎng)站建設(shè)

使用虛擬機(jī)時(shí)發(fā)現(xiàn)磁盤空間不夠了,需要掛載一個(gè)磁盤以供繼續(xù)使用,但是磁盤不是添加就可以使用的,還需要進(jìn)行

[v_notice]一、添加磁盤[/v_notice]

添加加新硬盤重啟服務(wù)器

添加完之后就可以重啟機(jī)器了,如果你機(jī)器是開啟的,進(jìn)入系統(tǒng)并不能看見你剛添加的那塊磁盤,只有等系統(tǒng)重啟,重新加載之后才會顯示安裝的那塊磁盤

[v_notice]二、進(jìn)入系統(tǒng)[/v_notice]

使用root用戶進(jìn)入系統(tǒng)

[v_notice]三、 查看硬盤信息[/v_notice]

[root@localhost ~]# fdisk -l //磁盤命令 Disk /dev/sda: 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: 0x000c4cb5 Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 2611 20458496 8e Linux LVM Disk /dev/sdb: 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: 0xd0f5c869 Device Boot Start End Blocks Id System /dev/sdb1 1 2610 20964793+ 83 Linux Disk /dev/sdc: 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

可以看到這臺機(jī)器加載了三個(gè)磁盤sda、sdb、sdc 其中sda是初始磁盤,sdb已經(jīng)初始化且經(jīng)過使用,sdc是剛剛加載的,未格式化的新磁盤

[v_notice]四、創(chuàng)建新硬盤分區(qū)[/v_notice]

[root@localhost ~]# fdisk /dev/sdc #進(jìn)入磁盤 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x45a3cadb. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): m Command action a toggle a bootable flag #設(shè)定可啟動標(biāo)記 b edit bsd disklabel c toggle the dos compatibility flag d delete a partition #刪除一個(gè)分區(qū) l list known partition types #各分區(qū)類型所對應(yīng)的ID m print this menu #菜單 n add a new partition #添加一個(gè)分區(qū) o create a new empty DOS partition table p print the partition table #顯示該磁盤下的當(dāng)前分區(qū)信息 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)

關(guān)鍵詞標(biāo)簽: 暫無

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-28 ,文章Linux掛載硬盤后端開發(fā)主要講述暫無網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_11501.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 伊宁县| 蕲春县| 宜宾市| 都安| 阿巴嘎旗| 永丰县| 洱源县| 威海市| 长泰县| 浦城县| 荃湾区| 内乡县| 延吉市| 临沧市| 五大连池市| 茌平县| 于田县| 友谊县| 古蔺县| 奇台县| 大同市| 宜黄县| 江达县| 琼中| 城固县| 景东| 西藏| 泾川县| 马公市| 宁晋县| 景谷| 通渭县| 北碚区| 南阳市| 南昌县| 农安县| 裕民县| 讷河市| 邛崃市| 龙江县| 芦山县|