免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1318 | 回复: 0
打印 上一主题 下一主题

Linux Creating a Partition Size Larger than 2TB [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-04 16:50 |只看该作者 |倒序浏览

Linux desktop user generally uses small hard disk and partition, but
on server you need a large partition. For example, you cannot create
4TB partition size (RAID based) using fdisk command. It will not allow
you to create a partition that is greater than 2TB.
To solve this problem use GNU parted command with GPT. It supports
Intel EFI/GPT partition tables. Partition Table (GPT) is a standard for
the layout of the partition table on a physical hard disk. It is a part
of the Extensible Firmware Interface (EFI) standard proposed by Intel
as a replacement for the outdated PC BIOS, one of the few remaining
relics of the original IBM PC. EFI uses GPT where BIOS uses a Master
Boot Record (MBR).

(Diagram illustrating the layout of the GUID Partition Table scheme.
Each logical block (LBA) is 512 bytes in size. LBA addresses that are
negative indicate position from the end of the volume, with −1 being
the last addressable block. Imaged Credit
Wikipedia
)
GPT Kernel Support
EFI GUID Partition support  works on both 32bit and 64bit platforms.  You must include GPT support in kernel
in order to use GPT. If you don't include GPT support in Linux kernelt,
after rebooting the server, the file system will no longer be mountable
or the GPT table will get corrupted. By default Redhat Enterprise Linux
/ CentOS comes with GPT kernel support. However, if you are using
Debian or Ubuntu Linux, you need to recompile the kernel. Set CONFIG_EFI_PARTITION to y to compile this feature.
File Systems
   Partition Types
     
  • Advanced partition selection
         
  • EFI GUID Partition support (NEW)
    ....
    Linux create 3TB partition size
    One of my clients has Raid 5 Array -7x500GB hard disks to store large data. To create partition start GNU parted as follows:
    # parted /dev/sdx
    Output:
    GNU Parted 1.8.1
    Using /dev/sdx
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted)
    Creates a new GPT disklabel i.e. partition table:
    mklabel gpt
    Create 3TB partition size:
    mkpart primary 0 3001G
    Quit and save the changes:
    quit
    Use mkfs to format file system:
    # mkfs.ext3 /dev/sdx1
    Note: Replace /dev/sdx with actual RAID or disk name or block
    Ethernet device such as /dev/etherd/e0.0 . Don't forget to update
    /etc/fstab, if necessary.
    来源:http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/30312/showart_1164584.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP