[ug-bosug] Mounting a Solaris partition

Venky venky.tv at sun.com
Mon Jun 5 21:27:04 PDT 2006


> 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

Instead, null out just the password field and keep the rest of the
entry intact.

> 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 ?

Sounds good.

> 2. Does he need to provide an argument to the mount command for the
> file system type ?

Not required in most cases.  The default filesystem would be ufs.
[See /etc/default/fs ]  Like Binu mentioned, you can use fstyp(1m)
to check the filesystem type of the unmounted filesystem.

The mount option for specifying the FS type is "-F" (unlike Linux).

Venky.



More information about the ug-bosug mailing list