07-08-2009
That
might restore 1 file at a time, if you know what you're looking for, and how much text there was before and after your search string. It probably won't work for binaries (unless you're lucky), and if any process has written to the blocks previously occupied by that file you'll get a lot of garbage (if anything at all).
In short: you've probably learned 2 very valuable lessons:
- Always keep a current working backup
- When using rm/fdisk/dd/... as root, think at least twice before you hit enter
9 More Discussions You Might Find Interesting
1. Cybersecurity
Hello All,
I have an application user (INFORMIX). This is a system user. It runs processes That I am unaware of. I need to discover the user's password. I can't change it, because it will affect the processes it's runnig. Is there a utility that will allow me to 'su' to that user from root... (3 Replies)
Discussion started by: SmartJuniorUnix
3 Replies
2. Shell Programming and Scripting
Hi everybody,
I have a line output (after doing a awk) which is like:
10.0.0.1 : 0:4:45:a7:67:5
10.0.0.58 : 0:e:aa:18:f9:42
...
how can i recover all data because i want to use each line separetely
if anyone has an idea, thanks in advance (1 Reply)
Discussion started by: mips
1 Replies
3. Solaris
Hi,
I need to mount the Solaris 8 OS filesystem in order to replace a lib, concretely /usr/lib/ld.so.1.
I'm able to boot in single mode with the installation CD, but I'm afraid to mount the root partition because I don't want to risk break the mirror.
I tried to follow Performing System... (2 Replies)
Discussion started by: ricardo.amm
2 Replies
4. Ubuntu
Hi! I'm using Ubuntu Karmic and I lost libstdc++.so.6. Is there a way to recover it?..
Thanks in advance (0 Replies)
Discussion started by: Sapfeer
0 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys, just need a little bit of guidance here...
i need to recover data from a backup tape using the recover command. can someone please give some pointers as to where to start?
Thank you (2 Replies)
Discussion started by: brian112
2 Replies
6. Solaris
Hi Admins,
Server : V890 sparc
OS : 9
I want to initiate the OS backup. We use SUN storedge tape drive.
What backup mode i should use to take the os backup and what is the exact command for the same.
Regards
newsol (0 Replies)
Discussion started by: newsol
0 Replies
7. UNIX for Advanced & Expert Users
rm -rf .bash_history some one ran rm -rf .bash_history on my Linux server(SUSE),I can see this command being run in current history, but I want the OLD history as well,can I recover the old history back. (9 Replies)
Discussion started by: Ankit Bansal
9 Replies
8. Solaris
Consider a situation where in you have used rm command wrongly in a particular directory say
rm -r *
and we don't have any backup of those files which ever are deleted.
NOTE: I'm not facing situation like this but wanted to know what all options are available for such a situation.
is... (5 Replies)
Discussion started by: Gautham
5 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
How to change a host id in solaris 10
2. Relevant commands, code, scripts, algorithms:
3. The attempts... (1 Reply)
Discussion started by: NwStud52
1 Replies
LEARN ABOUT OPENSOLARIS
root_archive
root_archive(1M) System Administration Commands root_archive(1M)
NAME
root_archive - manage bootable miniroot archives
SYNOPSIS
/boot/solaris/bin/root_archive pack archive root
/boot/solaris/bin/root_archive unpack archive root
/boot/solaris/bin/root_archive packmedia solaris_image root
/boot/solaris/bin/root_archive unpackmedia solaris_image root
DESCRIPTION
The root_archive utility is used to manage bootable miniroot archives and is currently only available on x86 platforms. The utility can
pack and unpack boot/root archives in both ufs and hsfs (iso9660) format. It will always generate ufs archives.
root_archive also uses the lofi file driver to export a file as a block device (see lofi(7D)) and mount to mount or unmount file systems
and remote resources (see mount(1M)). root_archive requires the same privileges that are needed to run these commands.
SUBCOMMANDS
The root_archive command has the following subcommands:
pack archive root Pack from the image found under the root directory to the archive.
unpack archive root
Unpack from the archive to an unpacked image under the root directory.
packmedia solaris_image root
Pack the solaris image to the root directory.
unpackmedia solaris_image root
Unpack the solaris image from the root directory.
For packmedia and unpackmedia, other items that do not go into the ramdisk image are copied or uncopied (see cpio(1)) as well. Specifi-
cally, this includes all the packaging databases needed for pkgadd and the other packaging utilities to succeed which are not used in the
running and hence pruned to conserve memory.
EXAMPLES
Example 1 Unpacking the Solaris x86 install image
The following command unpacks the current Solaris image from the root directory:
# root_archive unpackmedia
/export/nv/solarisdvd.nvx_dvd/latest /export/Boot
Where /export/nv/solarisdvd.nvx_dvd/latest represents a path to a Solaris x86 install image and /export/Boot is a directory that will be
purged or created, as necessary.
Example 2 Packing the Solaris x86 install image
The following command packs the current Solaris image to the root directory:
# root_archive packmedia
/export/nv/solarisdvd.nvx_dvd/latest /export/Boot
EXIT STATUS
The following exit values are returned:
0 The command completed successfully.
1 The command exited due to an error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO
cpio(1), bootadm(1M), mount(1M), attributes(5), lofi(7D)
SunOS 5.11 26 Sep 2005 root_archive(1M)