Is it possible to resize an ext4 partition to >2TB without data loss?
I added 1TB disk from a RAID 5 Hardware RAID (from 2TB usable to 3TB usable)
fdisk
command output:
Disk /dev/sdb: 3000.5 GB, 3000512503808 bytes
255 heads, 63 sectors/track, 364791 cylinders, total 5860375984 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 786432 bytes
Disk identifier: 0xd625ec35
Device Boot Start End Blocks Id System
Note: I already tried deleting partition, resizing but still device shows 2TB, then I read about the 2TB limit.
Thanks
gparted
orparted
.sudo fdisk -l
to your question?fdisk
output? It currently shows no partitions. If you have existing partitions and if your disk currently uses the MBR partition table, you can convert it from MBR to GPT usinggdisk
-- see rodsbooks.com/gdisk/mbr2gpt.html for details. As psusi says, you may need to change boot modes or re-install your boot loader. As to future expansion, that's possible, but you may need to move the backup partition data if you add space to your RAID. IIRC,parted
does that semi-automatically.gdisk
does it via an explicit command.