linux加一个2t硬盘吗,在linux下新增一块硬盘的操作。(包含大于2T的硬盘在linux下挂载操作)...
擴展后執(zhí)行fdisk -l查看是否成功
[root@localhost??~?]#?fdisk??-?l
Disk??/?dev?/?sda:??16.1??GB,??16106127360??bytes
255??heads,??63??sectors?/?track,??1958??cylinders
Units??=??cylinders?of??16065???*???512???=???8225280??bytes
Device?Boot??????Start?????????End??????Blocks???Id??System
/?dev?/?sda1????*?????????????1?????????????6?????????48163?+????83???Linux
/?dev?/?sda2????????????????7???????????515???????4088542?+????83???Linux
/?dev?/?sda3??????????????516??????????1239???????5815530?????83???Linux
/?dev?/?sda4?????????????1240??????????1305????????530145??????5???Extended
/?dev?/?sda5?????????????1240??????????1305????????530113?+????82???Linux?swap??/??Solaris
可見sda已經(jīng)擴展成為16G,但是沒分配給文件系統(tǒng)
繼續(xù)執(zhí)行fdisk /dev/sda進行新建磁盤
[root@localhost??~?]#?fdisk??/?dev?/?sda
The?number?of?cylinders
for
this??disk
is
set??to??1958?.
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):?n
No?free?sectors?available
前面執(zhí)行fdisk -l的時候明明最后才是1305柱面,而且應(yīng)該有1958柱面,為什么說沒有空閑的扇區(qū)。
再看看fdisk -l執(zhí)行結(jié)果,原來是/dev/sda5分配了作為swap分區(qū),找到原因了就容易解決。
1.關(guān)閉swap分區(qū) # swapoff /dev/sda5
2.刪除sda4和sda5.
[root@localhost??~?]#?fdisk??/?dev?/?sda
The?number?of?cylinders
for
this??disk
is
set??to??1958?.
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):?d
Partition?number?(?1?-?5?):??5
Command?(m
for??help):?d
Partition?number?(?1?-?5?):??4
3.建立擴展分區(qū)4,建立分區(qū)sda5,寫入
Command?(m
for??help):?n
Command?action
e???extended
p???primary?partition?(?1?-?4?)
e
Selected?partition??4
First?cylinder?(?1240?-?1958?,
default???1240?):
Using
default??value??1240
Last?cylinder?or??+?size?or??+?sizeM?or??+?sizeK?(?1240?-?1958?,
default???1958?):
Using
default??value??1958
Command?(m
for??help):?n
First?cylinder?(?1240?-?1958?,
default???1240?):
Using
default??value??1240
Last?cylinder?or??+?size?or??+?sizeM?or??+?sizeK?(?1240?-?1958?,
default???1958?):
Using
default??value??1958
Command?(m
for??help):?w
The?partition?table?has?been
文章來自:
1. ??http://blog.csdn.net/season_hangzhou/article/details/36423223
2. ?http://hchmsguo.iteye.com/blog/1226666
總結(jié)
以上是生活随笔為你收集整理的linux加一个2t硬盘吗,在linux下新增一块硬盘的操作。(包含大于2T的硬盘在linux下挂载操作)...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 幕客前端基础入门-搭建网页结构
- 下一篇: 锐浪报表应用系列二