LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2011, 01:36 AM   #1
Wonder
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
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 460

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

man:
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
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
CentOS by default uses LVM. If your CentOS is using LVM, this might help:

http://www.gnu.org/software/parted/m...ted.html#SEC66
 
Old 08-18-2011, 02:05 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
Code:
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
Code:
vgdisplay

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


Reply


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


All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration