Visit Jeremy's Blog.
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 08-16-2011, 01:36 AM   #1
LQ Newbie
Registered: Jul 2002
Location: Moscow, Russia
Distribution: RedHat 6.2, RedHat 7.1
Posts: 14

Rep: Reputation: 0
How to enlarge logical partition in linux?

CentOS linux 5.4
/dev/sda is a 2000 GB harddrive.

parted gives the following information:

Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 2000GB 2000GB extended
5 64.5kB 1000GB 1000GB logical ext2

I want to enlarge logical partition 5 to 2000GB.
In parted i execute:
resize 5 64.5kB 2000GB

It gives me: Error: File system has an incompatible feature enabled.

How can i enlarge logical partition in linux?
Old 08-16-2011, 11:12 AM   #2
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 462

Rep: Reputation: 30
I would use gparted if you have the option, it looks like resize is used for the terminal:

resize - set TERMCAP and terminal settings to current xterm window size

I think that you require LVM partitions to allow easy resizing.
Old 08-16-2011, 10:47 PM   #3
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,791
Blog Entries: 17

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
CentOS by default uses LVM. If your CentOS is using LVM, this might help:
Old 08-18-2011, 02:05 AM   #4
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
lvresize -r -L <whatever value you want to resize to> <name of vol group>    // this assumes there's room left to grab in the volume group
This(-r options) will resize the partition in addition to resizing the lvm.

You can check the size allocated and free from the volume group with

Last edited by trist007; 08-18-2011 at 02:17 AM.


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
extended sata partition shrunk at 15 partition limit, how to re-enlarge Siljrath Linux - General 3 06-02-2010 11:33 PM
Enlarge extended partition fawrell Linux - General 4 07-31-2008 03:08 AM
Remove windows partition, enlarge linux candyman123 Linux - General 3 07-08-2006 10:24 AM
How to enlarge NTFS partition from Linux? zaoka Linux - Software 6 09-04-2005 06:23 PM
How to enlarge my Linux partition westspider Linux - Software 3 03-22-2005 06:09 AM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration