How to automount at boot

Good day. I was trying to enable automount for my disks found here yet after I ran sudo systemctl start data-backup.mount, it showed me an error Job failed. See "journalctl -xe" for details.

I want to mount these 3 disks:

/run/media/soumi/Luna (HDD)
/run/media/soumi/Aurora (SSD)
/run/media/soumi/Sol (HDD)

lsblk

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0    16M  0 part 
├─sda2        8:2    0   293G  0 part /run/media/soumi/Sol (HDD)
└─sda3        8:3    0   500G  0 part /run/media/soumi/Luna (HDD)
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0  14.9G  0 part [SWAP]
├─nvme0n1p2 259:2    0   476M  0 part /boot/efi
├─nvme0n1p3 259:3    0 186.3G  0 part /
├─nvme0n1p4 259:4    0  93.1G  0 part /home
└─nvme0n1p5 259:5    0 139.7G  0 part /run/media/soumi/Aurora (SSD)
nvme1n1     259:6    0  27.3G  0 disk 
└─md127       9:127  0     0B  0 md   

inxi -Fazy

System:
  Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64
  root=UUID=ef4e4c8f-309a-4d13-a170-4bb076485909 rw quiet apparmor=1
  security=apparmor resume=UUID=99de7c2a-e392-4477-8a3f-913dcb8bc315
  udev.log_priority=3
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Aspire A514-53 v: V1.16 serial: <filter>
  Chassis: type: 10 serial: <filter>
  Mobo: IL model: Sneezy_IL v: V1.16 serial: <filter> UEFI: Insyde v: 1.16
  date: 01/18/2021
Battery:
  ID-1: BAT0 charge: 30.8 Wh (100.0%) condition: 30.8/53.0 Wh (58.2%)
  volts: 16.5 min: 15.4 model: PANASONIC KT004 AP19B5L type: Li-ion
  serial: <filter> status: Full cycles: 386
CPU:
  Info: Dual Core model: Intel Core i3-1005G1 bits: 64 type: MT MCP
  arch: Ice Lake family: 6 model-id: 7E (126) stepping: 5 microcode: A6 cache:
  L2: 4 MiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 9524
  Speed: 3303 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 3303 2: 3277
  3: 3203 4: 3307
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Iris Plus Graphics G1 vendor: Acer Incorporated ALI
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:8a56 class-ID: 0300
  Device-2: Chicony HD User Facing type: USB driver: uvcvideo bus-ID: 1-6:3
  chip-ID: 04f2:b64f class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver:
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
  s-diag: 414mm (16.3")
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 112 size: 309x173mm (12.2x6.8")
  diag: 354mm (13.9")
  OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 21.2.3
  direct render: Yes
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Acer Incorporated ALI
  driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl
  bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0401
  Device-2: C-Media USB PnP Sound Device type: USB
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:5 chip-ID: 0d8c:013a
  class-ID: 0300
  Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel
  bus-ID: 00:14.3 chip-ID: 8086:34f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
  bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  IF-ID-1: br-062f9e47a08d state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-4: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
  bus-ID: 1-10:4 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
  rfk-block: hardware: no software: yes address: see --recommends
Not an ARRAY reference at /usr/bin/inxi line 16007.

Did you see journalctl -xe to check what is causing fail? Here you have two more complete tutorials how to mount with systemd. Hope it will help:

Your inxi doesn’t have any informations about disks – thats probably related to this bug.

1 Like

Thanks! Will check this out

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.