FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got FC15 installed. Boot time was initially normal, but it now takes over 30 minutes to boot. I may have caused this problem with a lazy test program.
During boot I see the delay at point marked *DELAY* in this partial /var/log/boot.log:
...
Started /home.
Started Reconfigure the system on administrator request.
Started Mark the need to relabel after reboot.
Starting Enable all detected swap partitions...
Started Relabel all filesystems, if necessary.
Starting Recreate Volatile Files and Directories...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Load Random Seed...
Started Enable all detected swap partitions.
Started Tell Plymouth To Write Out Runtime Data.
Started Load Random Seed.
*DELAY*
Started Recreate Volatile Files and Directories.
Starting Restore Sound Card State...
Starting Console System Startup Logging...
Starting Bootup unhack...
Starting Job spooling tools...
Started Job spooling tools.
...
This information lead me to check the /tmp directory. I initially found it full of hundreds of thousands of files (mostly empty) that were created by a lazy test program that I had been using.
Deleting those files took quite a long time, but did nothing to improve the boot time.
The size information for /tmp is a bit strange, but I am not familiar with what is normal for the directory:
#
# /etc/fstab
# Created by anaconda on Mon Jul 25 09:32:22 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=35678a95-ac6b-42bb-ad23-fb12ca43dd48 /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
#
The mount command shows many tmpfs file systems:
[root@localhost ~]# mount | grep tmp
udev on /dev type devtmpfs (rw,nosuid,relatime,seclabel,size=4084672k,nr_inodes=1021168,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime,seclabel)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=system_ubject_r:mnt_t:s0,seclabel,mode=755)
/dev/mapper/VolGroup-lv_root on /tmp type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
/dev/mapper/VolGroup-lv_root on /var/tmp type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
[root@localhost ~]# mount
/proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime,seclabel)
udev on /dev type devtmpfs (rw,nosuid,relatime,seclabel,size=4084672k,nr_inodes=1021168,mode=755)
devpts on /dev/pts type devpts (rw,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime,seclabel)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
/dev/mapper/VolGroup-lv_root on / type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
selinuxfs on /selinux type selinuxfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/ns type cgroup (rw,nosuid,nodev,noexec,relatime,ns)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /dev/hugepages type autofs (rw,relatime,fd=29,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /sys/kernel/security type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /sys/kernel/debug type autofs (rw,relatime,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
systemd-1 on /dev/mqueue type autofs (rw,relatime,fd=34,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=system_ubject_r:mnt_t:s0,seclabel,mode=755)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
/dev/mapper/VolGroup-lv_home on /home type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
/dev/mapper/VolGroup-lv_root on /tmp type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
/dev/mapper/VolGroup-lv_root on /var/tmp type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
/dev/mapper/VolGroup-lv_home on /home type ext4 (rw,relatime,seclabel,barrier=1,data=ordered)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
[root@localhost ~]#
The /var/log/messages has one note about tmp.mount:
/var/log/messages:Jul 27 08:28:49 localhost kernel: [35660.007323] systemd[1]: tmp.mount mount process exited, code=exited status=1
/var/log/messages:Jul 27 09:03:43 localhost kernel: [ 0.399448] devtmpfs: initialized
The file shows the delay as well (the tmp.mount message above is the 19th below):
The /var/log/boot.log file does show one failure, but it occurs well after the delay:
...
Starting Permit User Sessions...
Started LSB: Starts the RPCSEC GSS client daemon.
Started LSB: processor frequency scaling support.
Starting LSB: start and stop kdump crash recovery service ^[[1;31mfailed^[[0m, see 'systemctl status kdump.service' for details.
Started LSB: start and stop xinetd.
Started LSB: Link Layer Discovery Protocol Agent Daemon.
Started Permit User Sessions.
...
Is there a more effective way to clean out the /tmp directory?
Is there a way to determine more about what the /var/log/messages tmp.mount message is complaining about?
Is there anything else I should look at for clues?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.