Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-09-2012, 02:26 AM   #1
LQ Newbie
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Howto: Extend filesystem on root


Using LVM on debian squeeze, I have resized partitions, using lvextend, after running out of space on the root partition.

root@OrgFxtop:/home/callum# lvscan
ACTIVE '/dev/ckdeb1laptop/root' [10.32 GiB] inherit
ACTIVE '/dev/ckdeb1laptop/usr' [9.38 GiB] inherit
ACTIVE '/dev/ckdeb1laptop/var' [3.79 GiB] inherit
ACTIVE '/dev/ckdeb1laptop/swap_1' [2.91 GiB] inherit
ACTIVE '/dev/ckdeb1laptop/tmp' [1.37 GiB] inherit
ACTIVE '/dev/ckdeb1laptop/home' [40.52 GiB] inherit

However, I believe I still need to extend the filesystem itself to fill the partitions, as I am still receiving partition full messages, when trying to write to the root partition.

At the moment I think it's only letting me write to a couple of GB, 3 or 4, definitely not the 10.32 it should allow.

I assume I'll need a live disk to extend the root?
Old 07-09-2012, 07:54 AM   #2
Senior Member
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I believe if you boot into a live disk and run:

e2fsck -f /dev/the_disk
resize2fs -f /dev/the_disk
it should resize it, though suggests that it may be possible to grow the filesystem while it is still mounted, provided you have a recent kernel and ext3 partition.

In future I would use something like GParted (there's a dedicated live CD) to handle it all for you... Unless you have a particular desire to use the command-line

Last edited by Snark1994; 07-09-2012 at 07:56 AM.
Old 07-09-2012, 08:13 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,015

Rep: Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102Reputation: 4102
Last I looked libparted didn't support LVM, so the OP has done most of the needed work. For ext[234] resize2fs is the tool to use, other filesystems have their own equivalent. For an increase, online (mounted) resize should be fine, even for the root with current kernels. I seem to recall being surprised SLES 10 didn't have that support though.

Using a liveCD is usually recommended, but would have to have LVM active.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move root filesystem HOWTO processcontrol Linux - General 1 03-01-2012 06:10 AM
Extend filesystem in solaris thatishari Solaris / OpenSolaris 3 09-17-2009 06:23 AM
Initrd as a root filesystem howto mrsiva Linux - Kernel 1 05-02-2008 10:46 AM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 04:58 PM
howto boot root filesystem from SATA disk? david.skinner Linux - Hardware 4 06-17-2004 01:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration