02-09-2014
That should be something like /sbin/udevadm What is the Linux Distribution and version?
9 More Discussions You Might Find Interesting
1. HP-UX
When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted.
How can I find out what process(es) is/are latching on the these mount points?
Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies
2. Gentoo
Hello,
I am trying to automate a task that I believe is easy. It is documented
for manual system administrative purposes here:
Gentoo Linux -- Installing the Gentoo Base System - chapter 6
I am attempting to do the following in a script:
# cd $TOP_OF_ROOT_FS
# mount -t proc none... (3 Replies)
Discussion started by: duderonomy
3 Replies
3. HP-UX
Greetings,
I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space.
I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies
4. OS X (Apple)
I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies
5. Shell Programming and Scripting
Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting.
basically having worked out how to mount and unmount disks using:
disktool -m *device* & disktool -e *device*
- and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies
6. Shell Programming and Scripting
As stated, I am looking into keeping my backup drive unmounted in normal windows use. Partly this is to address threats like cryptolocker. Since one of my backup drives is an internal drive, it will not likely afford any protection from such a threat. I am thinking of adding code to my rsync script... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
7. Shell Programming and Scripting
Heyas
At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it.
EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...).
Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies
8. Shell Programming and Scripting
Hi all,
I have a requirement to do an upgrade. As part of that upgrade I have to unmounts files in the fstab (there could be 100's), is there a way I can do this via script? The problem is, is that the mount points on every server will be different....
For example:
/u001/oradata/T865 ... (4 Replies)
Discussion started by: gartie
4 Replies
9. UNIX for Beginners Questions & Answers
We have 2 LPAR. LPAR #1 have a Application, Database Server process (ctree Server) and SAN+Physical Table. LPAR#2 has only Application.
Both Application process are connected to Database via C-tree Server Process (Running on LPAR #1..
We want to keep one Active C-tree Server and one Backup... (1 Reply)
Discussion started by: gabhanes
1 Replies
LEARN ABOUT REDHAT
swapon
SWAPON(8) Linux Programmer's Manual SWAPON(8)
NAME
swapon, swapoff - enable/disable devices and files for paging and swapping
SYNOPSIS
/sbin/swapon [-h -V]
/sbin/swapon -a [-v] [-e]
/sbin/swapon [-v] [-p priority] specialfile ...
/sbin/swapon [-s]
/sbin/swapoff [-h -V]
/sbin/swapoff -a
/sbin/swapoff specialfile ...
DESCRIPTION
Swapon is used to specify devices on which paging and swapping are to take place. Calls to swapon normally occur in the system multi-user
initialization file /etc/rc making all swap devices available, so that the paging and swapping activity is interleaved across several
devices and files.
Normally, the first form is used:
-h Provide help
-V Display version
-s Display swap usage summary by device. Equivalent to "cat /proc/swaps". Not available before Linux 2.1.25.
-a All devices marked as ``swap'' swap devices in /etc/fstab are made available. Devices that are already running as swap are silently
skipped.
-e When -a is used with swapon, -e makes swapon silently skip devices that do not exist.
-p priority
Specify priority for swapon. This option is only available if swapon was compiled under and is used under a 1.3.2 or later kernel.
priority is a value between 0 and 32767. See swapon(2) for a full description of swap priorities. Add pri=value to the option field
of /etc/fstab for use with swapon -a.
Swapoff disables swapping on the specified devices and files. When the -a flag is given, swapping is disabled on all known swap devices
and files (as found in /proc/swaps or /etc/fstab).
NOTE
You should not use swapon on a file with holes. Swap over NFS may not work.
SEE ALSO
swapon(2), swapoff(2), fstab(5), init(8), mkswap(8), rc(8), mount(8)
FILES
/dev/hd?? standard paging devices
/dev/sd?? standard (SCSI) paging devices
/etc/fstab ascii filesystem description table
HISTORY
The swapon command appeared in 4.0BSD.
Linux 1.x 25 September 1995 SWAPON(8)