LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Howto: Extend filesystem on root


Hello,

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, 06:54 AM   #2
Snark1994
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:

Code:
e2fsck -f /dev/the_disk
resize2fs -f /dev/the_disk
it should resize it, though http://linux.die.net/man/8/resize2fs 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 06:56 AM.
 
Old 07-09-2012, 07:13 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
  


Reply



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 05:10 AM
Extend filesystem in solaris thatishari Solaris / OpenSolaris 3 09-17-2009 05:23 AM
Initrd as a root filesystem howto mrsiva Linux - Kernel 1 05-02-2008 09:46 AM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
howto boot root filesystem from SATA disk? david.skinner Linux - Hardware 4 06-17-2004 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 PM.

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