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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-06-2021, 06:17 PM
|
#16
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
|
Quote:
Originally Posted by Emerson
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
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.
|
02-06-2021, 06:21 PM
|
#17
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
02-08-2021, 04:08 PM
|
#18
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by Emerson
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.
|
02-09-2021, 06:16 AM
|
#19
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,394
|
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.
|
|
|
02-09-2021, 02:24 PM
|
#20
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
|
|
|
02-10-2021, 11:38 PM
|
#21
|
Member
Registered: Dec 2020
Posts: 102
Rep:
|
Michael Piziak, if you listen to warning GUI disks app is safe I also use it.
|
|
|
02-11-2021, 03:20 AM
|
#22
|
Senior Member
Registered: Apr 2005
Posts: 2,727
|
Quote:
Originally Posted by mrmazda
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
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.
|
|
|
All times are GMT -5. The time now is 05:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|