Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-13-2012, 05:20 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Can I add a logical partition to a filesystem with an LVM?

If I deleted /dev/sda4? I wasn't aware of the 4 primary partitions per disk limitation, and I need to be able to have 4-5 more partitions on this disk that would all eventually be added to the LVM. I'm not sure if the LVM itself counts as the one allowed logical partition per disk.

Here is a cfdisk screenshot of the partition table:
Old 08-14-2012, 10:03 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
a primary partition is a primary partition, there's no interest in what the partition type is (and note that this "limitation" is a 100% DOS legacy issue, Linux doesn't care at all.

LVM partitions can be primary or logical, it's just seen as a block device at the level LVM deals with it at.
Old 08-15-2012, 02:40 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,941

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Chris' comments are true, but need some elaboration to answer the (largely implied) question.
In future, how about you ask the entire question in the post, instead of starting it in the subject ?.

Note your unusable area - if you delete sda4, you will wind up with a larger area that must (in this case) be allocated as a primary partition. That can be configured as a pv, and added to the LVM vg.
Ugly but workable.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add unallocated space to a logical volume? using LVM tauro_kpo Linux - Hardware 7 08-19-2012 02:02 PM
[SOLVED] partition table seems to be corrupted .. (physical != logical ) LVM weeb0_tikris Linux - General 1 01-16-2011 12:39 PM
Growing an LVM Partition in Fedora 10 using Logical Volume Manager Lee_Ball Linux - General 1 01-29-2009 09:14 AM
add lvm to expand a full filesystem mariogarcia Linux - Software 3 04-27-2007 05:16 AM
Add logical ntfs partition to GRUB loader ! Bonch Debian 1 12-09-2004 11:01 AM > Forums > Linux Forums > Linux - General

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