[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] fun fun changing Linux swap partition to a swap file
- Subject: [ale] fun fun changing Linux swap partition to a swap file
- From: mike at trausch.us (Michael B. Trausch)
- Date: Thu, 20 Jan 2011 12:25:30 -0500
- In-reply-to: <1295544107.2024.243.camel@dell-i1525-1>
- References: <1295504225.2024.179.camel@dell-i1525-1> <[email protected]> <1295541270.2024.233.camel@dell-i1525-1> <1295541634.24092.9.camel@aloe> <1295544107.2024.243.camel@dell-i1525-1>
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