Sponsored Content
Full Discussion: Suse Linux mount problems ?
Top Forums UNIX for Advanced & Expert Users Suse Linux mount problems ? Post 16458 by darthur on Friday 1st of March 2002 03:31:17 PM
Old 03-01-2002
Suse Linux mount problems ?

We are experiencing several startup problems at boot time. In our
/etc/rc.d/boot script we have "swapon -a -v &> /dev/null/' (without the
quotes). We have also added echo statements to make it visible on the
HMC during IPL. The echo statements are seen but there no messages for
the swapon command (even with the added -v). /proc/swaps shows nothing.
Our fstab has the following:
root@KDLNXT01:/etc > cat /etc/fstab
/dev/dasda1 / ext2 defaults 1 1
/dev/dasdb1 /usr ext2 defaults 1 2
none /proc proc defaults 0 0
/dev/dasdc1 /vol1 ext2 defaults 0 1
/dev/dasdd1 /vol2 ext2 defaults 0 1
/dev/dasde1 /vol3 ext2 defaults 0 1
/vol1/swap/swapfs1 swap swap defaults 0 0
# End of YaST-generated fstab lines

When I do a "swapon -a" after the IPL all swap datasets are active. My
theory is that the swapon from boot script is failing maybe because the
volumes are not fully mounted when the command is started. We have
entered it in boot.local and everything works. Questions:
#1. Is there a reason why swapon command is not working from boot
script, but works from boot.local.
#2. After the echo messages appear on the HMC console, is there a way
to make them appear in a log somewhere. I check boot.msg, warn,
messages, allmessages and grep the whole /var/log directory and found
nothing. We are also experiencing problems with samba startup.
Sometimes it starts, sometimes it doesn't. We can never find any
messages. Samba is started in our /etc/rc.d/rc3.d/S91smb link. What do
I need to know to find these messages.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

a world of suse linux problems

1) how do i disable the graphic login in suse linux? 2) how do i disable the graphic boot-up in suse linux? 3) how do i disable the graphic console in suse linux? i think disabling graphic console will disable graphic booting, but what do i know, eh? 4) where is the dhcpcd directory and... (2 Replies)
Discussion started by: nydel
2 Replies

2. UNIX for Dummies Questions & Answers

Floppy will not mount on SUSE

I have installed SUSE 10 on a laptop that has a swappable CDROM/Floppy drive. When I was installing the OS my CDROM was connected. Later I tried to swap it with the Floppy and mount it but no success. Here is what I get: dell:/dev # mount -t msdos /dev/fd0 /mnt /dev/fd0: Invalid argument ... (0 Replies)
Discussion started by: reedcat
0 Replies

3. UNIX for Advanced & Expert Users

SuSe Linux Mount

Hi everyone, I am new to Linux and I hope to have some advise. Suppose I have 2 differnt users who require differnt mount drives. When user1 logs in, his required drives are mounted. When user2 logs in, user1's drives are unmounted and user2's drives are mounted. May I know how I can achieve... (2 Replies)
Discussion started by: viper81
2 Replies

4. OS X (Apple)

howto mount mac volume on suse 11

as the title states, i cant mount suse of apple volumes on either box. have tryed afpfs-ng but no love. anyone have a suggestion than samba (because i dislike MS) and NFS because i don't know jack about it..... yet thanks in advance julz (4 Replies)
Discussion started by: biorhythm
4 Replies
SWAPON(8)						     Linux Programmer's Manual							 SWAPON(8)

NAME
swapon, swapoff - enable/disable devices and files for paging and swapping SYNOPSIS
Get info: swapon -s [-h] [-V] Enable/disable: swapon [-f] [-p priority] [-v] specialfile... swapoff [-v] specialfile... Enable/disable all: swapon -a [-e] [-f] [-v] swapoff -a [-v] DESCRIPTION
swapon is used to specify devices on which paging and swapping are to take place. The device or file used is given by the specialfile parameter. It may be of the form -L label or -U uuid to indicate a device by label or uuid. Calls to swapon normally occur in the system boot scripts making all swap devices available, so that the paging and swapping activity is interleaved across several devices and files. 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). -a, --all All devices marked as ``swap'' in /etc/fstab are made available, except for those with the ``noauto'' option. Devices that are already being used as swap are silently skipped. -e, --ifexists Silently skip devices that do not exist. -f, --fixpgsz Reinitialize (exec /sbin/mkswap) the swap space if its page size does not match that of the the current running kernel. mkswap(2) initializes the whole device and does not check for bad blocks. -h, --help Provide help. -L label Use the partition that has the specified label. (For this, access to /proc/partitions is needed.) -p, --priority priority Specify the priority of the swap device. priority is a value between 0 and 32767. Higher numbers indicate higher priority. 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. -s, --summary Display swap usage summary by device. Equivalent to "cat /proc/swaps". Not available before Linux 2.1.25. -U uuid Use the partition that has the specified uuid. -v, --verbose Be verbose. -V, --version Display version. NOTES
You should not use swapon on a file with holes. Swap over NFS may not work. swapon automatically detects and rewrites swap space signature with old software suspend data (e.g S1SUSPEND, S2SUSPEND, ...). The problem is that if we don't do it, then we get data corruption the next time an attempt at unsuspending is made. swapon may not work correctly when using a swap file with some versions of btrfs. This is due to the swap file implementation in the ker- nel expecting to be able to write to the file directly, without the assistance of the file system. Since btrfs is a copy-on-write file system, the file location may not be static and corruption can result. Btrfs actively disallows the use of files on its file systems by refusing to map the file. This can be seen in the system log as "swapon: swapfile has holes." One possible workaround is to map the file to a loopback device. This will allow the file system to determine the mapping properly but may come with a performance impact. SEE ALSO
swapon(2), swapoff(2), fstab(5), init(8), mkswap(8), rc(8), mount(8) FILES
/dev/sd?? standard paging devices /etc/fstab ascii filesystem description table HISTORY
The swapon command appeared in 4.0BSD. AVAILABILITY
The swapon command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. Linux 1.x 25 September 1995 SWAPON(8)
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy