Re: How do I rebuild Grub/Boot/initramfs from a Live USB?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 28, 2022 at 3:31 PM Jake D <techsupport_accounts@xxxxxxxxxx> wrote:
> > Stab in the dark - within the chroot jail maybe it knows about the
> > mounted *tree* but it doesn't know about the mounts themselves?  In
> > other words, by doing the mounts outside of the chroot, you are
> > updating /etc/mnttab in the "Live USB" environment, but /etc/mnttab in
> > the chroot environment is not updated.
>
> I'm sorry but I really dont understand the terminology/jargon here.

"Live USB" - the environment you are in when booted off the Live USB,
before you enter the "chroot" command
"chroot jail" - the environment you are in after issuing the "chroot" command

/etc/mnttab - when you issue a "mount" command, information about the
mount is saved in /etc/mnttab.  But when you "chroot /mnt", you are in
the "chroot jail", and within that environment you cannot access the
/etc/mnttab from the "Live USB" environment; therefore the "chroot
jail" does not know the *details* about the mounts.  Even worse, the
/etc/mnttab file in the "chroot jail" (which is actually
/mnt/etc/mnttab) probably has stale data from the last time the
"chroot jail" environment was actually booted.  So from within the
"chroot jail" you can see the directory tree, but you can't see the
details of how they were mounted.

Hope this helps you understand the terminology/jargon.

> Are you saying I did the commands in the wrong order? I'm just following the instructions in the link I included.

I'm saying the order *may* be significant depending on what you want
to do within the "chroot jail".  If you are only doing simple file
operations, it may not matter.  But when you start doing OS-level
operations it may matter a great deal.  And you are attempting
OS-level operations.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux