LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2017, 06:10 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
Conflict between using fdisk and gdisk for partitions?


So I'm building out a new RHEL6 servers with UEFI so I can take advantage of gdisk.

For some reason one of the servers didn't have gdisk installed on it, so because of a time crunch I had to use fdisk to build out a partition for a rsyslog server.

I later went back and installed gdisk incase I need to create more partitions, as I like working with that more. However I'm not sure if this will cause a conflict in the future if I want to add more partitions with gdisk and started the process with fdisk.


Has anyone run into this before or is this a non-issue?
 
Old 01-19-2017, 06:18 PM   #2
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.1, Tumbleweed, Ubuntu 19.04, Mageia 7, Fedora 30, Debian 10, and Linux Mint 19.1
Posts: 784
Blog Entries: 11

Rep: Reputation: 110Reputation: 110
gdisk manages only GPT partition tables, while fdisk manages only classic MBR partition tables. As fdisk would have made a MBR partition table, gdisk will load but prompt you to convert to GPT.

The main difference between fdisk and gdisk is the former works with MBR, while the later works with GPT - the main choice is do you want to convert to and use GPT on that machine (to use gdisk), or stick with the classic MGR partition table (keep using fdisk). That could be a potentially destructive operation and creating booting hassles - I would just recommend using fdisk unless there's something you really need from GPT.
 
2 members found this post helpful.
Old 01-19-2017, 08:40 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301

Original Poster
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by wagscat123 View Post
I would just recommend using fdisk unless there's something you really need from GPT.
If I'm building a server with UEFI, I want to use gdisk, as I can create 128 partitions and I'm not limited like I am with fdisk.

Its odd that gdisk didn't get installed with default RHEL6 system built on UEFI.
 
Old 01-20-2017, 02:45 AM   #4
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 552

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by JockVSJock View Post
If I'm building a server with UEFI, I want to use gdisk, as I can create 128 partitions and I'm not limited like I am with fdisk.

Its odd that gdisk didn't get installed with default RHEL6 system built on UEFI.
Then, if it is possible for you, try to start over and partition that drive with gdisk so that you have a GPT there. Because, as it is right now, it is MBR and it might limit you in the future.
 
1 members found this post helpful.
Old 01-20-2017, 04:32 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Quote:
Originally Posted by JockVSJock View Post
So I'm building out a new RHEL6 servers with UEFI so I can take advantage of gdisk.

For some reason one of the servers didn't have gdisk installed on it, so because of a time crunch I had to use fdisk to build out a partition for a rsyslog server.

I later went back and installed gdisk incase I need to create more partitions, as I like working with that more. However I'm not sure if this will cause a conflict in the future if I want to add more partitions with gdisk and started the process with fdisk.


Has anyone run into this before or is this a non-issue?
I really hate myself for saying it, but more haste less speed.
 
Old 01-20-2017, 10:11 PM   #6
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.1, Tumbleweed, Ubuntu 19.04, Mageia 7, Fedora 30, Debian 10, and Linux Mint 19.1
Posts: 784
Blog Entries: 11

Rep: Reputation: 110Reputation: 110
A conversion is likely possible: https://zindilis.com/docs/centos-6-c...br-to-gpt.html

Just finish with w after firing up gdisk
 
Old 01-21-2017, 06:34 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,301

Original Poster
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
Since I'm using LVM as well, I believe that I can use pvmove and vgreduce to move data off of the LVM, delete the partition with fdisk and then re-create it with parted.

Correct?
 
Old 01-21-2017, 06:58 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,558

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
You can wipe the disk & start again, a bit more slowly.
 
  


Reply

Tags
fdisk, gdisk, rhel6


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is gdisk actually working? I am installing arch Linux and using gdisk. Ererer Linux - General 5 12-28-2015 12:14 AM
df and fdisk conflict and grub therefore won't boot or run setup mclinkor Linux - General 10 10-17-2008 03:54 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
FDISK does not let me create partitions millikin691@hotmail. Slackware - Installation 54 08-28-2006 07:04 PM
To show all partitions(without using fdisk -l) arunshivanandan Linux - Newbie 18 08-04-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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