LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-19-2015, 06:58 PM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Does a GUID Partition Table (GPT) need a different layout than MBR?


I usually setup my computers with MBR with this layout:
  • /boot (100 MB) ext2
  • / (300 MB)
  • /tmp ext2
  • (extended)
    • swap
    • /usr
    • /usr/share/
    • /var/
    • /home
    • partitions for users

If I setup a computer with GPT, does this still allow this same layout?
 
Old 03-19-2015, 07:21 PM   #2
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,121
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
Yes. With GPT, you won't need to make an extended partition. You will need an addition small partition for grub's stage_2 though.

Last edited by replica9000; 03-19-2015 at 07:22 PM.
 
Old 03-19-2015, 07:24 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'd make /boot way larger, or not use it on a partition at all.

Of course a gpt will be much larger so / will be huge as well as no extended.

Might be worth it to look at no swap on some systems too.
 
Old 03-19-2015, 07:44 PM   #4
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by replica9000 View Post
Yes. With GPT, you won't need to make an extended partition. You will need an addition small partition for grub's stage_2 though.
What size, mount point, and partition type do I need for this?
 
Old 03-19-2015, 07:47 PM   #5
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jefro View Post
I'd make /boot way larger, or not use it on a partition at all.

Of course a gpt will be much larger so / will be huge as well as no extended.

Might be worth it to look at no swap on some systems too.
Why does /boot need to be larger? Currently on my other computers with MBR, it uses less than 10% of the partition, only 10 MB. Also, / uses less than 150 MB. Will these require more space on GPT?

What is the reason for no swap? I set swap to at least 20 GB on my system, as some software requires huge amounts of memory and will run out without this setting.

Last edited by General; 03-19-2015 at 08:05 PM.
 
Old 03-20-2015, 12:11 AM   #6
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by General View Post
Why does /boot need to be larger? Currently on my other computers with MBR, it uses less than 10% of the partition, only 10 MB. Also, / uses less than 150 MB. Will these require more space on GPT?

What is the reason for no swap? I set swap to at least 20 GB on my system, as some software requires huge amounts of memory and will run out without this setting.
In UEFI/GPT a fat32 partition is used to hold boot loaders/kernel with EFI stub plus initrd/initramfs. Although you can just install only bootloader and keep kernel/initramfs files in separate boot partition. Size of boot partition depends on your requirement. Kernel images are 2-4MB, initrd 2MB size or more plus many updated kernels installed during the life of the system.

If you have large memory swap is optional. Usually it is created the same size as of ram (Useful for hibernation). Some programs use big amount of ram and if it's not available use a swap. For them using a swap with space as much required has to be created.
 
Old 03-20-2015, 03:25 AM   #7
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by General View Post
What size, mount point, and partition type do I need for this?
Type "EF02" in gdisk; ~1MiB is plenty.

I use the "spare" sectors from 34-2047 (1,007KiB) left over when the other partitions are correctly aligned.

EDIT: It is called a "BIOS boot partition" in gparted

Last edited by Head_on_a_Stick; 03-20-2015 at 04:57 PM.
 
Old 03-20-2015, 02:18 PM   #8
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,121
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by General View Post
Why does /boot need to be larger? Currently on my other computers with MBR, it uses less than 10% of the partition, only 10 MB. Also, / uses less than 150 MB. Will these require more space on GPT?

What is the reason for no swap? I set swap to at least 20 GB on my system, as some software requires huge amounts of memory and will run out without this setting.
You don't really need a swap partition. You could do a swap file instead, and place it on any of the other filesystems, except btrfs filesystems.
 
Old 03-20-2015, 08:35 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
"east 20 GB on my system, as some software requires huge amounts of memory and will run out without this setting."

Yes, knowing your system and how you use it determines how to use ram and swap. You may need it.

I've run out of /boot before. You have a huge drive, why limit a few is all I suggest.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Update changes MBR table to GPT - Linux no longer boots properly verayh Linux - Laptop and Netbook 12 03-16-2015 06:02 AM
[SOLVED] Installing Slackware with GPT partition table Skaperen Slackware 22 12-28-2014 06:33 AM
Migration from MSDOS partition table to GPT davepi Linux - General 4 09-30-2012 11:30 PM
Which distro(s) work with GPT partition table? ozegoods Linux - General 5 12-13-2010 06:57 PM
GUID Partition Table / Disk Label Slipstream2006 SUSE / openSUSE 2 07-13-2007 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:00 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