LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-01-2019, 05:14 AM   #1
hobz
Member
 
Registered: May 2004
Location: Cairo - Egypt
Distribution: FC28
Posts: 124

Rep: Reputation: 15
Extending root partition on Fedora 26


Hi All
I am running out of space for the root partition in FC26 and I have an 10G empty partition that I want to merge with root
How can it be done
I am attaching gparted snapshot of partitions
root = /dev/sda6
home = /dev/sda8
empty partition to be merged with root = /dev/sda9

any suggestions
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20190501_113858.png
Views:	20
Size:	64.9 KB
ID:	30445  
 
Old 05-01-2019, 05:25 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Probably can't be (simply) done unless you are using LVM. That attachment is useless. Run these commands and post the full output in a post using [code] tags.
Code:
sudo lsblk -f
sudo parted /dev/sda "print free"
 
Old 05-01-2019, 05:35 AM   #3
hobz
Member
 
Registered: May 2004
Location: Cairo - Egypt
Distribution: FC28
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks a lot for answering, I have typed the 2 commands and thats what they have returned

sudo lsblk -f

NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs COMPAQ E83E072B3E06F1FC /mnt/c
├─sda2
├─sda3 ntfs FACTORY_IMAGE 949CA48C9CA46A86
├─sda5 ntfs 0C008256083612B0 /mnt/e
├─sda6 ext3 / 011b8799-d4b9-4ea0-ba81-bedabc6d43e9 /
├─sda7 swap SWAP-sda7 f670eb38-0ef8-4c2b-9b79-744f788d41e5 [SWAP]
├─sda8 ext3 /home 3684f369-d0c4-484a-9269-e6ed923eb4e5 /home
└─sda9 ext3 63af7f29-4a03-4571-8090-13a73abea606
sr0


sudo parted /dev/sda "print free"

Model: ATA WDC WD2500AAJS-6 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 121GB 121GB primary ntfs boot
121GB 121GB 6363kB Free Space
2 121GB 242GB 121GB extended
5 121GB 178GB 56.8GB logical ntfs
6 178GB 204GB 26.2GB logical ext3 boot
7 204GB 209GB 5544MB logical linux-swap(v1)
8 209GB 231GB 21.9GB logical ext3
9 231GB 242GB 10.5GB logical ext3
242GB 242GB 76.3kB Free Space
242GB 242GB 5322kB Free Space
3 242GB 250GB 8252MB primary ntfs
250GB 250GB 3097kB Free Space
 
Old 05-01-2019, 06:16 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
So, no LVM, so as I said, not simple.
If it were me I'd delete that free partition (/dev/sda9) - leave it as unallocated space. Then use gparted to drag /dev/sda8 as far to the right as it will go, then do the same with /dev/sda7 - this will effectively "move" the unallocated space next to /dev/sda6. Then you can use gparted to resize the root. Use the "Apply"button at each step to ensure each step completes before starting the next step.
 
Old 05-01-2019, 06:21 AM   #5
hobz
Member
 
Registered: May 2004
Location: Cairo - Egypt
Distribution: FC28
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks
This seems easier, i will try it and get back to you for any issues
 
Old 05-01-2019, 07:17 AM   #6
hobz
Member
 
Registered: May 2004
Location: Cairo - Egypt
Distribution: FC28
Posts: 124

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
So, no LVM, so as I said, not simple.
If it were me I'd delete that free partition (/dev/sda9) - leave it as unallocated space. Then use gparted to drag /dev/sda8 as far to the right as it will go, then do the same with /dev/sda7 - this will effectively "move" the unallocated space next to /dev/sda6. Then you can use gparted to resize the root. Use the "Apply"button at each step to ensure each step completes before starting the next step.
Thanks a million Syg00, it worked
 
Old 05-01-2019, 07:24 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
...
 
  


Reply



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
extending volume group vs extending physical volume which is better ? Gil@LQ Linux - Server 2 08-19-2013 10:13 AM
Extending Red Hat Linux Partition (/root, /swap & /d01) without restarting (Urgent) umairnazim Red Hat 4 06-16-2011 03:00 PM
extending existing windows-partition and changing os on linux partition ungua General 8 05-05-2009 11:01 AM
Extending root partition sumit dash Linux - Hardware 1 12-05-2008 05:13 AM
extending fedora unkown partition adrianlarsson Linux - Newbie 5 12-23-2006 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration