Swap not mounting sometimes

Bug #465083 reported by gondim
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned
upstart (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by gondim

Bug Description

My system is Ubuntu Server 9.10 new instalation.
My fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/vm-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=8a29f36c-21ce-42fb-8da6-f5570a8770a2 /boot ext2 defaults 0 2
#/dev/mapper/vm-swap_1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/cryptswap1 none swap sw 0 0

My system when rebooting sometimes mount swap and sometimes not mount.

(root@vm)[~]# date
Sex Out 30 14:08:35 BRST 2009
(root@vm)[~]# free
             total used free shared buffers cached
Mem: 896104 65236 830868 0 9220 31560
-/+ buffers/cache: 24456 871648
Swap: 2625528 0 2625528

after reboot

(root@vm)[~]# date
Sex Out 30 14:12:43 BRST 2009
(root@vm)[~]# free
             total used free shared buffers cached
Mem: 896104 64076 832028 0 9124 30956
-/+ buffers/cache: 23996 872108
Swap: 0 0 0
(root@vm)[~]#

Swap with zeros

Revision history for this message
Matthias Mailänder (mailaender) wrote :

I can confirm this on a Xubuntu 9.10 GUI installation. I get an error that "swap b75499a0... from /etc/fstab is not mounted" while watching the white/black boot-screen. I checked using gparted and it is really unmounted. This happened at every reboot so far.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1 -- converted during upgrade to edgy
UUID=3e29580d-44f8-43c6-8113-1846fd8400a9 / ext3 defaults,errors=remount-ro,user_xattr,relatime 0 1
# /dev/hda5 -- converted during upgrade to edgy
UUID=b75499a0-4951-4fae-b3a3-9f059b929a2b none swap sw 0 0

Revision history for this message
Matthias Mailänder (mailaender) wrote :

I guess it is a problem in upstart.

To be more precise the error says:
"one or more device in /etc/fstab not mounted
waiting for swap UUID=b75499a0-4951-4fae-b3a3-9f059b929a2b"

affects: ubuntu → upstart (Ubuntu)
Revision history for this message
gondim (gondim) wrote :

The problem only occurs when we choose to install a /home encrypted.

Revision history for this message
Matthias Mailänder (mailaender) wrote :

My /home is not encyrpted, so my problem might be unrelated.

Revision history for this message
gondim (gondim) wrote :

I see this bug as being serious. Because if the ram memory end and there is no swap, the system will fail.

Revision history for this message
Matthias Mailänder (mailaender) wrote :

My system is currently unusable as it boots into a state where the system kills all processes because there is not enough memory. It is hard to get any logs because multiple screens (grub, upstart text console) mix up. I saw "mountall: canceled" after the swap partition failed to mount. When I press ESC to get a root-console, the system simply boots further while I am trying to use the root-console - until it gets into the state where the RAM is overflowed.

Revision history for this message
Matthias Mailänder (mailaender) wrote :

The problem with encrypted filesystems might be related to Bug #460745 "Encrypted Swap no longer mounting".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.