Re: /etc/fstab and systemd
On Mon, Sep 19, 2016 at 03:15:26PM +0200, Pol Hallen wrote:
> I migrated my pc to systemd (!), in /etc/fstab I've
>
> /dev/sdb1 /test ext4 x-systemd.automount 0 0
> (I use UUID but to semplify I wrote /dev/sdb1)
Changing the content of your files is not "simplifying". It's mangling.
> what is the correct way to mount a disk automatically at start up of system?
This is what jessie does by default:
UUID=1a20ffb7-897c-4373-84c1-14089a6deab8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=b8d67062-8262-476d-9370-8166f7572fd3 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
Or, on a system with a separate /home:
UUID=404cbcbe-cc34-44e6-b8cf-845c3ceb56e7 /home ext4 defaults 0 2
In short, there's no special magic used by fstab on a jessie/systemd
system. It's just like an fstab from wheezy. Let systemd handle the
mounting in its regular way.
Reply to: