建站服务器
今天为了挂载文件系统,对磁盘进行分区,磁盘大小3.6tb。
使用fdisk对磁盘分区完成之后,查看如下:
disk /dev/sdb: 3598.9 gb, 3598914158592 bytes
255 heads, 63 sectors/track, 437543 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
device boot start end blocks id system
/dev/sdb1 1 234976 1887444688 83 linux
/dev/sdb2 234977 267349 260036122 5 extended
发现最大只能识别260036122blocks,3.6tb的磁盘没有完全分完,经查阅资料,使用fdisk进行分区最大只能识别2tb,于是采用parted进行分区。
[root@localhost /]# parted /dev/sdb
gnu parted 2.1
using /dev/sdb
welcome to gnu parted! type \\\’help\\\’ to view a list of commands.
corrupted — possibly by a program that doesn\\\’t understand gpt partition tables. or perhaps you deleted the gpt table, and are now using an msdos partition table. is this
a gpt partition table?
parted: invalid token: tes
model: dell perc h730p adp (scsi)
disk /dev/sdb: 3599gb
sector size (logical/physical): 512b/512b
partition table: gpt
number start end size file system name flags
(parted) mkpart
partition name? []?
file system type? [ext2]?
start?
start? 0
end? 1800gb
warning: the resulting partition is not properly aligned for best performance.
ignore/cancel? ignore
(parted)
(parted) mkpart
partition name? []?
file system type? [ext2]?
start?
start? 1800gb
end? 3599gb
(parted)
(parted) print
warning: /dev/sdb contains gpt signatures, indicating that it has a gpt table. however, it does not have a valid fake msdos partition table, as it should. perhaps it was
corrupted — possibly by a program that doesn\\\’t understand gpt partition tables. or perhaps you deleted the gpt table, and are now using an msdos partition table. is this
a gpt partition table?
yes/no? yes
model: dell perc h730p adp (scsi)
disk /dev/sdb: 3599gb
sector size (logical/physical): 512b/512b
partition table: gpt
number start end size file system name flags
1 17.4kb 1800gb 1800gb
2 1800gb 3599gb 1799gb
[root@localhost dev]$cd /dev
[root@localhost dev]$ ls |grep sdb
sdb
sdb1
sdb2
分区已经完成,下一步可以进行格式化并挂载文件系统
mkfs -t ext4 /dev/sdb1
mkfs -t ext4 /dev/sdb2
网站目录 让网站的结构更严谨请导出此空间非法信息的-其他问题如何解决重装系统失败无法开机进入系统的问题love 域名注册去哪里?有哪些优势?网站推广优化如何做 应该从哪几个方面进行优化帮我还原下程序吧刚我还原失败呢企业网站建设教程以及企业网站建设的意义和目的云服务器租用价格