[ale] fun fun changing Linux swap partition to a swap file

Michael B. Trausch mike at trausch.us
Thu Jan 20 12:25:30 EST 2011


On Thu, 2011-01-20 at 12:21 -0500, Ron Frazier wrote:
> What I'm still wondering, though, is whether the file system is using
> the full partition, or whether I have to move the fences, as Tim
> suggested.  It's an ext4 file system, and I resized it with Gparted,
> as described in the other post. 

Check the output of the 'df' command.  It will tell you the device the
filesystem is on, the size (in 1 KiB blocks), how much is used, how much
is available (again in 1 KiB blocks), the percentage used, and the
mountpoint.

Your listing for 1 KiB blocks should match up pretty closely to what the
filesystem's containing partition's size is.  It may not be exact.  But
if you grew the partition by, say, 1 GB, and you're coming up 1 GB
short, then the fix is pretty simple:

  sudo resize2fs /dev/device

Will resize the ext4 filesystem online.  It shouldn't take that long to
do; longest I have seen it take is roughly 15 minutes for a growth of
several tens of gigs.

	--- Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20110120/410e1378/attachment.bin 


More information about the Ale mailing list