EFI Partition vs /boot in UEFI System

1,273

No, you do not need an additional, separate, /boot partition. /boot will reside on / on sda and that is fine.

Share:
1,273

Related videos on Youtube

leah
Author by

leah

Updated on September 18, 2022

Comments

  • leah
    leah almost 2 years

    I have a text file called games.txt that contains the details of many computer game matches. Each line represents:

    Player1Score, Player1Name, Player1Age, Player 2Score, Player2Name, Player2Age 
    

    Here is an example of 3 lines (there are a total of 150):

    1, John, 32, 5, Albert, 54
    3 Lisa, 33, 2, Michael, 36
    4 Jessica, 24, 1 Robert, 32
    

    I want to assign them to a structure array in which each element has 6 member variables using StreamReader. Here is the structure variable:

    Structure gameDetails
        Public Player1Score As Integer
        Public Player1Name As String
        Public Player1Age As Integer
        Public Player2Score As Integer
        Public Player2Name As String
        Public Player2Age As Integer
    End Structure
    

    I know that using a comma as a delimiter, I can record each variable as a different element in the array:

    Dim game() as String
    game() = inFile.ReadLine.Split(","c)
    

    which would result in each element being assigned in this way:

    game(0) = 1
    
    game(1) = John
    
    game(2) = 32
    

    Etc..

    Is there a way I can directly assign all the member variables to each element? Like maybe each comma separates a member variable, and a new line means a new element? Unfortunately, I am not familiar with the syntax/commands so I do not know how to approach this.

    Note that I cannot hard-code anything as the application is designed to take all the data from the .txt.

    • leah
      leah about 9 years
      Just commenting on a typo, 2 commas are missing in the example lines in the game.txt.
  • JChris
    JChris about 11 years
    So, the system will always have a "/boot" partition even if I have an UEFI PC + EFI Partition? In performance view, is it better to let the "/boot" reside on "/" in HDD or the best way is to create a separated "/boot" in the mSATA?
  • Panther
    Panther about 11 years
    Your system will always have a /boot directory. The directory can be on a separate partition and mounted at /boot or not. There is no need for a separate /boot partition unless you are using LVM or encryption (luks) or some RAID
  • JChris
    JChris about 11 years
    Thanks, I'll separete the "/boot", because I intend to encrypt the "/" and Swap using LUKS. I should point the "Device for boot loader installation" asked in Ubuntu's installation to the EFI partition (/dev/sdb1)?
  • Panther
    Panther about 11 years
    Probably /dev/sda
  • Csabi Vidó
    Csabi Vidó almost 10 years
    @Juan You may want have a look at how Gummiboot. It suggests storing the kernel images on the ESP (requires a larger ESP - 500 MB), eliminating the need for a separate boot partition. Unfortunately Gummiboot is currently not in the repositories and you would also need a script that generates the corresponding loader entries. I'd really wish that all of this was already in the repositories.