SUMMARY:Root Password For Metadisk Partition

From: Srikanth Muthyala (srikanth.muthyala_at_mannai.com.qa)
Date: 10/07/03

  • Next message: Jeff Allen: "/usr/lib/nfs/nfsd: unexpected TLI event"
    To: sunmanagers@sunmanagers.org
    Date: Tue, 7 Oct 2003 15:36:07 +0300
    
    

    Hi

    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.
    -----------------------------------------------------------------------------
    STEP-BY-STEP PROCEDURE:

    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
    this
       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
            *rootdev:/pseudo/md@0:0,0,blk

       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 -

       to

            /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
    system.

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

    6. Boot to single-user mode. THIS IS VERY IMPORTANT: YOU MUST
       BOOT TO SINGLE USER MODE TO AVOID FILESYSTEM CORRUPTION.

            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
       command

            # 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.

    Regards,

    Rich

    -----Original Message-----
    From: Srikanth Muthyala [mailto:srikanth.muthyala@mannai.com.qa]
    Sent: Tuesday, October 07, 2003 4:36 AM
    To: sunmanagers@sunmanagers.org
    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.

    TIA

    Srikanth Muthyala,
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Jeff Allen: "/usr/lib/nfs/nfsd: unexpected TLI event"

    Relevant Pages

    • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
      ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
      (SunManagers)
    • Re: How do I solve this boot.ini problem with WinXP?
      ... This is the current state of my boot.ini file in Win2K's Root: ... In a Microsoft dual boot ... or Multiple Hard Disk only one can be set as a "Active Partition". ...
      (microsoft.public.windowsxp.newusers)
    • Re: My troubles might been related to changing packages on repos
      ... supposed to be able to install it on / but I'll be damned if I ... reboot the system and boot ... Location' with a choice of MBR, Root Partition, Boot partition (if you ...
      (alt.os.linux.suse)
    • Re: Migrate ubuntu to another partition
      ... At boot time stage1 loads stage1_5, ... the / partition, and the bootloader is set up with rootpointing to the /boot partition. ... it will set up the menu.lst to issue the root command pointing to the root fs, and your /boot partition will just never be used for anything. ... If you manually edit menu.lst and change the root to the unused partition, then yea, you've broken your boot up, but you can still hit escape during boot and tell grub to use the correct root. ...
      (Ubuntu)
    • Re: [opensuse] LILO/Grub Problem
      ... root ... be the boot partition). ... Yes that LVM is hdb3 ...
      (SuSE)