1759048 Members
3718 Online
108879 Solutions
New Discussion юеВ

enabling root passwd

 
madhudeepan
Frequent Advisor

enabling root passwd

ver hp-ux 11i v3
root passwd has been diabled ,, so that i boot using hpux -is

when i used bdf no FS was mounted ,, by doubt is, if root Filesystem get mounted automatically or it need to be mounted using
cd /mount

mount /dev/vg00/lvol /mount

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: enabling root passwd

You will need to mount whatever filesystems you need when in single-user mode.

These could include /, /tmp, /usr, /opt and /var.

To mount these just do:

mount /
mount /tmp
mount /usr
mount /opt
mount /var
madhudeepan
Frequent Advisor

Re: enabling root passwd

do i need to fsck the FS before mounting
Patrick Wallek
Honored Contributor

Re: enabling root passwd

It can't hurt, but if the server was rebooted normally, you shouldn't need to.
Matti_Kurkela
Honored Contributor

Re: enabling root passwd

After booting to single user mode with "hpux -is", the easiest way to get allt the filesystems mounted is to use the command:

mountall

MK
MK
sen_ux
Valued Contributor

Re: enabling root passwd

I dont this you need to mount all to reset/enable the root passwd.!!
Mark S Meadows
Valued Contributor

Re: enabling root passwd

Hi,

The only two file systems mounted automatically when in single user mode are /stand and /, i.e. :

# bdf | grep vg00
/dev/vg00/lvol3 1048576 409472 636120 39% / <=== Mounted automatically
/dev/vg00/lvol1 912979 429694 391987 52% /stand <=== Mounted automatically
/dev/vg00/lvol7 4276224 3997272 278416 93% /var <=== Not Mounted
/dev/vg00/lvol6 3817472 3107088 704944 82% /usr <=== Not Mounted
/dev/vg00/lvol5 31703040 19004256 12620120 60% /tmp <=== Not Mounted
/dev/vg00/lvol4 10649600 8661936 1972192 81% /opt <=== Not Mounted
/dev/vg00/lvol8 2097152 651512 1434392 31% /home <=== Not Mounted

All other file systems need to be mounted manually by either :

mount ├в a or mountall

or on an individual basis as required :

mount /usr or mount /dev/vg00/lvol6 /usr

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Mark S Meadows
Valued Contributor

Re: enabling root passwd

That should be a mount -a or mountall.

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Suraj K Sankari
Honored Contributor

Re: enabling root passwd

HI,
>>do i need to fsck the FS before mounting

It's up to you if you wish you can run fsck or if you dont then no issue because your system was down with shutdown command.

Suraj
Mark S Meadows
Valued Contributor

Re: enabling root passwd

Hi,

If you use the command "mountall" a check on the file system is initiated first using fsck.

man 1m mountall

"Before each file system is mounted, a check is done using fsck (see fsck(1M)) to ensure that the file system is mountable. If the file system is not mountable, it is repaired by fsck before the mount is attempted."

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).