[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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




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,
--

Reply to: