Solved

Restoring root partition

Posted on 1998-04-18
4
896 Views
Last Modified: 2013-12-16
The situation: On a Sparc2 with Solaris 2.5, I am replacing the boot disk which has slice0 root, slice 1 swap, slice 7 data.  I ufsdump  the root and data partitions, then booted from cdrom in single user mode with "b cdrom -s".
The Question:  How do ufsrestore the root partition?  It appears that when booted from cdrom the root is mounted from the cdrom.  Therefore I cannot restore to root since it is already there and it is also read-only being that it on the cdrom.  Obviously i'm missing something here, what do i need to do to ufsrestore back to the root???
0
Comment
Question by:j_k
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
gormenghast earned 50 total points
ID: 1811775
Hi

Dont worry about the root filesystem when booted from CD, as this is not the same file system as the HD you are going to restore to.
Mount the root partition from your new HD (I think on the CD Solaris filesystem they provide a directory called "a" to mount to -- or use /mnt), cd into this directory then do a restore of your backed up root partition. Do the same for /usr if this is also a separate partition.
It is some time since I have done this and I have more comprehensive notes at the office, so if there is anything I have omitted to mention, then I will get back to you tomorrow.
0
 
LVL 3

Expert Comment

by:rickyr
ID: 1811776
Hi...
fsck /dev/rdsk/c0t3d0s0
mount /dev/dsk/c0t3d0s0 /a
cd /a
ufsrestore ivf /dev/rmt/#lbn
ufsrestore> add *
ufsrestore> extract
rm restoresymtable
cd /ur/platform/`uname -i`/lib/fs/ufs
installboot bootblk /dev/rdsk/c0t3d0s0
cd /
umount /a
fsck /dev/rdsk/c0t3d0s0
init 6
These are the note that Gormenghast left at the office
regards
0
 
LVL 3

Expert Comment

by:rickyr
ID: 1811777
woops
installboot bootblk /dev/rdsk/c0t3d0s0
should be the block device not the raw device
installboot bootblk /dev/dsk/c0t3d0s0
regards
0
 

Author Comment

by:j_k
ID: 1811778
I have not been able to do this yet,
Hope to get to it soon
May have more questions then!

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now