Operating System - HP-UX
1844024 Members
2524 Online
110226 Solutions
New Discussion

directories mounted in single user mode

 
Vaish Raj
Advisor

directories mounted in single user mode

1)Wants to know what mount points are mounted by default when we boot into single user mode.

2)Can we mount all vg00 mount points after we login to single user mode. Is it safe to do and how

3)Commands for volume group/file system changes(extend/reduce) are found in which directory.

Thanks

9 REPLIES 9
Luk Vandenbussche
Honored Contributor

Re: directories mounted in single user mode

Hi,

For each volumegroup

vgchange -a y vgxx

Then type
mount -a (all the fs in /etc/fstab are mounted)
Arunvijai_4
Honored Contributor

Re: directories mounted in single user mode

Hi,

1) Only root FS (/) will be mounted when you boot into single user mode.

2) You can mount all vg00 after booting into single user mode

3) It should be under /sbin

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
James R. Ferguson
Acclaimed Contributor

Re: directories mounted in single user mode

Hi Vaish:

1 => The root directory

2 => yes, use 'mount all'

3 => /sbin since by design only the root directory is mounted in single-user mode

Regards!

...JRF...
Raj D.
Honored Contributor

Re: directories mounted in single user mode

Hi Vaish,

1] root (/) is mounted when we boot into single user mode.

2] Yes , We can mount all the mount points of vg00.

# vgchange -a y /dev/vg00
## fsck the FS.
## then mount it as per mount point mentioned in /etc/fstab


3] Are in /sbin directory.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Vaish Raj
Advisor

Re: directories mounted in single user mode

Before i close this i need small clarifications below:

1)What is the difference between /sbin
and /usr/sbin

2)Do all HP-UX system administration
commands are found under /sbin
and /usr/sbin OR do we find them in any
other folder ?

Thanks
Sanjay_6
Honored Contributor

Re: directories mounted in single user mode

Hi,

check this link,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062966874

the itrc doc id is UNX1000482.

hope this helps.

Regds
Raj D.
Honored Contributor

Re: directories mounted in single user mode

Hi Vaish ,

1] /sbin and /usr/sbin are not same.

/sbin is available when root (/) is mounted, and only few limited commands are available. 162 commands.

When /usr mounted , then /usr/sbin/ becomes available and all the commands are available , (i.e 455 commands , under /usr/sbin )


2] Few important system administration commands are found under /sbin ,
Like : insf , ioscan , vgdisplay , vgcreate , vgexport , vgimport , tar ( but not mt ) , passwd ( but not useradd , usermod )


When /usr is mounted/ available all the commands will be working, from /usr/sbin and /usr/bin .

Hope this will help.

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: directories mounted in single user mode

To amplify this a bit:

/sbin executables are compiled with archived libraries, that is, they do not require /usr/lib to be present. In single user mode, /usr/lib does not exist (yet) so simple commands like mount must be ready to run wuthout the normal libraries.

/usr/sbin contain root-only commands, generally specific to HP-UX as opposed to more common Unix commands that are found in /usr. But /usr/bin commands are compiled with shared libraries so the executables aree different even though the command performs the same tasks. Use the file command to compare the executables (ie, file /sbin/ioscan /usr/bin/ioscan)


Bill Hassell, sysadmin
Vaish Raj
Advisor

Re: directories mounted in single user mode

Thanks you all for sharing the information