17.04 hangs during boot at file system mount

Asked by doctordruidphd

Problem: 17.04 hangs during boot at file system mount. It gives a message that cycles between attempting to mount the various systems, then after 1 min 30sec times out, and drops to recovery shell. Blkid shows that all file systems have been detected. The only file system that is mounted is the root system, and that is mounted ro. If I try to mount manually, for example using "mount /dev/sda2", the mount command appears to execute with no errors, but the file system does not mount.

I also have 16.04 and debian jessie, and both boot and mount all file systems with no errors or problems.

This problem first appeared in 16.10, but I no longer have that on my system to test. It has gotten much worse in 17.04.

The 17.04 system was upgraded from 16.04 -> 16.10 -> 17.04. I do not have a spare partition to wipe for a "clean" install.

I have removed/purged the nvidia drivers, am using nouveau.

These file systems are ext4, no RAID, no uefi bios. Dell XPS630 amd64 system. All file systems have been fsck'd and are OK.

Strange thing is that sometimes 17.04 does boot, but most of the time it does not, hanging at the file system mount stage. Not sure what makes the difference.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Set the fstab entry to not mount at boot, then add:

mount /dev/sda2 &

In /etc/rc.local (above the exit 0 line). This should help.

Revision history for this message
doctordruidphd (doctordruidphd) said :
#2

This helps, but swap partitions do not mount.
I put noauto in their lines in fstab just like the other file systems, then put

swapon /dev/sda5
swapon /dev/sdb3

in rc.local, but they do not activate. I tried manually with sudo swapon /dev/sda5 but it still will not activate them.

Any way to get swap to work using this method?

Revision history for this message
doctordruidphd (doctordruidphd) said :
#3

Did a little reconfiguring of some other things, and now the swaps are mounting on bootup using
swapon /dev/sda5
etc in rc.local.

Well this doesn't address what the underlying problem is -- and I would like to know what that is -- but it does make booting the system possible.

Revision history for this message
doctordruidphd (doctordruidphd) said :
#4

Thanks actionparsnip, that solved my question.