You are not logged in.

#1 2012-07-07 19:16:47

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 174

[SOLVED] Does EFI system partition need a entry in file system table?

Hello

I'm reading Grub2 wiki about boot in EFI using Grub2.
I don't find about if does EFI system partition (ESP) need a entry in file system table (fstab)?
Is it automaticly generated?

I have a SSD, and I just read in wikipedia that FAT can use TRIM.
So, this would be ok?

Label=XY|uuid=XY|dev/sdXY      /boot/efi    vfat    defaults,noatime,discard    0   1

Thank you

Edit: Yes, fstab as pointed by DSpider, changed.

Last edited by Alber (2012-07-07 22:28:22)

Offline

#2 2012-07-07 19:51:34

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Does EFI system partition need a entry in file system table?

I think you mean fstab, not partition table. Because that looks like an fstab entry to me. A partition table can be "msdos", "gpt", "mac", "bsd", "sun", "pc98", etc.

And no, the fstab is not automatically generated. I don't know what "discard" is supposed to do (it's not in the fstab wiki article), but I do know that only "/" should have "1" at the end. Everything else should have either "2" or "0".

https://wiki.archlinux.org/index.php/Fs … efinitions


It's not in the manual either. Run:

$ man fstab

Then press "/" (to search) and type "discard". So, yeah... there's nothing in official documentation. Did you read one of those questionable articles? I see that the "SSD" wiki article mentions it. Don't believe everything you read.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-07-07 20:15:57

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 174

Re: [SOLVED] Does EFI system partition need a entry in file system table?

I'll change the last 1 (fsck <pass>) to 2, I had not it in mind, thank you.

You're right, I'll must search more about FAT supporting TRIM, I don't understand very well how TRIM works and, maybe, more safe don't take that parameter 'discard' to enable it
('discard' enables TRIM). I think, haven't TRIM enabled, in that partition, will not be noticed.

Last edited by Alber (2012-07-07 20:23:15)

Offline

#4 2012-07-07 20:58:21

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 174

Re: [SOLVED] Does EFI system partition need a entry in file system table?

In a no deep search in Internet, looks like to me that FAT don't support TRIM. And <pass> 2.

This entry in fstab can be created at same time when you do the installation. Then get in that options o flags.

I mark it as solved. I'll use that entry in fstab without 'discard'.


Of course you can add anything more. I'll read it.

Last edited by Alber (2012-07-07 23:04:18)

Offline

#5 2012-07-08 01:35:14

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,110

Re: [SOLVED] Does EFI system partition need a entry in file system table?

FWIW, here's the /boot/efi line from my Arch Linux fstab:

UUID=F521-06D4 /boot/efi vfat defaults 0 1

And here's the /boot/efi line from the fstab automatically created by Fedora 17 when I let it do an EFI auto-install on an SSD:

UUID=A3CE-3DCD /boot/efi vfat umask=0077,shortname=winnt 0 0

I claim no expertise in the matter. If I remember correctly, I set the fstab for my /boot/efi partition based on a few examples I ran across in the docs. I can tell you that my EFI system is working fine and has been for several months.

I'd like to think that the Fedora devs actually know what they're doing, but they may not be going for optimal performance. My point really is that they don't have any performance- or longevity-related options for their /boot/efi partition. I don't know why they would opt against automatic fsck checking (the "0" in the right-most column).

Last edited by dhave (2012-07-08 01:35:56)


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#6 2012-07-08 02:34:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [SOLVED] Does EFI system partition need a entry in file system table?

Here's mine:

UUID=6620-B0D0  /boot/efi       vfat    defaults        0       2

You shouldn't use a 1 as DSpider said, except for /. (Note that my EFI partition has a non-standard filesystem but it shouldn't affect the fstab line.)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#7 2012-07-08 14:24:37

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 174

Re: [SOLVED] Does EFI system partition need a entry in file system table?

Thanks. I'll have in mind all yours contributions.

I'll do first a dummy installation try in an USB, as planned. I'll report if I have any problem.

By now:

Label=XY|uuid=XY|dev/sdXY      /boot/efi    vfat    defaults    0   2 

I think that DSpider say the same, 1 only in /. Just edited about fstab in the first message.

Last edited by Alber (2012-07-08 14:30:34)

Offline

#8 2012-07-08 15:57:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [SOLVED] Does EFI system partition need a entry in file system table?

Sorry, I meant "As DSpider said, you shouldn't use a 1..." but the way I put it was ambiguous and suggested s/he claimed you should do. Apologies.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#9 2012-07-08 20:03:02

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 174

Re: [SOLVED] Does EFI system partition need a entry in file system table?

I really like this forum atmosphere of understanding.

By the way my english is far too bad. I haven't to mention. LOL.

Last edited by Alber (2012-07-08 20:35:30)

Offline

#10 2012-07-08 20:50:34

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,110

Re: [SOLVED] Does EFI system partition need a entry in file system table?

Alber wrote:

I really like this forum atmosphere of understanding.

By the way my english is far too bad. I haven't to mention. LOL.

No need to worry. I think everyone understands you perfectly.


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

Board footer

Powered by FluxBB