Solved

Restoring root partition

Posted on 1998-04-18
4
901 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP on FreeBSD server 2 152
Shell Script on AIX 7 142
remove one line from a file in solaris 8 57
UNIX Script. Send email if failure 8 55
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

680 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