You are not logged in.
Pages: 1
I'm using systemd and when i boot my system it shows me that message
systemd-fstab-generator [107] Failed to create unit file: File Exist
systemd[1] /usr/lib/systemd/system-generators/systemd-fstab-generator exited with exit status 1.And then the fsck message about the partion and start gnome.
Is this a real problem, If it is so, any solution?
Offline
What partition does it concern? And how does your fstab look like? Did you update today? There are systemd updates today which might solve it.
Offline
My thought too.
Offline
Hmm this is my fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda5 / ext4 defaults 0 1
/dev/sda6 /boot ext3 defaults 0 2
/dev/sda7 /home ext4 defaults,user_xattr 0 2 comment=systemd.automount
# mountiso added - allow mounting of ISO file by non-root user
/tmp/mountiso-image.iso /mnt/iso auto ro,loop=/dev/loop7,user,noexec,noauto 0 0
/dev/loop7 /mnt/iso auto user,noexec,noauto 0 0I yet updated systemd.
Offline
Hmm this is my fstab
# # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> tmpfs /tmp tmpfs nodev,nosuid 0 0 /dev/sda5 / ext4 defaults 0 1 /dev/sda6 /boot ext3 defaults 0 2 /dev/sda7 /home ext4 defaults,user_xattr 0 2 comment=systemd.automount # mountiso added - allow mounting of ISO file by non-root user /tmp/mountiso-image.iso /mnt/iso auto ro,loop=/dev/loop7,user,noexec,noauto 0 0 /dev/loop7 /mnt/iso auto user,noexec,noauto 0 0I yet updated systemd.
I don't know how this is causing this particular error message (edit: forget I said that, how did I miss the double /mnt/iso ? ) but comment=systemd.automount must be part of <options>. Also, while comment=systemd.automount still works, you should use x-systemd.automount instead.
/dev/sda7 /home ext4 user_xattr,noauto,x-systemd.automount 0 2and btw, if you don't use initscripts anymore, you can remove the /tmp entry, systemd mounts this by itself.
Last edited by 65kid (2012-06-07 20:33:04)
Offline
Are these needed with systemd?;
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
EDIT, nope, don't seem to needed. Took them away and changed to x-systemd.automount instead of comment=..., and reduced boot time with 4-5s! Great.
Last edited by swanson (2012-06-08 07:19:40)
Offline
Ok, I made the changes my new fstab looks like
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda5 / ext4 defaults 0 1
/dev/sda6 /boot ext3 defaults 0 2
/dev/sda7 /home ext4 user_xattr,noauto,x-systemd.automount 0 2No error on boot.
Offline
You can do the same for / and /boot as well. Works nicely on my setup.
Offline
Changed in that way
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda5 / ext4 noauto,x-systemd.automount 0 2
/dev/sda6 /boot ext3 noauto,x-systemd.automount 0 2
/dev/sda7 /home ext4 user_xattr,noauto,x-systemd.automount 0 2It only shows me the message about sda5, something like: systemd-fsck ... clean ... block [8976/9876]
Offline
That's just what to expect. All in order. Did you note the boot time?
Offline
uhm... automount for / doesn't really make sense since it is mounted in initramfs before systemd is even started.
and btw, the mkinitcpio timestamp hook may be of interest to you, have a look in the systemd wiki.
Offline
Good advice 65kid! Thanks! Trying it now..
Offline
Pages: 1