Partition 1 swap not mounting ?


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Partition 1 swap not mounting ?
# 1  
Old 03-23-2009
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  
Old 03-23-2009
A dedicated swap partition does not get mounted, it is just used and is a raw filesytem.
# 3  
Old 03-24-2009
Quote:
Originally Posted by TonyFullerMalv
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Mounting partition

Dear All, I am new to solaris os,actually i am working as a database administrator for a company. Few days back when i was trying to start my solaris v480 server after a power failure i found /oracle partition fail to mount. root@npmsun # df -kh Filesystem size used avail... (1 Reply)
Discussion started by: monojcool
1 Replies

2. Solaris

Mounting UFS partition on multiple servers?

Hi, I have an application on a SAN partition presented to one server only. If I share this SAN partition with a second server as well, will that cause data corruption (the partition is formatted using ufs) ? (5 Replies)
Discussion started by: Mack1982
5 Replies

3. UNIX for Dummies Questions & Answers

Mounting remote partition

Hello when I examined the partition information of one of our servers I saw the following: 10.20.5.2:/ha0/critical Fstab has a similar entry. Seems that the server is accessing a partition on a remote machine. What else is required to setup a partition that accesses a remote machine... (2 Replies)
Discussion started by: mojoman
2 Replies

4. UNIX for Dummies Questions & Answers

Size of swap partition during installation

Greetings. I've been into computers since the '80s, but this is my first attempt at Linux. I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc. I don't really want... (22 Replies)
Discussion started by: fguy
22 Replies

5. AIX

Mounting Tape Drive from different partition

Dear all, I have a AIX server with logical 3 partitions and the server is connecting a tape drive. the first partition can successfully making a system backup to the tape but how can i fail to mount the tape to second and thrid partition. would anyone can help me to deal with it? what command... (3 Replies)
Discussion started by: rickhlwong
3 Replies

6. Solaris

swap partition showing mounted in df -h

Dear All Anyone can help me what is the problem of swap partition? swap partition is showing mounted in df -h command output. Regards prakash (1 Reply)
Discussion started by: pshelke
1 Replies

7. Linux

How to give UUID to a swap partition?

Dear Folks Is there anyway to give a UUID to a swap partition? mkswap on CentOS 5 (util-linux-2.13-0.45.el5_1.1) appears to override this option ;-( # swapoff -a # mkswap -L swap1 /dev/sda3 Setting up swapspace version 1, size = 4293591 kB LABEL=swap1, no uuid And there's no... (3 Replies)
Discussion started by: Santi
3 Replies

8. Linux

swap partition?

What does a swap partition do exactly? I was messing arround with a linux machine at my school and i deleted the swap partition using fdisk and then rebooted the machine and it worked fine and wrote a swap partition back in...lol. Is it a nessary part of the OS to use that partition? (7 Replies)
Discussion started by: byblyk
7 Replies

9. UNIX for Dummies Questions & Answers

Linux Swap Partition

How big do I set the swap partition when i'm setting up my hard drive to install RedHat. (Using Partition Magic) thanks! primal (2 Replies)
Discussion started by: primal
2 Replies

10. UNIX for Dummies Questions & Answers

Swap Partition Space

first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-) 1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory? i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies
Login or Register to Ask a Question