Ask Your Question
2

extend ext4 partition fedora29

asked 2019-04-02 09:46:34 -0600

alchimie gravatar image

updated 2019-04-02 11:32:56 -0600

hhlp gravatar image

Hello, Can any one help me?

i want to merge my "sda4" partition with "unallocated space" without losing Data.

image description

this is the info wirh "fdisk -l" Command


[aaaaa@localhost ~]$ sudo fdisk -l

[sudo] password for aaaaa: 

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3ac53b24

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1       481284094 976771071 495486978 236.3G  f W95 Ext'd (LBA)
/dev/sda4       235726848 481282047 245555200 117.1G 8e Linux LVM
/dev/sda5       481284096 740338439 259054344 123.5G  7 HPFS/NTFS/exFAT
/dev/sda6       740339712 976769023 236429312 112.8G  7 HPFS/NTFS/exFAT

Partition table entries are not in disk order.




Disk /dev/mapper/fedora-00: 45 GiB, 48318382080 bytes, 94371840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-swap: 4.1 GiB, 4404019200 bytes, 8601600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-01: 68 GiB, 72997666816 bytes, 142573568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[aaaaa@localhost ~]$

thanx for help me...

edit retag flag offensive close merge delete

Comments

You First need to extend the LVM2 volume. Search for lvm resize on ask.fedora. This task has been explained various times here. Let us know if you can’t find it.

florian gravatar imageflorian ( 2019-04-02 15:26:21 -0600 )edit

hmm.. first step would be to move the sd4 to the front, and then resize it to max.

rdtcustomercare gravatar imagerdtcustomercare ( 2019-04-03 16:44:55 -0600 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2019-04-07 03:02:26 -0600

alamahant gravatar image

updated 2019-04-07 03:07:13 -0600

Please use Gparted to create a partition containing the all unallocated space at the beginning of your disk and assign to it a type of Lvm Pv. Then run lsblk and you will see your newly created partition as /dev/sdaX.Next run: pvcreate /dev/sdaX vgextend fedora /dev/sdaX lvresize --resizefs -l+100%FREE /dev/fedora/LV-name to assign all available space of the "fedora" volume group or lvresize --resizefs -L <desired-number-of> G /dev/fedora/LV-name to assign specific size to it. Normally you dont have to unmount the logical volume to do this. But as an extra layer of caution you might want to use a live cd or the installation ISO (NOT REALLY NEEDED)

edit flag offensive delete link more

Comments

thanx friend, it's useful

alchimie gravatar imagealchimie ( 2019-04-07 12:25:51 -0600 )edit
0

answered 2019-04-04 07:59:45 -0600

It will be helpful if you refer to my writing.

 https://ask.fedoraproject.org/en/question/134329/resize-root-folder/
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-02 09:46:34 -0600

Seen: 104 times

Last updated: Apr 07 '19