Bug 799157 - gparted can not create logicala partition
Summary: gparted can not create logicala partition
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gparted
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deji Akingunola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-01 22:20 UTC by Flóki Pálsson
Modified: 2013-02-22 16:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-22 16:49:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Flóki Pálsson 2012-03-01 22:20:32 UTC
Description of problem:
gparted can not create logicala partition.

Version-Release number of selected component (if applicable):
gparted-0.12.0-1.fc17.x86_64


How reproducible:
always 

Steps to Reproduce:
1. select unalocated in extended partition ( /dev/sdc4 )
2.
3.
  
Actual results:
GParted 0.12.0 --enable-libparted-dmraid

Libparted 3.0
Create Logical Partition #1 (ext4, 23.49 GiB) on /dev/sdc  00:00:08    ( ERROR )
     	
create empty partition  00:00:04    ( SUCCESS )
     	
path: /dev/sdc19
start: 675,772,416
end: 725,043,199
size: 49,270,784 (23.49 GiB)
set partition type on /dev/sdc19  00:00:03    ( SUCCESS )
     	
new partition type: ext4
create new ext4 file system  00:00:01    ( ERROR )
     	
mkfs.ext4 -j -O extent -L "vara" /dev/sdc19
     	
mke2fs 1.42 (29-Nov-2011)
Could not stat /dev/sdc19 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

========================================


Expected results:
A new partition

Additional info:

I could create partition with F14.

Comment 1 Curtis Gedak 2012-03-02 16:38:13 UTC
The root cause of this error is that the underlying components of the operating system did not create the device entry /dev/sdc19.

In theory you can have an infinite number of logical partitions.  Having said that, the operating system only supports creating device entries for a limited number of these.  For many GNU/Linux distributions, this limit is 15 logical partitions.

The GParted FAQ contains information on this limitation:
What is the maximum amount of logical partitions an extended partition can hold?
http://gparted.org/faq.php#faq-8

To confirm which partition device entries have been created, you can try listing these with the 'ls' command:

     ls -l /dev/sdc*

In conclusion, if the underlying GNU/Linux distribution supports more than 15 logical partitions, then so does GParted.

Comment 2 Curtis Gedak 2012-03-18 16:22:37 UTC
A patch to permit more than 16 partitions has been included in (lib)parted 3.1.

See "libparted: raise dos partition limit from 16 to 64" in the release notes.

parted-3.1 released [stable]
http://lists.gnu.org/archive/html/info-gnu/2012-03/msg00001.html

Comment 3 Flóki Pálsson 2012-05-13 17:08:43 UTC
The error is still in F17.
gparted-0.12.0-2.fc17.x86_64



GParted 0.12.0 --enable-libparted-dmraid

Libparted 3.0
Create Logical Partition #1 (ext4, 29.18 GiB) on /dev/sdb  00:00:06    ( ERROR )
     	
create empty partition  00:00:03    ( SUCCESS )
     	
path: /dev/sdb18
start: 620,908,544
end: 682,100,735
size: 61,192,192 (29.18 GiB)
set partition type on /dev/sdb18  00:00:03    ( SUCCESS )
     	
new partition type: ext4
create new ext4 file system  00:00:00    ( ERROR )
     	
mkfs.ext4 -j -O extent -L "sdb18" /dev/sdb18
     	
mke2fs 1.42 (29-Nov-2011)
Could not stat /dev/sdb18 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

Comment 4 Curtis Gedak 2012-05-13 19:33:27 UTC
From the log file I can see that libparted 3.0 is being used.

The fix for this problem is included in libparted 3.1.  I believe that parted/libparted 3.1 has been packaged for inclusion in F18.


Note You need to log in before you can comment on or make changes to this bug.