[ug-bosug] Mounting a Solaris partition

Sriram Narayanan sriramnrn at gmail.com
Mon Jun 5 09:04:17 PDT 2006


Hi all:

My friend Sandeep (whom I've CC'd on this mail, and who'll be joining
BoSUG soon) has a problem. At his office, they have an x86 box
containing Sun One, and the person who'd configured the root password
has left. He needs to reset that password (and I can vouch for him,
he's a sysadmin I've known for years :) ).

Here's what I told him.
1. Download Belenix
2. Use fdisk to find the root partition.
    fdisk -l /dev/rdsk/c0d0p0
    Mostly the partition would be /dev/rdsk/c0d0s2
3. Mount the partition at /mnt/s2
    mount /dev/rdsk/c0d0s2 /mnt/s2
4. Edit /mnt/s2/etc/shadow and knock off the entry for root
5. Reboot the box off the hard disk, and log on as root without having
to enter any password.

Questions:
1. Are the instructions given above correct ?
2. Does he need to provide an argument to the mount command for the
file system type ?

-- Sriram



More information about the ug-bosug mailing list