You are not logged in.

#1 2023-10-20 06:27:37

xuraax
Member
Registered: 2023-10-20
Posts: 5

auto mount of USB stick at startup - RESOLVED

Hi, I am new to Arch so be gentle please.

I have just installed Arch on one of my machines. Since I would need to transfer programs from sticks fairly regularly  proceeded to do a setup to achieve auto mounting . I installed udisks2 and udiskie and indeed when I run udiskie manually my stick gets recognised in the filemanager.

I then tried to setup .xinitrc in my home page and included the line "udiskie &" without the quotes above the exec command as per instructions at https://wiki.archlinux.org/title/Xinit#xinitrc but for some reason my stick still does not get automatically recognised. Then running udiskie from command line works as expected.

Any advice please.

xuraax

Last edited by xuraax (2023-10-21 12:12:10)

Offline

#2 2023-10-20 06:46:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,073

Re: auto mount of USB stick at startup - RESOLVED

Does xinitrc start your session at all?
Did you consider a user service, https://wiki.archlinux.org/title/Systemd/User ?

Offline

#3 2023-10-20 14:03:37

xuraax
Member
Registered: 2023-10-20
Posts: 5

Re: auto mount of USB stick at startup - RESOLVED

I actually do not know if copying xinitrc to ~/.xinitrc is having any effect at all since the system boots into the Xfce Desktop Environment in the same way, with or without the file.

I will read through the page you proposed but I would prefer resolving the xinitrc issue before trying something else.

thanks

Last edited by xuraax (2023-10-20 14:04:22)

Offline

#4 2023-10-20 14:05:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,073

Re: auto mount of USB stick at startup - RESOLVED

loginctl session-status

How can you not know what's starting your session???

Offline

#5 2023-10-20 15:40:19

xuraax
Member
Registered: 2023-10-20
Posts: 5

Re: auto mount of USB stick at startup - RESOLVED

the answer to your question is that, as a newbee, when i am installing something I may not appreciate all I am doing. my choice is either to give up and learn nothing or press along and learn as I go.

the response to the command you suggested is the following:


2 - joe (1000)
           Since: Fri 2023-10-20 15:40:46 CEST; 1h 36min ago
          Leader: 359 (lightdm)
            Seat: seat0; vc7
         Display: :0
         Service: lightdm; type x11; class user
         Desktop: xfce
           State: active
            Idle: no
            Unit: session-2.scope
                  ├─359 lightdm --session-child 13 20
                  ├─386 xfce4-session
                  ├─427 /usr/bin/ssh-agent -s
                  ├─437 xfwm4
                  ├─445 xfsettingsd
                  ├─450 xfce4-panel
                  ├─455 Thunar --daemon
                  ├─465 xfdesktop
                  ├─469 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libsystray.so>
                  ├─470 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libpulseaudio>
                  ├─473 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libxfce4power>
                  ├─474 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libnotificati>
                  ├─475 xfce4-power-manager
                  ├─477 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
                  ├─482 nm-applet
                  ├─488 xfce4-screensaver
                  ├─557 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libactions.so>
                  ├─927 /usr/bin/xfce4-terminal
                  ├─959 bash

Offline

#6 2023-10-20 19:31:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,073

Re: auto mount of USB stick at startup - RESOLVED

So you're logging into and xfce4 session w/ lightdm, your xinitrc is no part of this.

Next to a user service you can use ~/.xprofile - https://wiki.archlinux.org/title/LightD … _variables or an xdg autostart - https://wiki.archlinux.org/title/Xfce#Autostart

Offline

#7 2023-10-21 05:40:46

xuraax
Member
Registered: 2023-10-20
Posts: 5

Re: auto mount of USB stick at startup - RESOLVED

creating a file ~/.xprofile containing "udiskie &"  worked perfectly.

Thank you very much.

Offline

#8 2023-10-21 06:41:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,073

Re: auto mount of USB stick at startup - RESOLVED

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#9 2023-10-21 12:13:10

xuraax
Member
Registered: 2023-10-20
Posts: 5

Re: auto mount of USB stick at startup - RESOLVED

did I close it the correct way?

Offline

#10 2023-10-21 12:54:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,073

Re: auto mount of USB stick at startup - RESOLVED

Tne frequently used indicator is "[SOLVED]" but your approach is sufficient for the task. Thanks.

Offline

Board footer

Powered by FluxBB