新聞中心
隨著隨著存儲空間的不斷增大,現(xiàn)在常見的硬盤也越來越大,分區(qū)越來越普遍。linux 500G分區(qū)在Linux中是很常見的操作,如果您最近也要這么做,您也可以遵循下面的操作指南,一步步體驗如何完成分區(qū)。

創(chuàng)新互聯(lián)建站主要從事成都網(wǎng)站設(shè)計、成都網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)上思,十年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18982081108
首先,需要檢測系統(tǒng)是否支持500G硬盤,可以使用dmesg命令查看:
\`\`\`
#dmesg
[ 10.336127] sd 1:0:0:0 [sda] Attached SCSI disk
\`\`\`
如果顯示從設(shè)備連接到SCSI磁盤后,代表系統(tǒng)支持500G硬盤,就可以開始分區(qū)了。
接著,可以使用fdisk命令為500G硬盤指定分區(qū),使用下面的命令:
\`\`\`
#fdisk /dev/sda
Device contains neither a valid DOS partition table, nor
Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.
The bandwidth a partition:
1 primary partition, 0 extended partitions, 0 logical partitions
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 0 logical
e extended
Select (Default p): p
Partition number (1-4, default 1): 1
First sector (2048-1048575999, default 2048): 1048576
Last sector, +sectors or +size{k,m,g} (1048576-1048575999, default 1048575999):
Using default value 1048575999
Command (m for help): w
The partition table has been altered!
Syncing disks
\`\`\`
接下來,根據(jù)自己的需要,選擇需要的分區(qū)文件系統(tǒng),對分區(qū)進行格式化,可以使用下面的命令:
\`\`\`
# mkfs.ext4 /dev/sda1
mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: done
Creating filesystem with 128122240 4k blocks and 32030336 inodes
Filesystem UUID: b9cf5ca5-1a72-4b4a-b4a4-e010091734c3
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000
Allocating group tables: done
Writing inode tables: done
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done
\`\`\`
最后,使用下面的命令掛載分區(qū):
\`\`\`
#mount /dev/sda1 /mnt
\`\`\`
顯示掛載成功,就完成了linux 500g分區(qū)的整個操作,按照上述步驟完成分區(qū)的話,500G的硬盤就可以正常使用了,開始正常的工作吧!
香港服務(wù)器選創(chuàng)新互聯(lián),2H2G首月10元開通。
創(chuàng)新互聯(lián)(www.cdcxhl.com)互聯(lián)網(wǎng)服務(wù)提供商,擁有超過10年的服務(wù)器租用、服務(wù)器托管、云服務(wù)器、虛擬主機、網(wǎng)站系統(tǒng)開發(fā)經(jīng)驗。專業(yè)提供云主機、虛擬主機、域名注冊、VPS主機、云服務(wù)器、香港云服務(wù)器、免備案服務(wù)器等。
當(dāng)前名稱:Linux500G分區(qū):一步步指導(dǎo)您完成分區(qū)(linux500g分區(qū))
網(wǎng)頁鏈接:http://m.fisionsoft.com.cn/article/coeeghp.html


咨詢
建站咨詢
