LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-16-2017, 03:32 PM   #16
cianfa72
LQ Newbie
 
Registered: Dec 2016
Posts: 27

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by rknichols View Post
For RHEL/CentOS 6....Special filesystems critical to the boot sequence (/proc, /sys, ...) get mounted early by the fstab that is in the initrd prior to mounting the real root filesystem.
Thus you are saying initrd (actually initramfs cpio archive) stores an fstab file version used to mount boot critical filesystems (/proc, /sys, ...) prior to mounting the real root filesystem, right ?
 
Old 05-16-2017, 04:22 PM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,777

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by cianfa72 View Post
Thus you are saying initrd (actually initramfs cpio archive) stores an fstab file version used to mount boot critical filesystems (/proc, /sys, ...) prior to mounting the real root filesystem, right ?
Actually, I misspoke. I had one there at one time to do something special, but looking at it just now I see that the mounts for /proc, /sys, /dev, /dev/pts, and /dev/shm (and of course the initial mount of the root filesystem) are hard-coded in the init script in the initrd, and no fstab is needed or present. You can have an fstab there, and any special mount options for the early mount of the root filesystem will be handled. Plus, if you include the "fstab-sys" dracut module, you can have other filesystems mounted prior to turning control over to the real init process.

Last edited by rknichols; 05-16-2017 at 04:38 PM.
 
  


Reply

Tags
/etc/fstab, filesystem, mounting, rootfs



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
mounting root file system at boot: error w/ fstab (not fdisk) Drone4four Linux - General 9 12-14-2011 02:37 PM
`nouser' prevents anyone but root mounting filesystems in the /etc/fstab in linux Frustin AIX 1 07-11-2005 08:27 AM
suse 9.0 - mounting original filesystems from rescue system fredcll Linux - Distributions 1 05-10-2004 02:28 PM
System hangs when Mounting local filesystems, help please!! slopez Linux - General 3 03-05-2004 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:24 AM.

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