Removing not needed swap partition, slowing down ubuntu 16.4.3 boot

Asked by Paco Raxim on 2017-08-09

I have already solved the problem, but i think next release should contain it.

if /etc/fstab contains a partition which does not exist, it needs to timeout on boot, before continue.
I had to remove the swap line manually, and booting was an instant instead of 2-3 minutes wait.

I have 16GB ram and an 250GB SSD. (i had to get more space, and realized i'm not using swap at all)

Question information

English Edit question
Ubuntu boot Edit question
No assignee Edit question
Last query:
Last reply:
Paco Raxim (raxim1) said : #1

What the hell the /etc/fstab is checking, if he does not found any drive? (It seems to me looking for net, which is crazy for a swap)

If you manipulate your file system then fstab needs updating if it references a partition that no longer exists. It's a 2 part process. You can't just remove a file system and expect some service to be running to check a file systems presence and update fstab. It doesn't work like that.

Paco Raxim (raxim1) said : #3

Don't need to update fstab, but at least don't make this timeout effect, just ignore it right away.

My understanding is, that to check whether a device exist shouldn't be too difficult.

Your proposed idea would be welcoming anyway.:)

That's the missing part between windows and linux.:)

Linux is more flexible with its file systems. It makes the file systems transparent to users and services. You can mount how you want and when you like. Windows doesn't have this configurability and it's very frustrating when you work on both and know you can do what you want on Linux in seconds but windows needs a tonne of nonsense to do what you desire with the storage in a server.

There may be a timeout feature for fstab but I don't know it. Have a hunt around. If you come up blank then report a bug and it may get added.

Can you help with this problem?

Provide an answer of your own, or ask Paco Raxim for more information if necessary.

To post a message you must log in.