LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
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
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
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
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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,947

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


Reply

Tags
fdisk, gdisk, rhel6



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 12:12 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