Resizing the root partition in Solaris

Backup the root filesystem (preferably in single user mode)

# ufsdump 0f /mnt/backup.dmp /

To restore the root filesystem
Boot from the CD-ROM to single user mode

OK> boot cdrom -s

Resize the root partition using format

Mount the HDD to be restored to:

# mount -o rw -F ufs /dev/dsk/ /root_disk

Restore from the root backup location

# cd /root_disk
# ufsrestore rf /backup/backup.dmp
# cd /
# umount /root_disk

Check the disk

# fsck -y /dev/dsk/

If necessary install a boot block on the partition

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdks/

Reboot

# init 6

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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