Ubuntu 14.04 挂载 3TB 新硬盘,使用 fdisk 只能识别 2TB,所以要改其他方法。
具体见下文:
http://jingyan.baidu.com/article/7c6fb4287c853880652c9067.html
如果之分了一个区,后面想增加一个分区,就要调整第一个分区尺寸,然后再增加新分区:
1. 停掉所有使用这个分区的服务或者应用;
2. umount 这个分区
3. 使用 parted 的 resize 命令
参考:http://my.oschina.net/guol/blog/61424
如果提示出错:
Error
:
File
system
has
an
incompatible
feature
enabled
.
Compatible
features
are
has_journal
,
dir_index
,
filetype
,
sparse_super
and
large_file
.
Use
tune2fs
or
debugfs
to
remove
features
.
这是因为首先要在系统里调整好分区大小,然后再使用 parted 调整。
a. 使用 e2fsck 检查分区:
sudo e2fsck -f /dev/sdb1
b. 使用 resize2fs 调整分区大小
sudo resize2fs /dev/sdb1/ 1500G
然后再返回使用 parted 的resize 命令。
参考:http://www.linuxdiyf.com/linux/16065.html