linux parted 分区大小,Linux下parted对磁盘进行分区

今天为了挂载文件系统,对磁盘进行分区,磁盘大小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: tesModel: 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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30135314/viewspace-2152908/,如需转载,请注明出处,否则将追究法律责任。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值