1847225 Members
2548 Online
110263 Solutions
New Discussion

Re: Filesystem

 
Manikantan IB
Occasional Contributor

Filesystem

Hi

I just wanted to know during the booting process (HP-UX 10.x and above )... when does the root filesystem actually gets mounted?

To put it in a better manner
======================
As far as I know , the following takes place during the boot process
PDC -----> ISL ----->Secondary Loader (hpux) -----> Kernel -----> swapper -----> init

In this process where does the root filesystem gets mounted?

Thanks in Advance

Regards
M.
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: Filesystem

All local filesystems, those in /etc/fstab, are mounted with the startup script /sbin/rc1.d/S100localmount.

/ is not mounted prior to this. The system is booted, I think, by accessing the kernel in /stand without ever really mounting the filesystem. This is why /stand has to be an HFS file system.
Frederic Soriano
Honored Contributor

Re: Filesystem

Effectively, the /stand filesystem is not really mounted: the Secondary System Loader (aka "HPUX") is able to load an object file either from an HFS filesystem (Entering "hpux ll /stand" at the ISL prompt will show that HPUX is able to read HFS filesystems), or from a specified raw device, as specified in the AUTO file stored in the LIF area or in the "HPUX" command line.

Once kernel loaded, "HPUX" transfers control to it, as previously mentioned.

Best regards,
Fred.
James R. Ferguson
Acclaimed Contributor

Re: Filesystem

Hi:

I agree with Patrick [ who wears his new crown well ;-) ].

At the point that the kernel starts, it finds the root filesystem and mounts it read-only. The kernel then starts /sbin/pre_init_rc which runs /sbin/fsck. When fsck is complete, the kernel remounts the root filesystem as a read/write filesystem.

Following this, the kernel starts /sbin/init. This process, among many tasks, runs /sbin/bckeckrc which activates LVM (runs /sbin/lvmrc) and starts /sbin/rc which, in turn, initiates the general sequencer logic (/sbin/rcX.d), including the script to mount non-root filesystems.

...JRF...