SUMMARY:Root Password For Metadisk Partition

From: Srikanth Muthyala <>
Date: Tue Oct 07 2003 - 08:43:38 EDT

I just over looked this issue. I was confused because it involved 
Mirroring. I have reset the password using the same old traditional way.
This is sent by Rich Bishop and also i thank"s all who responded to it.

Please ensure that you substitute your system disk name (i.e., c0t0d0)
in the example commands below.  We use "c0t0d0".

1. Boot from CD-ROM and perform the file recovery necessary to boot
   system.  This may be as drastic as running 'newfs' and 'ufsrestore'
   on each slice of the boot disk, or as simple as editing the
   /etc/passwd file to remove an unknown root password.  Remember that
   if you are restoring the root partition from a backup tape, you'll
   need to install the bootblock as well.  NOTE: you may not have to
   do any recovery here at all... it all depends on WHY your system
   will not boot.

2. Mount the root partition onto /a.  You might have to run 'fsck' on 
   partition before you can mount it.

        # mount /dev/dsk/c0t0d0s0 /a

3. Edit the /etc/system file and remove the "rootdev" line shown below:

        # vi /a/etc/system

   Don't comment out this line.  Actually remove it.

4. In the /etc/vfstab file, replace the lines for the system
   filesystem meta-devices with their underlying partitions.

   For example, change lines from 

        /dev/md/dsk/d0     /dev/md/rdsk/d0    / ufs 1 no -


        /dev/dsk/c0t0d0s0  /dev/rdsk/c0t0d0s0 / ufs 1 no -

   ONLY change the lines for root (/) and the filesystems which were
   affected by the actions you took in step 1, above.  All other
   metadevices may stay as is in this file.

5. Unmount the root and check the root filesystem.  Then stop the 

        # cd /
        # umount /a
        # fsck /dev/rdsk/c0t0d0s0
        # STOP-A (L1-A)

6. Boot to single-user mode.  THIS IS VERY IMPORTANT: YOU MUST

        ok boot -sw

   If the system does not boot to single user mode, you may have made a
   mistake in the above steps.

7. Enter the root password when you are prompted.  Once in
   single-user mode, you must clear the metamirrors and all the
   sub-mirrors of all the system filesystems.

   For example, if you have to clear the root (/), /usr, and /var
   metamirrors, and they are d0, d1, and d2, respectively, run the

        # metaclear -f -r d0 d1 d2

   This will not only clear the metamirrors but also the
   submirrors which are part of these mirrors.

8. Once the metamirrors are cleared, continue the boot up to multiuser
   mode by issuing either a CTRL-D or entering

        # exit

9. Now everything should be as it was, except that the system
   partitions are on the underlying partitions and are not mirrored.
   You will simply need to re-create the metadevices for the root
   mirror as you had originally. 



-----Original Message-----
From: Srikanth Muthyala [] 
Sent: Tuesday, October 07, 2003 4:36 AM
Subject: Root Password For Metadisk Partition

Hi Guru's

I want to recover my root password. Right now i have mirrored my root disk 

using Solstice Disk Suite Admin ,  So my root disk mount path is 
/dev/md/dsk/d0.How to mount this partition , when i boot with cdrom using 
single user mode and change the password. 


Srikanth Muthyala,
sunmanagers mailing list
sunmanagers mailing list
Received on Tue Oct 7 08:43:30 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:23 EST