You are not logged in.

#1 2012-06-07 14:01:03

dartfira
Member
Registered: 2010-08-23
Posts: 111

Systemd-fsatab-generator

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

#2 2012-06-07 15:15:58

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

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

#3 2012-06-07 15:30:24

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Systemd-fsatab-generator

Seems like you have a duplicate entry in your /etc/fstab.

Offline

#4 2012-06-07 16:29:24

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

My thought too.

Offline

#5 2012-06-07 19:56:42

dartfira
Member
Registered: 2010-08-23
Posts: 111

Re: Systemd-fsatab-generator

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 0

I yet updated systemd.

Offline

#6 2012-06-07 20:26:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Systemd-fsatab-generator

And indeed you have a dupe. Note the last two lines... units are generated based on where the device is mounted.

Offline

#7 2012-06-07 20:29:03

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Systemd-fsatab-generator

dartfira wrote:

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 0

I 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 2

and 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

#8 2012-06-08 07:13:06

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

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

#9 2012-06-08 07:21:39

dartfira
Member
Registered: 2010-08-23
Posts: 111

Re: Systemd-fsatab-generator

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 2

No error on boot.

Offline

#10 2012-06-08 08:05:12

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

You can do the same for / and /boot as well. Works nicely on my setup.

Offline

#11 2012-06-08 09:30:40

dartfira
Member
Registered: 2010-08-23
Posts: 111

Re: Systemd-fsatab-generator

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 2

It only shows me the message about sda5, something like: systemd-fsck ... clean ... block [8976/9876]

Offline

#12 2012-06-08 10:00:56

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

That's just what to expect. All in order. Did you note the boot time?

Offline

#13 2012-06-08 10:21:55

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Systemd-fsatab-generator

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

#14 2012-06-08 11:28:39

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd-fsatab-generator

Good advice 65kid! Thanks! Trying it now..

Offline

Board footer

Powered by FluxBB