11-26-2013
cpio is not smart, it just opens directories and files, stat's inodes, reads or writes. Unmounted will either automount or not be available, as configured. It reads files when creating archives and can create dirs as well as files on unpack.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
by mistake I deleted all the files in
/usr2/symix/users/wfpsys/tpsc/ directory.
full backup has taken yesterday using "CPIO" command and I am able to view the files from tape also using cpio command.
but i couldn't able to restore back the files. Can you please help me immeditely by giving the... (2 Replies)
Discussion started by: wipro fluid power
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Please help me with the extraction of files from a cpio.
what I mean is basically I have received a file from someone i.e
rooh.cpio.
this file rooh.cpio contains various files in it.
I want to know how I can extract the files and copy them to a different directory .
Your quick... (2 Replies)
Discussion started by: rooh
2 Replies
3. UNIX for Advanced & Expert Users
i have a cpio.z file containing another cpio file .
I want to view the contents of the cpio file inside .
How to do it?
my parent cpio file invoked with cpio -itv looks some thing like
ompmum4 sbadgire> zcat 210_2122_ECP_03.cpio.Z| cpio -itv
-rwxr-xr-x 1 20519 20519 761856... (1 Reply)
Discussion started by: rraajjiibb
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
how can I restore files from a DAT using CPIO ?
If I make :
# mkdir save
# cd /save
# cpio -icumvdB </dev/rct0
Does the archive restore only in the directory /save ?
And how can I restore a specified file from the DAT with the cpio command ? How can I know the size of the... (2 Replies)
Discussion started by: kok
2 Replies
5. HP-UX
Hello all ...
I am an Oracle DBA that got stuck in a HP-UX SA role and need some help figuring out a UNIX problem. According to Oracle documentation, I am to issue the following command ...
cpio -idcmv <file_name>
However when I do, the server just hangs there and does nothing til I... (3 Replies)
Discussion started by: soestx
3 Replies
6. Solaris
Hello, I am running Solaris and trying to install Oracle 10g. I have the software on my server and I am trying to extract the file using cpio -idmv. It seems to be taking a very long time and when I monitor it using top, it is sleeping and the cpu is 0%. Any ideas as to what may be going on... (3 Replies)
Discussion started by: dkranes
3 Replies
7. UNIX and Linux Applications
Hi all, I have a trouble with CPIO:
I have a file called asa802. I extract it with the following command:
Then I tried to rebuild archive:
Filesizes are not identical !
As I saw these messages:
I tried:
And messages disappears, but filesizes are still not identical
Tried... (0 Replies)
Discussion started by: nekkro-kvlt
0 Replies
8. Homework & Coursework Questions
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies
9. Debian
Hi,
i am new here, and i have a question about cpio.
i have a scsi traban tape drive, and i will restore some files and directories.
Did anybody knows the instructions with cpio?
regards
Harald (1 Reply)
Discussion started by: gernsemer
1 Replies
10. UNIX for Advanced & Expert Users
Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: )
For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)
Discussion started by: am115998
1 Replies
LEARN ABOUT X11R4
systemd.automount
SYSTEMD.AUTOMOUNT(5) systemd.automount SYSTEMD.AUTOMOUNT(5)
NAME
systemd.automount - Automount unit configuration
SYNOPSIS
automount.automount
DESCRIPTION
A unit configuration file whose name ends in ".automount" encodes information about a file system automount point controlled and supervised
by systemd.
This man page lists the configuration options specific to this unit type. See systemd.unit(5) for the common options of all unit
configuration files. The common configuration items are configured in the generic [Unit] and [Install] sections. The automount specific
configuration options are configured in the [Automount] section.
Automount units must be named after the automount directories they control. Example: the automount point /home/lennart must be configured
in a unit file home-lennart.automount. For details about the escaping logic used to convert a file system path to a unit name see
systemd.unit(5). Note that automount units cannot be templated, nor is it possible to add multiple names to an automount unit by creating
additional symlinks to its unit file.
For each automount unit file a matching mount unit file (see systemd.mount(5) for details) must exist which is activated when the automount
path is accessed. Example: if an automount unit home-lennart.automount is active and the user accesses /home/lennart the mount unit
home-lennart.mount will be activated.
Automount units may be used to implement on-demand mounting as well as parallelized mounting of file systems.
IMPLICIT DEPENDENCIES
The following dependencies are implicitly added:
o If an automount unit is beneath another mount unit in the file system hierarchy, both a requirement and an ordering dependency between
both units are created automatically.
o An implicit Before= dependency is created between an automount unit and the mount unit it activates.
DEFAULT DEPENDENCIES
The following dependencies are added unless DefaultDependencies=no is set:
o Automount units acquire automatic Before= and Conflicts= on umount.target in order to be stopped during shutdown.
FSTAB
Automount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details).
For details how systemd parses /etc/fstab see systemd.mount(5).
If an automount point is configured in both /etc/fstab and a unit file, the configuration in the latter takes precedence.
OPTIONS
Automount files must include an [Automount] section, which carries information about the file system automount points it supervises. The
options specific to the [Automount] section of automount units are the following:
Where=
Takes an absolute path of a directory of the automount point. If the automount point does not exist at time that the automount point is
installed, it is created. This string must be reflected in the unit filename. (See above.) This option is mandatory.
DirectoryMode=
Directories of automount points (and any parent directories) are automatically created if needed. This option specifies the file system
access mode used when creating these directories. Takes an access mode in octal notation. Defaults to 0755.
TimeoutIdleSec=
Configures an idle timeout. Once the mount has been idle for the specified time, systemd will attempt to unmount. Takes a unit-less
value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout logic. The timeout is disabled by default.
SEE ALSO
systemd(1), systemctl(1), systemd.unit(5), systemd.mount(5), mount(8), automount(8), systemd.directives(7)
systemd 237 SYSTEMD.AUTOMOUNT(5)