PDA

View Full Version : 14.10 Upgrade to 15.04: systemd does not like SSD fstab optimizations



eems01
April 25th, 2015, 09:01 PM
Around the time of upgrading to 14.04 I migrated to an SSD and then proceeded to make the following optimizations in /etc/fstab:

# SSD tweak : temporary directories as tmpfs
tmpfs /tmp tmpfs defaults,noatime,mode=1777,size=20% 0 0
#tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
# SSD tweak : log directory as tmpfs
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/lock tmpfs defaults,noatime,mode=0755 0 0
tmpfs /dev/shm tmpfs defaults,size=20% 0 0

After the 15.04 upgrade, the new systemd boot would fail with "Failed to start Console System Startup Logging." and then land at a Welcome to emergency mode! and console prompt. Going through the suggested journalctl -xb there were a few Failed to mount /var/lock related issues.

I booted advanced using upstart which loaded fine and then commented out the fstab SSD optimizations. On reboot, the systemd boot completed without issues.

Is there any way to utilize the new systemd boot while still reducing unnecessary writes to SSD with tmpfs?

miguelalm
April 26th, 2015, 04:44 AM
Same Here! I had to comment de /var/lock line to boot. Some advice from the experts would be really apreciated! :)

fredda-71
April 26th, 2015, 05:42 PM
https://wiki.archlinux.org/index.php/Tmpfs

Take a look here to for tip on ssd with systemd.

https://mjanja.ch/2013/04/systemd-service-to-trim-free-ssd-cells-at-boot/
https://wiki.archlinux.org/index.php/Solid_State_Drives

eems01
May 16th, 2015, 04:11 PM
I fixed a console-kit failure by creating the /etc/tmpfiles.d/console-kit.conf file as described here:
https://bbs.archlinux.org/viewtopic.php?id=144271

dino99
May 16th, 2015, 04:47 PM
a tmpfs answer http://askubuntu.com/questions/173094/how-can-i-use-ram-storage-for-the-tmp-directory-and-how-to-set-a-maximum-amount