Ask Your Question

Unable to access partition after splitting 2 TB drive.

asked 2018-10-25 21:01:41 -0500

gctaylor11 gravatar image

I've got an older Lenovo laptop(T61) with a 2 TB drive. I have installed two instances of Fedora28 on two separate volume groups. I tried to more or less follow the anaconda suggested disk partitioning scheme but modifying so I could have two Fedora instances installed, while also creating encrypted volumes and adjusting the size. There are two volume groups and then the volume groups have / and swap as LVM. There are also two /boot dirs. LUKS is used to encrypt. My intent is to use one instance for everyday use and the other for more experimental purposes. Each instance uses roughly 40 GB for /, 3 GB for swap, and 1 GB for boot.

I tried to take the rest of the 2TB drive and use it as storage but I can't seem to get at it. This is the problem.

I thought I could create a partition on /dev/sda4 but that failed. As shown below but I get the message:

"All space for primary partitions is in use."

I expect this is user error but I'm not sure how to achieve what I'm after and am looking for advice. To reiterate, the ideal situation would be to have one instance I can keep stable and a second instance that I can use for experiementation, in theory, to include blowing away the "test" instance and the partitions it uses.
Any advice for doing that?

[root@fedora00 ~]# fdisk -l  

Invalid flag 0x0000 of EBR (for partition 5) will be corrected by w(rite). 
Disk  /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors 
Units:  sectors of 1 * 512 = 512 bytes 
Sector  size (logical/physical): 512 bytes / 4096 bytes 
I/O size (minimum/optimal): 4096 bytes / 4096 bytes 
Disklabel type: dos 
Disk identifier: 0x86c58173

Device      Boot      Start          End        Sectors     Size  Id  Type 
/dev/sda1   *          2048      2099199        2097152      1G   83  Linux 
/dev/sda2           2099200    115169279      113070080   53.9G   83  Linux
/dev/sda3         115169280    117266431        2097152      1G   83  Linux 
/dev/sda4         117266432   3907028991     3789762560    1.8T    5  Extended <===this partition
/dev/sda5         117268480    230338559      113070080   53.9G   83  Linux

Disk /dev/mapper/luks-a157f709-f0d9-484a-b66b-b505800f6994: 53.9 GiB, 57889783808 bytes, 113065984 sectors 
Units: sectors of 1 * 512 =512 bytes 
Sector size(logical/physical): 512 bytes / 4096 bytes 
I/O size (minimum/optimal): 4096bytes / 4096 bytes

Disk /dev/mapper/fedora00-root: 50 GiB, 53687091200 bytes, 104857600 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size(logical/physical): 512 bytes / 4096 bytes 
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mapper/fedora00-swap: 3.9 GiB, 4194304000 bytes, 8192000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes 
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

[root@fedora00 ~]# fdisk /dev/sda4

Welcome to fdisk (util-linux 2.32).
Changes will remain in memory only,  until you decide to write them. 
Be careful before using the write command.

Device does not contain a recognized partition table. 
Created a new DOS  disklabel with disk ...
edit retag flag offensive close merge delete


Based on the old MBR partition scheme, you're limited to 4 primary partitions or 3 primary + 1 extended with additional partition under extended (which is what you're having now).

You cannot further partition an extended partition; fdisk /dev/sda4. Try wiping the partition with wipefs -af /dev/sda5, initialize a new partition on it mkfs-t xfs /dev/sda5 then try mounting it to see if it works.

aminjohann gravatar imageaminjohann ( 2018-10-28 19:36:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-26 03:53:51 -0500

villykruse gravatar image

This message "All space for primary partitions is in use." tells you that you can't create another primary partition, but you should create logical partitions instead. That is sda6, sda7, and so on.

For your purpose, I would install the experimental fedora in a virtual machine, such as Gnome Boxes or VirtualBox. Gnome Boxes is already included with Gnome so I would expect it is already available.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-25 21:01:41 -0500

Seen: 36 times

Last updated: Oct 26 '18