lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <A735B112-0384-43F8-8F0F-CACFD34CEA67@dilger.ca>
Date:   Thu, 2 Jul 2020 13:29:28 -0600
From:   Andreas Dilger <adilger@...ger.ca>
To:     Alok Jain <jain.alok103@...il.com>
Cc:     linux-ext4@...r.kernel.org, tytso@....edu
Subject: Re: Grow ext4 filesystem on mounted device

On Jul 2, 2020, at 13:18, Alok Jain <jain.alok103@...il.com> wrote:
> 
> Hi Experts,
> 
> I want to grow the ext4 file system on mounted device by running
> resize2fs utility but it fails, same works in case of unmounted FS
> with additional invocation of e2fsck utility.
> 
> This is what i am doing
> 
> 1)Rescanning the device
> echo "1" | sudo tee /sys/block/sdd/device/rescan
> 2) Extending the partition
> growpart /dev/sdd 1
> 3) resizing the file system
> resize2fs /dev/sdd1
> resize2fs 1.43-WIP (20-Jun-2013)
> The filesystem is already 43253499 blocks long.  Nothing to do!

What does "grep sdd1 /proc/partitions" show?  Is the kernel
aware of the larger partition size?

> parted -s /dev/sdd1 print free
> Model: Unknown (unknown)
> Disk /dev/sdd1: 177GB
> Sector size (logical/physical): 512B/4096B
> Partition Table: loop
> 
> Number  Start  End    Size   File system  Flags
> 1      0.00B  177GB  177GB  ext4
> 
> Any help?
> 
> Thanks,
> Alok

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ