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:
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:
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")
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
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT FREEBSD
msdosfs
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