How do i create a login script?

Hello Garuda users.

System:
Kernel: 6.4.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=ca7a2840-ab48-4222-8dc0-3ec95e53603f rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: B450M Steel Legend
serial: <superuser required> UEFI: American Megatrends v: P3.60
date: 11/03/2020
CPU:
Info: model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 gen: 3
level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 2218 high: 2657 min/max: 2200/4208 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2202 2: 2110
3: 2200 4: 2657 5: 2189 6: 2195 7: 2199 8: 2200 9: 2122 10: 2199 11: 2200
12: 2143 bogomips: 86402
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Gigabyte
driver: nvidia v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-08) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 07:00.0 chip-ID: 10de:1c03 class-ID: 0300
Device-2: Microdia USB 2.0 Camera driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:5 chip-ID: 0c45:636b
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 3286x1080 s-dpi: 75 s-size: 1113x366mm (43.82x14.41")
s-diag: 1172mm (46.13")
Monitor-1: DP-1 pos: bottom-r res: 1366x768 hz: 60 dpi: 85
size: 410x230mm (16.14x9.06") diag: 470mm (18.51") modes: N/A
Monitor-2: HDMI-0 pos: primary,top-left res: 1920x1080 hz: 60 dpi: 102
size: 480x260mm (18.9x10.24") diag: 546mm (21.49") modes: N/A
Monitor-3: None-1-1 size-res: N/A modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce GTX 1060
6GB/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: NVIDIA GP106 High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 07:00.1 chip-ID: 10de:10f1 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Microdia USB 2.0 Camera driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:5 chip-ID: 0c45:636b
class-ID: 0102 serial: <filter>
Device-4: DCMT USB Condenser Microphone
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 3-4:2 chip-ID: 31b2:0011 class-ID: 0300
serial: <filter>
API: ALSA v: k6.4.12-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 0.3.78 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASRock driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp5s0 state: up speed: 10 Mbps duplex: full mac: <filter>
Device-2: TP-Link TL-WN821N v5/v6 [RTL8192EU] driver: rtl8xxxu type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2:2 chip-ID: 2357:0107
class-ID: 0000 serial: <filter>
IF: wlp2s0f0u2 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Drives:
Local Storage: total: 5 TiB used: 1.34 TiB (26.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SNV2S1000G
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: SBM02103 temp: 33.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 1B6Q scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Toshiba model: HDWT840 size: 3.64 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD
rpm: 5400 serial: <filter> fw-rev: 1L scheme: GPT
Partition:
ID-1: / raw-size: 930.66 GiB size: 930.66 GiB (100.00%)
used: 462.63 GiB (49.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-2: /boot/efi raw-size: 866 MiB size: 864.3 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
ID-3: /home raw-size: 930.66 GiB size: 930.66 GiB (100.00%)
used: 462.63 GiB (49.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /var/log raw-size: 930.66 GiB size: 930.66 GiB (100.00%)
used: 462.63 GiB (49.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-5: /var/tmp raw-size: 930.66 GiB size: 930.66 GiB (100.00%)
used: 462.63 GiB (49.7%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 15.54 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 56.8 C mobo: N/A gpu: nvidia temp: 49 C
Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
Processes: 313 Uptime: 21m wakeups: 0 Memory: total: 16 GiB
available: 15.54 GiB used: 5.44 GiB (35.0%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 1317 libs: 349 tools: octopi,pamac,paru Shell: fish
v: 3.6.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.29
Garuda (2.6.16-1):
System install date:     2023-07-19
Last full system update: 2023-08-30
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Im trying to make a bash script to mount my hdd on login because it takes to much time to do it on bootup. and after that it should open qbittorrnt could you guys give me a light on how to do it. for i have tried and failed.

Im very new to linux and don't know how to code yet.

https://wiki.archlinux.org/title/Fstab

https://wiki.archlinux.org/title/KDE#Autostart

there is no need to write a script, however the creating the partition information needed to insert into fstab will require information you can get at a command prompt. Do remember to use the UUID portion of the fstab wiki entry i posted above as that is what is currently recommended/used.

i have used fstab, i dont want to anymore, my boot takes a minute and a half because of my hdd, i want to mount it after boot

Nope, you may have a mistake inside, so fstab search and search and search :slight_smile:
Try

sudo pacman -S gnome-disk-utility
1 Like

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