[plug] Resizing an EXT4 filesystem

Alastair Irvine alastair at plug.org.au
Sat Apr 7 14:12:14 AWST 2018


On Thu, 09 November, 2017 at 07:18:36PM +1100, Richard Meyer wrote:
> 
> Hi all,
> 
> Finally a gutsy Linux question (sans networks or printers).
> 
> I have a large-ish hard drive and have a partition I want to enlarge.
> 
> Let's say it looks like this
> 
> 
> 
> 
> > fdisk /dev/sdc -l
> > 
> > Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
> > 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
> > Units = sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> > Disk identifier: 0x0002e0d1
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sdc1            2048    31455231    15726592   83  Linux
> > /dev/sdc2        31455232  3907028991  1937786880    f  W95 Ext'd (LBA)
> > /dev/sdc5        31457280    39841791     4192256   82  Linux swap / Solaris
> > /dev/sdc6        39843840   459266047   209711104   83  Linux
> > /dev/sdc7       459266283  2302467929   921600823+  83  Linux

Hi, Richard.  Word of warning, MBR-style partition tables are a bad idea
on drives of this size.

Even on single-boot systems, I have seen corruption on Linux filesystems
due solely to using MBR on partitions larger than 1.8 TiB.

Please consider switching to GPT:
https://en.wikipedia.org/wiki/GUID_Partition_Table


More information about the plug mailing list