Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help Understanding Output and question about /dev/ Post 302332578 by mojoman on Thursday 9th of July 2009 01:36:56 PM
Old 07-09-2009
I have tried swapon -s as you suggested and I see nothing which is strange since CENTOS at boot reports that it mounts the SWAP partition. My fstab is:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda3 / ext3 defaults 1 1
/dev/sda1 /boot ext3 defaults 1 2
/dev/sdb1 /home8 ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0
~

WHen I try executing swapon -L SWAP-sda2 I get:
swapon: cannot find the device for SWAP-sda2

What should I do?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/dev question

RH 7.2 My machine has an LCD screen on the front of the panel. I've been given software to control some text on the LCD. The software checks /dev/tts/1 for the LCD. Since I don't have any /dev/tts directory, the developer told me just to make a link from the LCD to /dev/tts/1, but I don't... (4 Replies)
Discussion started by: jalburger
4 Replies

2. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

3. UNIX for Dummies Questions & Answers

/dev/fd question

what exactly is going on in this piece of code? what is the role of /dev/fd? i know that /dev/fd/0 is somehow linked to standard input, but that's the extent of my knowledge cat header.txt /dev/fd/0 footer.txt (2 Replies)
Discussion started by: momo.reina
2 Replies

4. UNIX for Dummies Questions & Answers

Understanding the output command

Could you please explain me whats happening in the below code, appreciate your help, Thank you. /product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_Pos_TradeInv_Records.out ... (5 Replies)
Discussion started by: Ariean
5 Replies

5. UNIX for Advanced & Expert Users

How to output 1s endlessly like /dev/zero?

/dev/zero can output 0's (null characters) endlessly. I am looking for a technique to output 1's (0xFF or 0b11111111) endlessly in a similar manner as /dev/zero. The following dd statement writes 4 terabytes of 0's to the drive /dev/sdb. This dd statement does not cause any memory shortage. ... (3 Replies)
Discussion started by: LessNux
3 Replies

6. Shell Programming and Scripting

Understanding the output of TOP

ok, so I have a script im running on a linux box that uses "egrep" a lot. now, when i run this script, i check the TOP to see how much system resource it is using. the "top" command gives the following output: last pid: 25384; load avg: 1.06, 1.04, 0.76; up 351+06:30:24 ... (0 Replies)
Discussion started by: SkySmart
0 Replies

7. UNIX for Dummies Questions & Answers

Understanding nm command output

After running nm command on any object file from out put can we get to know that wheather a symbol is a call to a function or definition of function ? I am searching a class and function definitions inside many .so files. I have 3 files which contain the symbol but I don't know wheather they... (2 Replies)
Discussion started by: yatrik007
2 Replies

8. Shell Programming and Scripting

Understanding the output of fwtmp

Hi all, First time post, so please be gentle. :) I'm writing a Solaris 10 ksh script to retrieve details of logins and logouts using specific user names. The details I want are quite basic - the username, the computer logged in from, and the date and time the user logged in and logged off.... (6 Replies)
Discussion started by: confusedAdmin
6 Replies

9. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

10. Shell Programming and Scripting

Simply question about capturing output to /dev/tty

Suppose another person wrote the following one-line shell script: echo $RANDOM > /dev/tty QUESTION #1: How can the random number, which is output to the terminal by this script, be captured in a variable? QUESTION #2: How can this be done in a cron job? Specific code, whether in ksh or... (1 Reply)
Discussion started by: Paul R
1 Replies
SYSTEMD.SWAP(5) 						   systemd.swap 						   SYSTEMD.SWAP(5)

NAME
systemd.swap - systemd swap configuration files SYNOPSIS
systemd.swap DESCRIPTION
A unit configuration file whose name ends in .swap encodes information about a swap device or file for memory paging 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 swap specific configuration options are configured in the [Swap] section. Swap units must be named after the devices (resp. files) they control. Example: the swap device /dev/sda5 must be configured in a unit file dev-sda5.swap. For details about the escaping logic used to convert a file system path to a unit name see systemd.unit(5). All swap units automatically get the appropriate dependencies on the devices (resp. on the mount points of the files) they are activated from. Swap units with DefaultDependencies= enabled implicitly acquire a conflicting dependency to umount.target so that they are deactivated at shutdown. FSTAB
Swap units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). If a swap device or file is configured in both /etc/fstab and a unit file the configuration in the latter takes precedence. Unless the noauto option is set for them all swap units configured in /etc/fstab are also added as requirements to swap.target, so that they are waited for and activated during boot. OPTIONS
Swap files must include a [Swap] section, which carries information about the swap device it supervises. A number of options that may be used in this section are shared with other unit types. These options are documented in systemd.exec(5). The options specific to the [Swap] section of swap units are the following: What= Takes an absolute path of a device node or file to use for paging. See swapon(8) for details. If this refers to a device node, a dependency on the respective device unit is automatically created. (See systemd.device(5) for more information.) If this refers to a file, a dependency on the respective mount unit is automatically created. (See systemd.mount(5) for more information.) This option is mandatory. Priority= Swap priority to use when activating the swap device or file. This takes an integer. This setting is optional. TimeoutSec= Configures the time to wait for the swapon command to finish. If a command does not exit within the configured time the swap will be considered failed and be shut down again. All commands still running will be terminated forcibly via SIGTERM, and after another delay of this time with SIGKILL. (See KillMode= below.) Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass 0 to disable the timeout logic. Defaults to 90s. KillMode= Specifies how processes of this swap shall be killed. One of control-group, process, none. This option is mostly equivalent to the KillMode= option of service files. See systemd.service(5) for details. KillSignal= Specifies which signal to use when killing a process of this swap. Defaults to SIGTERM. SendSIGKILL= Specifies whether to send SIGKILL to remaining processes after a timeout, if the normal shutdown procedure left processes of the swap around. Takes a boolean value. Defaults to "yes". SEE ALSO
systemd(1), systemctl(8), systemd.unit(5), systemd.exec(5), systemd.device(5), systemd.mount(5), swapon(8) AUTHOR
Lennart Poettering <lennart@poettering.net> Developer systemd 10/07/2013 SYSTEMD.SWAP(5)
All times are GMT -4. The time now is 06:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy