Boot from Net to reset root password

I needed to access my system from console and I did not have any local account. So, the only way I could access is thru root’s account. However, seems like the root password has changed. That is a shame! So, I need to boot the host — T2000 — from DVD/CDROM, mount the root partition of the root disk and clear the root password. I found a copy of cdrom, not a original SUN CD, but the T2000 is not reading it. I guess it–T2000–only reads DVD/CDROM that comes from SUN. There is an explanation for that, but that is outside the scope of this writing. So, having no other DVD around I decided to boot the system from the net in single usermode. To do that I decided to use the Solaris 10 DVD image that is sitting on one of my NetApp server, sitting in the same network, and create a jumpstart partition on a neighbor (same subnet as my T2000) and jump from that. But unfortunately my neighbor system did not have 140G disk space lying around. It probably has few gigs to spare. After doing some research I found out that I could break the whole jumpstart imstallation image in two pieces, a boot server and a install server. The small piece is the boot server that is only about 350MB and needs to reside on a solaris box. I used my neighbor system as the boot server and kept the NetApp server as the install server, since it already has the image of Sol 10.

So here are the steps I followed to achieve my goal

(root)@bootsrvr:~$ mount netapp:/vol/vol2/solaris /mnt/solaris

(root)@bootsrvr:~$ /mnt/solaris/Solaris_10/Tools/setup_install_server -b /jumpstart/boot

It takes about 30 mins or so to finish creating/copying the boot image

(root)@bootsrvr:~$ cd /jumpstart/boot/Solaris_10/Tools

(root)@bootsrvr:~$ ./add_install_client -i client_IP -e client's_ethernet _address -s netapp:/vol/vol2/solaris client_hostname sun4v

sun4v is the platform for T2000. Your platform may be sun4u

I need to share the whole boot partition. So I unshare the very specific partition and share the whole boot environment

(root)@bootsrvr:~$ unshare /jumpstart/boot/Solaris_10/Tools/Boot

(root)@bootsrvr:~$ share -F nfs -o ro,anon=0 /jumpstart/boot

Now T2000 is ready to boot from network

telnet to your T2000’s SP and type break -y to send it to OK prompt. Then to access the OBP type console -y. Now you are ready to boot the host from the net. Type boot net -s and wait about 5 or so minutes before you get dropped to the shell prompt in single user mode. Mount the root partition of the boot disk remove the DES from root’s shadow entry. Then sync twice and then umount the boot parition and reboot the box.

You now can console access to T2000 as root with no password. Please make sure to give your root a new password


13 Responses to Boot from Net to reset root password

  1. Great site…keep up the good work.

  2. TJensen says:

    Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work! πŸ™‚

  3. Your site was extremely interesting, especially since I was searching for thoughts on this subject last Thursday.

  4. kempozone says:

    Im sure many of you are like me and one of the first things you do in the morning is head here and check out the new post. Along with seeing the new posts, I’m also always checking out the blog roll rss feed and watching them grow, or shrink sometimes. In one of my past …but all in all excellent site. Keep it up!

  5. Donnieboy says:

    Just wanted to drop you a line to say, I enjoy reading your site. I thought about starting a blog myself but don’t have the time.
    Oh well maybe one day…. πŸ™‚

  6. HenleyL says:

    Hey, I really enjoy your blog. I have a blog too in a totally unrelated field (Online Stock Trading) but I like to check in here on a regular basis, just to see what’s going on and it’s always interesting to say the least. It’s always entertaining what people have to say.

  7. Your internet site came up in my search and I’m moved by what you have written on this theme. I am presently widening my inquiry and thus cannot contribute further, even so, I have bookmarked your web site and will be returning to keep up with any likely updates. Simply love it and thanks for permitting my input.

  8. Hey very nice blog!!….I’m an instant fan, I have bookmarked you and I’ll be checking back on a regular….See ya

    I’m Out! πŸ™‚

  9. tukkah says:

    You have to express more your opinion to attract more readers, because just a video or plain text without any personal approach is not that valuable. But it is just form my point of view

  10. Ownetammale says:

    Awesome Blog. I add this Blog to my bookmarks.

  11. zoki says:

    There is noticeably a bundle to find out about this. I assume you made sure nice points in options also.

  12. click here says:

    Heya, I just hopped over to your web-site through StumbleUpon. Not somthing I would generally browse, but I enjoyed your thoughts none the less. Thank you for making something well worth reading through.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s