Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #172486

Re: /etc/fstab and systemd

From Jimmy Johnson <field.engineer@gmail.com>
Newsgroups linux.debian.user
Subject Re: /etc/fstab and systemd
Date 2016-09-19 21:00 +0200
Message-ID <sjbXj-EM-9@gated-at.bofh.it> (permalink)
References <sj6XD-62j-13@gated-at.bofh.it>
Organization PC Repair

Show all headers | View raw


On 09/19/2016 06:15 AM, Pol Hallen wrote:
> hi all :-)
>
> 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)
>
> this line works but only on some pc
>
> what is the correct way to mount a disk automatically at start up of
> system?
>
> thanks!
>
> Pol

"/dev/sdb1 /test ext4 auto,users,exec,relatime 0 0"

You do realize that will mount the folder named 'test' you have created 
on root.  If you do not have a folder named 'test' on root/ in will not 
work.
You may want to put the mount folder named 'test' in your home folder, 
ie /home/username/test. I mount to a folder named '1-Linux' so that it 
will be at the top of my home directory. I hope that helps.
-- 
Jimmy Johnson

Debian Sid/Testing - XFCE4 - AMD64 - EXT4 at sda24
Registered Linux User #380263

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

/etc/fstab and systemd Pol Hallen <deben@fuckaround.org> - 2016-09-19 15:40 +0200
  Re: /etc/fstab and systemd Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-19 16:10 +0200
  Re: /etc/fstab and systemd Teemu Likonen <tlikonen@iki.fi> - 2016-09-19 16:10 +0200
  Re: /etc/fstab and systemd Mart van de Wege <mvdwege@gmail.com> - 2016-09-19 16:10 +0200
  Re: /etc/fstab and systemd Jimmy Johnson <field.engineer@gmail.com> - 2016-09-19 21:00 +0200

csiph-web