LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-06-2021, 06:17 PM   #16
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074

Quote:
Originally Posted by Emerson View Post
Nobody said we are limited to mainstream distros here. Are we now, because you say so?
Of course not. However, OP is a Ubuntu user, as mainstream as mainstream gets. Do you think you are helping a Ubuntu user, who almost certainly does not build his own software, probably doesn't know what a stub kernel is, and has asked about use of an apparently unfamiliar GUI tool to unmount a filesystem, discussing special things a few Gentoo or other advanced users might do as if they were normal for users who choose a mainstream distro?

Quote:
Originally Posted by Michael Piziak View Post
So, basically, if someone chose in disks to unmount at starup, then rebooted their system, Linux would tell it to mount anyways and boot up.
Sure! Linux will mount whatever /etc/fstab directs it to mount. If required filesystem(s) don't get mounted at boot, boot doesn't complete. For the purpose of getting Ubuntu started, the root filesystem must be mounted, but the ESP partition need not be.

Instead of unmounting after startup, what you could do is include the noauto option in fstab for the ESP partition, then mount it manually whenever some process needs for it to be mounted. Is your memory good enough, and your knowledge of what needs to happen when good enough, to know every time such an event is to occur? Would you know how to recover when you forget?
 
1 members found this post helpful.
Old 02-06-2021, 06:21 PM   #17
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I'm pretty sure the image in first post is not about unmounting ESP partition, I believe it is a GUI tool to set noauto in fstab. I may be wrong.
 
Old 02-08-2021, 04:08 PM   #18
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Emerson View Post
Yes it can contain kernels, mine does, and it can also contain initramfs - which contains modules. When you boot EFI stub kernels then they cannot be elsewhere.
Only if you have an abnormal install. The initramfs and vmlinuz images are in /boot (ext4). The ESP partition is at /boot/efi (vfat) on almost all systems. The boot loader, or what you call the stub kernel, resides in /boot/efi and the kernels reside in /boot.

While it is possible to have /boot on an ESP partition (vfat formatted) and thus not have a separate /boot/efi partition it is abnormal for that to be done. If you have done so, more power to you, but the vast majority of us follow the standard partitioning scheme as setup by the default install.

Although I agree that /boot/efi is not needed and remains unused after startup completes, I disagree with leaving it unmounted because doing so would prevent any update that involved a kernel update from completing. Only if the user was experienced enough to remount that partition prior to the update and remembered to do so could those updates be done.

I doubt the average user could do so and even most of us with years of experience would not favor giving ourselves the extra step of mounting the ESP just to do updates.

Thus I feel your advice to anyone to leave it unmounted is only asking for trouble in the future when users are unable to do updates properly. The cause of those problems would be advice given without forethought of consequences.

Last edited by computersavvy; 02-08-2021 at 04:30 PM.
 
1 members found this post helpful.
Old 02-09-2021, 06:16 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,551

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
Yes it can contain kernels, mine does, and it can also contain initramfs - which contains modules.
Slackware puts both the kernel and initrd files in its sub-directory in the EFI partition and it is definitely a major distribution, actually the oldest currently existing system. I'm not aware of any other Linux which does this.
 
Old 02-09-2021, 02:24 PM   #20
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
https://askubuntu.com/questions/6595...-esp-partition
 
Old 02-10-2021, 11:38 PM   #21
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Michael Piziak, if you listen to warning GUI disks app is safe I also use it.
 
Old 02-11-2021, 03:20 AM   #22
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by mrmazda View Post
Linux will mount whatever /etc/fstab directs it to mount. If required filesystem(s) don't get mounted at boot, boot doesn't complete. For the purpose of getting Ubuntu started, the root filesystem must be mounted, but the ESP partition need not be.
It should be noted that Linux does not mount the file systems in /etc/fstab. Those are mounted by mount, as part of the system initialisation by the init process.

What Linux does mount, using it's own functions, is the root filesystem (rootfs). Once init is loaded, it calls mount and remounts / and all other file systems in /etc/fstab.
Quote:
Originally Posted by yancek View Post
Slackware puts both the kernel and initrd files in its sub-directory in the EFI partition and it is definitely a major distribution, actually the oldest currently existing system. I'm not aware of any other Linux which does this.
I believe this is due to the use of elilo rather than grub?

Last edited by cynwulf; 02-11-2021 at 03:21 AM.
 
  


Reply



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
LXer: Dangerous keyboard app has more than 50 million downloads LXer Syndicated Linux News 1 06-29-2016 09:50 PM
[SOLVED] added a couple of new disks and now /dev/sd* disks are all messed up nass Linux - Hardware 4 10-30-2012 10:16 AM
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
[SOLVED] What implications does it have now that IDE disks are seen as "scsi" disks? harryhaller Slackware 8 03-28-2011 07:54 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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