Sponsored Content
Operating Systems Solaris Can ufsdump create files that have a .vtoc and .dmp extension? Post 302980087 by hicksd8 on Wednesday 24th of August 2016 05:05:47 AM
Old 08-24-2016
You are demonstrating some knowledge here but it's difficult for us to judge whether you know the steps to take. Therefore, at a risk of telling you stuff you already know (for which I apologise) I'm going to start from ground zero on a disaster recovery of Solaris 8 using new hard drives.

Firstly though, if you boot into single user as you did, you should be able to verify the .dmp files as proper ufs dumps by using just the ufsrestore command with the t option. This should output a list of files in the archive(s).

Now, if you're working with brand new hard drives, if now already labelled, you will need to write Sun label. You will probably need to invoke the format command in expert mode to do that:

Code:
# format -e

The next step will be to write a vtoc (otherwise known as a partition table) to the disk. You do that using either 'format' (no expert mode required) to set it manually (long-hand) or 'fmthard' if you had a prior .vtoc file that made sense. Remember that slice 2 shows the capacity of the whole drive which you do NOT changed. Slices must NOT overlap.

Next, now you have a slice that you want to restore a ufsdump to you need to make a filesystem on that slice using:

Code:
# newfs <node name> (eg, /dev/dsk/c0t0d0s0)

Next, you now mount that slice on a mount point using the 'mount' command. Changing into that directory you should find only a 'lost+found' directory; nothing else.

Remaining in that directory you then just ufsrestore using the x (extract) option the whole .dmp file into the filesystem you've just mounted.

That's it.

If you are restoring a boot disk then you will also need to write out the 'bootblk'. Search this forum or Google for how to do that (and post back here if you need help).

I hope that helps but, as I say, it's difficult to judge your knowledge level. Just post back here and post your further questions. There's plenty of help available here.

---------- Post updated 24-08-16 at 10:05 AM ---------- Previous update was 23-08-16 at 09:42 PM ----------

This thread might be useful to add more information (as they say "Here's one I made earlier")

Restoring a system from a backup

Also, when booted in single user mode from a DVD, you have two mount points available on the DVD; /a and /mnt

I normally mount the device with the .dmp file (maybe a NFS mount from a remote machine containing the dump) on /mnt
I normally mount the newly created filesystem (slice) on /a

Change directory to /a and ufsrestore the dump.

Hope that helps.
 

10 More Discussions You Might Find Interesting

1. Solaris

exporting a dmp file (oracle)from unix

i want to export a database (full schema) so that I can import the database to a windows 2000 server. The database is sitting on a unix-sun solaris box ver 8.. What are the commands... I am a bit rusty at unix at the moment! Cheers E (4 Replies)
Discussion started by: etravels
4 Replies

2. Linux

Dmp

hi, anyone know how to enable dynamic mutipathing under redhat AS in a SAN-enviroment? thx a lot (1 Reply)
Discussion started by: pressy
1 Replies

3. Homework & Coursework Questions

Create file and then change the extension case.

Interpreter should be bash. 1. The problem statement, all variables and given/known data: I need to make a file (myText.txt or song.mp3 or cloud.tar.gz or whatever) and then change the extension to (myText.TXT , song.MP3, cloud.TAR.GZ). It would be good if I can add all information in... (4 Replies)
Discussion started by: Kdenmen
4 Replies

4. Solaris

Configure Veritas DMP

I am looking forward to configure Veritas DMP on Solaris-10. All pointers appreciated. Thanks, (3 Replies)
Discussion started by: menonk
3 Replies

5. Shell Programming and Scripting

Script to create EVIM template with SAS extension

I write lots of SAS programs and would like to create a script that allows me to have a template each time I create a new program file. Specs: I use EVIM for my editor. I run SAS in batch mode. We use RedHat 6. I don't use c shell. I want a script that will do the following: >... (3 Replies)
Discussion started by: starbecks
3 Replies

6. UNIX for Dummies Questions & Answers

How to list files with no extension together with *.prog files?

Hi, I know that to list files with no extension, we can use.. ls -1 | grep -v "\." And to list .prog files, we can use.. ls -1 *.prog or ls -1 | grep '.prog$' (4 Replies)
Discussion started by: adshocker
4 Replies

7. UNIX Desktop Questions & Answers

Problem with deleting .dmp file

Hi, everybody! I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a mistake, I wrote rm * 909* This is a part of my folder contents in unix before deleting drwxrwxr-x 2... (4 Replies)
Discussion started by: susan12
4 Replies

8. Shell Programming and Scripting

Python - glob () - How to grep same files with different extension files

Hi I Have a directory and i have some files below abc.txt abc.gif gtee.txt ghod.pid umni.log unmi.tar How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies

9. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies

10. Shell Programming and Scripting

Bash to create sub directories from specific file extension

In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies
MSDOSFS(5)						      BSD File Formats Manual							MSDOSFS(5)

NAME
msdosfs -- MS-DOS file system SYNOPSIS
options MSDOSFS DESCRIPTION
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems. The most common usage follows: mount -t msdosfs /dev/ada0sN /mnt where N is the partition number and /mnt is a mount point. Some users tend to create a /dos directory for msdosfs mount points. This helps to keep better track of the file system, and make it more easily accessible. It is possible to define an entry in /etc/fstab that looks similar to: /dev/ada0sN /dos msdosfs rw 0 0 This will mount an MS-DOS based partition at the /dos mount point during system boot. Using /mnt as a permanent mount point is not advised as its intention has always been to be a temporary mount point for floppy and ZIP disks. See hier(7) for more information on FreeBSD direc- tory layout. SEE ALSO
mount(2), unmount(2), mount(8), mount_msdosfs(8), umount(8) AUTHORS
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>. BSD
October 1, 2013 BSD
All times are GMT -4. The time now is 05:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy