The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swap partition showing mounted in df -h pshelke SUN Solaris 1 02-14-2008 02:47 AM
How to give UUID to a swap partition? Santi Linux 3 01-09-2008 06:59 AM
swap partition? byblyk Linux 7 05-28-2004 01:44 PM
Linux Swap Partition primal UNIX for Dummies Questions & Answers 2 01-07-2002 12:37 PM
Swap Partition Space I[X]ION UNIX for Dummies Questions & Answers 1 08-24-2001 10:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-23-2009
jack2 jack2 is offline
Banned
  
 

Join Date: Mar 2009
Posts: 47
Partition 1 swap not mounting ?

Hi,

running mount, I get the following, no part1 swap
as part1 swap has been created
and is listed below.
System works fine anyway.

As I cannot unmount part1, what is a standard procedure to make part1 on.

Jack

=============
..
[admin@oo root]$ free
total used free shared buffers cached
Mem: 30324 29532 792 0 4556 16084
-/+ buffers/cache: 8892 21432
Swap: 521968 0 521968
..
[admin@oo root]$ mkswap /dev/discs/disc0/part1
Setting up swapspace version 1, size = 534499328 bytes
..
[admin@oo root]$ swapon /dev/discs/disc0/part1
swapon: /dev/discs/disc0/part1: Device or resource busy
..
[admin@oo root]$ free
total used free shared buffers cached
Mem: 30324 29596 728 0 4604 16092
-/+ buffers/cache: 8900 21424
Swap: 521968 0 521968
[admin@oo root]$
================================
..
tried unmount Swap
..
[admin@oo root]$ umount /tmp/mnt/disc0_1
umount: Couldn't umount /tmp/mnt/disc0_1: No such file or directory
[admin@oo root]$
=============
..
[admin@oo /opt]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
[admin@oo /opt]$
..
======
[admin@oo /opt]$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3008 3008 0 100% /
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part2
1198832 944088 193844 83% /opt
/dev/discs/disc0/part3
2140816 534128 1497940 27% /tmp/mnt/disc0_3
============
..
[admin@oo /opt]$ fdisk -l
..
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4009 MB, 4009754624 bytes
145 heads, 48 sectors/track, 1125 cylinders
Units = cylinders of 6960 * 512 = 3563520 bytes
..
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 150 521976 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part2 151 500 1218000 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 501 1125 2175000 83 Linux
[admin@oo /opt]$
==============
..
  #2 (permalink)  
Old 03-23-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
A dedicated swap partition does not get mounted, it is just used and is a raw filesytem.
  #3 (permalink)  
Old 03-24-2009
jack2 jack2 is offline
Banned
  
 

Join Date: Mar 2009
Posts: 47
Quote:
Originally Posted by TonyFullerMalv View Post
A dedicated swap partition does not get mounted, it is just used and is a raw filesytem.
Exactly.
You are right.
Code:
[admin@blechbuechse root]$ swapoff /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
             total       used       free     shared    buffers     cached
Mem:         13964      13448        516          0       1548       7336
-/+ buffers/cache:       4564       9400
Swap:            0          0          0
[admin@blechbuechse root]$ swapon /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
             total       used       free     shared    buffers     cached
Mem:         13964      13696        268          0       1548       7336
-/+ buffers/cache:       4812       9152

Swap:       500432          0     500432
Darius
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0