ufsrestore, revisited


 
Thread Tools Search this Thread
Operating Systems Solaris ufsrestore, revisited
# 1  
Old 03-08-2005
ufsrestore, revisited

I just installed solaris 9 on a sunblade 150(sparc), and have it partitioned. I've been using ufsrestore to restore bring the config from my old system, to the sunblade. I'm not having any luck. The root directory restore seems to work. When I try to restore /usr, I get an "/usr/sbin/fsck not found, please use boot -b to recover or reinstall the system" error. I looked through some of my manuals and online, and found some info.

First step I've found is to mount the new files system to a temp mount point.

In my case, the first one I want is root(for me, it's on c0t0d0s0)
# mount /dev/dsk/c0t0d0s0
# mount: /dev/dsk/c0t0d0s0 is already mounted

Next step is to cd to the mounted directory
in my case, it's / (I'm already there)
I create the tape device entries
# tapes
# ufsrestore rvf /dev/rmt/0
(only one tape needed)

the root fs is restored, I perform an ls to verify.
#rm restoresymtable

I try to do a umount:
# umount /dev/dsk/c0t0d0s0
# / is busy

Once I saw that, I tried ps -eaf to see what was running, nothing on / . Got the same with fuser.

Am I missing something? Should I not have installed the OE first? Thanks for any input.
# 2  
Old 03-08-2005
First, are your ufsdumps done in single user mode? If not, they may be useless.

Second, if you are booting up the new server it should be from cdrom, not from the disks. I think you are booting from the disk because of the statements you make:
Quote:
# mount /dev/dsk/c0t0d0s0
mount: /dev/dsk/c0t0d0s0 is already mounted

Next step is to cd to the mounted directory
in my case, it's / (I'm already there)
You shouldn't 'be there' - c0t0d0s0 shouldn't be mounted - you didn't mount it to a temporary mount as suggested in your post. You have it mounted on it's normal mount point.

Take a look at this document on Sunsolve.
# 3  
Old 03-09-2005
Thanks for the input. I'm currently checking out the doc on SunSolve.
# 4  
Old 03-11-2005
Still having the same problem.

Tried boot -s cdrom
did a stop-a to get to the prom menu, noticed the partitions are still mounting on their own. Can't umount any of them. Am I just halting the system at the wrong time? I'm doing it after I see the solaris banner.
# 5  
Old 03-11-2005
What do you mean they are mounted? The OBP menu does not have any concept of mounted or unmounted filesystems.


What you need to do is:

boot cdrom -s

with for the single used command prompt (#)

mount /dev/dsk/c0t0d0s0 /mnt
cd /mnt
ufsrestore rvf /dev/rmt/0

then restore the boot block:

installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
reboot
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Conditional identification of suffixes moving from right to left: revisited

Dear all, I have a large database of names which I have sorted on reverse with a Perl Script. A sample is provided below agarsingh aghansingh akalsingh akamsingh akbareesingh akhamisingh akramysingh akuvsingh anchalusingh andaroosingh angadsingh anjawsingh angibai angobai angurbai... (11 Replies)
Discussion started by: gimley
11 Replies

2. UNIX for Dummies Questions & Answers

FIND command question revisited

I'm using this in AIX to find what file contains the value 'batch' in it, in all directories. find / -type f -exec grep -l batch {} /dev/null \; My question is, what if I only wanted to search *.sh files, and I wanted to pipe the results to a file called 'batch_find.txt'. How could I code... (3 Replies)
Discussion started by: NycUnxer
3 Replies

3. Solaris

ls display linux style, revisited!!!

hi all, ive downloaded ,built and installed coreutils from sunfreeware.com,in my quest to get the color display when ls is used(linux style)... After the pkg is installed,how do i use ls to get the color? I know its installed because i get a host of cmds that have been updated,l like this, ... (1 Reply)
Discussion started by: wrapster
1 Replies

4. Virtualization and Cloud Computing

BAM to SOA - Da? Buzzhype Revisited

Many readers have read the hype, experienced the Orwellian marketspeak, watched the positioning debates, and seen poorly managed software companies play the game of analyst-chasing (similar to ambulance chasing when you think about it). Finally, the up-to-date definitions, and hopefully a bit of... (0 Replies)
Discussion started by: Linux Bot
0 Replies

5. UNIX for Advanced & Expert Users

mailx on ksh revisited

I have read through all documents in FAQ and have run into an issue with sending an email with body message text and an email attachment. I have included what I have thus far and I can get the message body to send in the email to work only. I cannot understand the uuencode even after I read the... (5 Replies)
Discussion started by: tekline
5 Replies

6. Solaris

ufsrestore revisited,,

in ufsrestore how do i know which volume my selected folder or file exist?. (4 Replies)
Discussion started by: S26+
4 Replies

7. Shell Programming and Scripting

Simple Search and Replace - Revisited

I have a ascii file with lines like this: 240|^M\ ^M\^M\ Old Port Marketing order recd $62,664.- to ship 6/22/99^M\ when this record gets loaded into my database, the \ is stored literally and so the user sees carriage return \ (hex 0D 5C) when what i need is carriage return line feed (hex 0D... (1 Reply)
Discussion started by: Brandt
1 Replies
Login or Register to Ask a Question