Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Swap does not mount [swapon failed: Device or resource busy]

1,435 views
Skip to first unread message

Param

unread,
Sep 14, 2011, 5:20:01 PM9/14/11
to


Hi,

The swap partition did not mount post-installation (Debian "Squeeze" (Xfce)).
Created a 2nd swap partition, & planned to delete the earlier swap partition. The 2nd swap partition doesn't mount either.

(Been using Debian (my 1st intro to Linux) for < 3 weeks. If
a) I'm missing any blindingly obvious solution(s)
b) this post should have been posted under a different topic/forum

then please let me know.)

Further info:
Followed the instructions at http://web.mit.edu/rhel-doc/5/RHEL-5-ma ... dding.html
Name of logical volume: HU

/etc/fstab: (commented out the earlier swap partition)
---------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/HU-root / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=50ed87f2-905e-4780-b867-a8e0831e3db8 /boot ext3 defaults 0 2
/dev/mapper/HU-home /home ext3 defaults,user_xattr 0 2

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0

#/dev/mapper/HU-swap none swap sw 0 0
#2nd_swap
/dev/mapper/HU-swap2 swap swap defaults 0 0
------------------------------------------------------------------------------------------------------------------------------

(tried /dev/HU/swap2 instead of /dev/mapper/HU-swap2. Did not work.)

Output of fdisk -l
Code: Select all
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xed1f86f7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2   *          64          77      102400    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3              77        3481    27343750    7  HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4            3481       14594    89261057    5  Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5            3481        3572      732160   83  Linux
/dev/sda6            3573       14594    88527872   8e  Linux LVM


Output of swapon -a
Code: Select all
swapon: /dev/mapper/HU-swap2: swapon failed: Device or resource busy


Output of swapon -va
Code: Select all
swapon on /dev/mapper/HU-swap2
swapon: /dev/mapper/HU-swap2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/mapper/HU-swap2: pagesize=4096, swapsize=2147483648, devsize=2147483648
swapon: /dev/mapper/HU-swap2: swapon failed: Device or resource busy


Output of swapon -s
Code: Select all
swapon on /dev/mapper/HU-swap2
Filename            Type      Size   Used   Priority
/dev/dm-3                               partition   2097144   0   42
Output of mount /dev/HU/swap2
mount: mount point none does not exist



How can I mount swap upon booting? Would really appreciate help/suggestions.
Thanks for your time and patience,
--

Walter Hurry

unread,
Sep 14, 2011, 5:30:02 PM9/14/11
to
On Wed, 14 Sep 2011 16:54:29 -0400, Param wrote:

Please post the outputs of:

cat /etc/fstab

sudo fdisk -l



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/j4r6am$4r3$2...@dough.gmane.org

Jochen Spieker

unread,
Sep 15, 2011, 4:40:02 AM9/15/11
to
Param:
>
> The swap partition did not mount post-installation (Debian "Squeeze"
> (Xfce)).
> Created a 2nd swap partition, & planned to delete the earlier swap
> partition. The 2nd swap partition doesn't mount either.

Strange. Did you set up encryption as well?

What might help is the output of pvs, vgs and lvs (everything as root or
using sudo). If you cannot think of anything else to try, please remove
swap2 again and document all the steps you take to create it again (all
commands including complete output).

> (Been using Debian (my 1st intro to Linux) for < 3 weeks.

Welcome on board! Using Debian as the first distro is a wise choice. I
did the same and never seriously considered using anything else.

> If
> a) I'm missing any blindingly obvious solution(s)
> b) this post should have been posted under a different topic/forum
>
> then please let me know.)

No, eveyyhing is fine.

> Further info:
> Followed the instructions at http://web.mit.edu/rhel-doc/5/RHEL-5-ma ...
> dding.html<http://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/s1-swap-adding.html>

Just a general advice: you can save yourself some trouble by preferring
Debian-related documentation. The link above applies to Debian as well,
but with only a few weeks of Linux experience you probably cannot always
tell whether you should be doing something "the Debian way" or not.

> #/dev/mapper/HU-swap none swap sw 0 0
> #2nd_swap
> /dev/mapper/HU-swap2 swap swap defaults 0 0
^^^^ ^^^^^^^^

Your entry for swap2 differs from the entry generated by the installer.
It should still wotrk, though. I just tried it myself.

> (tried /dev/HU/swap2 instead of /dev/mapper/HU-swap2. Did not work.)

/dev/HU/swap2 is just a symlink anyway.

> Output of swapon -s
> Code: Select all <http://forums.debian.net/viewtopic.php?f=5&t=70280#> swapon
> on /dev/mapper/HU-swap2
> Filename Type Size Used Priority
> /dev/dm-3 partition 2097144 0 42

This looks like you already have active swap. Use 'ls -l /dev/mapper' to
see which LV is /dev/dm3.

> Output of mount /dev/HU/swap2
> mount: mount point none does not exist

You cannot use 'mount' to activate swap. This isn't supposed to work.
Using 'swapon' is correct.

J.
--
Ultimately, the Millenium Dome is a spectacular monument of the
doublethink of our times.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
signature.asc
0 new messages