Shimmy
11 February 2022 02:33
1
Hello guys,
so I destroyed my home partition while moving/ resizing it with kde’s partition software.
Since i saved all files i just went ahead and made it a ext4 type with /home mount point and changed the uuid in the root partition (ext/fstab) to get it working right away without trieing to restore stuff.
Now manjaro is succesfully booting to the login screen. But when i type in the correct password, it goes to this typical black console screen for a second and than back again to the login screen.
It does notice when i type in a wrong password.
Dont know if that’s relevant, but i dont have permission in the live System to change anything in this drive. (In the old one i remember deleting files etc.)
So what do i need to do to get past the login screen?
Hope i provided enough information, thanks in advance
mbb
11 February 2022 10:54
2
Press CTRL+ALT+F2 and try to login. If you can login, get the output of journalctl -p3 -b
and lsblk -f
1 Like
The live system should be able to do everything as root (sudo su) !
What do you miss ?
How to increase your chances of solving your issue:
Difficulty: ★☆☆☆☆
Strong of its many members, the Manjaro support forum can provide you help whenever you have an issue with your Manjaro installation. But in order to work efficiently, we shall also ask you to follow three major steps.
Keep calm and read
First some basics: whenever you need to troubleshoot, chances are the solution is already under your nose.
Find error messages
Very often when an applications crashes, and sometimes when it misbehaves, it prints an error message somewhere. …
Please provide Information:
Welcome to Manjaro!
To allow all of us helpful people on this forum TO HELP YOU, we need some basic information about your system. This probably means you described the symptoms of your problem, but now we need some more information to know where the origin of your issue is exactly.
Someone else probably linked you to this tutorial, so if you’re reading this in response to a question, please click the link above this text to bring you to the full and unabridged text of the tutorial…
Shimmy
11 February 2022 14:29
4
Unfortunately i am not allowed to post pictures or links and copying the output is impossible for me rn i think.
But here are the last two lines of journal -p3 -b at least:
Username sddm-helper[1153]: chdir( /home/username ) failed for user: "username"
Username ssdm-helper[1153]: verify directory exist and has sufficient permission
I guess it wants the missing /home/username directory. Seems reasonable.
Now i need to learn how to create folders via console.
Shimmy
11 February 2022 14:36
5
I will read through those links later and provide more information if necessary.
And yes i am pretty certain that i would be able to change something in this drive with the console and sudo su. Just didn’t understand why i cant without it, but that’s probably not relevant
If you read the links you will be able
To login as user there needs to be a /home/user
with the right permissions, ownership and some basic content.
The easy way is to restore your old data
(everything will then work out of the box)
The hard way is to create this by hand
(and later restore, and replace everything made by hand)
Shimmy
11 February 2022 23:50
7
The hard way is to create this by hand
(and later restore, and replace everything made by hand)
That doesn’t sound promising …
So I learned to save the terminal outputs to a text file now:
journal -p3 -b:
-- Journal begins at Mon 2021-10-04 16:06:41 CEST, ends at Sat 2022-02-12 01:02:07 CET. --
Feb 12 00:58:21 benjamin kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
Feb 12 00:58:22 benjamin systemd-backlight[780]: Failed to get backlight or LED device 'backlight:acpi_video0': No such device
Feb 12 00:58:22 benjamin systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Feb 12 00:58:22 benjamin systemd-backlight[781]: amdgpu_bl0: Failed to write system 'brightness' attribute: No such device or address
Feb 12 00:58:22 benjamin systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.
Feb 12 00:58:24 benjamin kernel: sd 2:0:0:0: [sda] No Caching mode page found
Feb 12 00:58:24 benjamin kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Feb 12 00:58:46 benjamin sddm-helper[1142]: pam_kwallet5-kwalletd: user home folder does not exist
Feb 12 00:58:46 benjamin ssdm-helper[1142]: pam_kwallet5(sddm:session): pam_kwallet5: Fail into creating the hash
Feb 12 00:58:46 benjamin sddm-helper[1153]: chdir( /home/benjamin ) failed for user: "benjamin"
Feb 12 00:58:46 benjamin ssdm-helper[1153]: verify directory exist and has sufficient permission
lsblk -f:
statement
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0 squashfs 4.0 0 100% /var/lib/snapd/snap/core/11993
loop1 squashfs 4.0 0 100% /var/lib/snapd/snap/bare/5
loop2 squashfs 4.0 0 100% /var/lib/snapd/snap/telegram-desktop/3544
loop3 squashfs 4.0 0 100% /var/lib/snapd/snap/core18/2253
loop4 squashfs 4.0 0 100% /var/lib/snapd/snap/core20/1270
loop5 squashfs 4.0 0 100% /var/lib/snapd/snap/snapd/14549
loop6 squashfs 4.0 0 100% /var/lib/snapd/snap/core18/2284
loop7 squashfs 4.0 0 100% /var/lib/snapd/snap/snapd/14295
loop8 squashfs 4.0 0 100% /var/lib/snapd/snap/brave/142
loop9 squashfs 4.0 0 100% /var/lib/snapd/snap/gtk-common-themes/1519
loop10 squashfs 4.0 0 100% /var/lib/snapd/snap/gtk2-common-themes/13
loop11 squashfs 4.0 0 100% /var/lib/snapd/snap/telegram-desktop/3530
loop12 squashfs 4.0 0 100% /var/lib/snapd/snap/core20/1328
loop13 squashfs 4.0 0 100% /var/lib/snapd/snap/brave/141
loop14 squashfs 4.0 0 100% /var/lib/snapd/snap/gtk-common-themes/1515
loop15 squashfs 4.0 0 100% /var/lib/snapd/snap/core/12603
sda iso9660 Joliet Extension MANJARO_KDE_2122 2022-01-23-13-30-08-00
├─sda1 iso9660 Joliet Extension MANJARO_KDE_2122 2022-01-23-13-30-08-00
└─sda2 vfat FAT12 MISO_EFI 01B3-DEA1
nvme0n1
├─nvme0n1p1 vfat FAT32 UEFISHELL DC84-0D14
├─nvme0n1p2 ntfs A8DC9027DC8FEE3E
├─nvme0n1p3 ntfs WINDRIVER 4426845E2684533A
├─nvme0n1p4 vfat FAT32 7C68-433A 507,8M 0% /boot/efi
├─nvme0n1p5 swap 1 fa3c42c4-b198-43cb-8a1e-2675585a7a81 [SWAP]
├─nvme0n1p6 ext4 1.0 4292aea1-d298-4531-8c94-4efe43248be3 36,3G 32% /
└─nvme0n1p7 ext4 1.0 6956ba2d-d02e-4252-be6c-24b6cd6cf29f 203,9G 0% /home
inxi --admin --verbosity=7 --filter --width:
System:
Kernel: 5.10.23-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=4292aea1-d298-4531-8c94-4efe43248be3 rw quiet apparmor=1
security=apparmor udev.log_priority=3
Console: tty 2 DM: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Aspire A515-44 v: V1.02 serial: <filter>
Mobo: RO model: Calla_RN v: V1.02 serial: <filter> UEFI: INSYDE v: 1.02
date: 03/23/2020
Battery:
ID-1: BAT1 charge: 41.0 Wh (100.0%) condition: 41.0/47.8 Wh (85.8%)
volts: 12.3 min: 11.2 model: LGC AP18C8K type: Li-ion serial: <filter>
status: Full
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M510
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: Discharging
Memory:
RAM: total: 7.21 GiB used: 717.4 MiB (9.7%)
Array-1: capacity: 64 GiB note: check slots: 2 EC: None
max-module-size: 32 GiB note: est.
Device-1: DIMM 0 size: 4 GiB speed: spec: 2667 MT/s actual: 2400 MT/s
type: DDR4 detail: synchronous unbuffered (unregistered) bus-width: 64 bits
total: 64 bits manufacturer: Hynix part-no: HMA851S6CJR6N-VK
serial: <filter>
Device-2: DIMM 0 size: 4 GiB speed: spec: 2667 MT/s actual: 2400 MT/s
type: DDR4 detail: synchronous unbuffered (unregistered) bus-width: 64 bits
total: 64 bits manufacturer: Hynix part-no: HMA851S6CJR6N-VK serial: N/A
CPU:
Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics socket: FP6
bits: 64 type: MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1
microcode: 8600103 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB bogomips: 31952
Speed: 1397 MHz min/max: 1400/2000 MHz base/boost: 2000/4200 boost: enabled
volts: 1.2 V ext-clock: 100 MHz Core speeds (MHz): 1: 1397 2: 1399 3: 1397
4: 1454 5: 1397 6: 1400 7: 1400 8: 1398
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc
cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs irperf lahf_lm
lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx
nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter
pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni
popcnt pse pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload vgif
vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt
xsaves
Vulnerabilities: Type: itlb_multihit status: Not affected
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: Full AMD retpoline, IBPB: conditional, IBRS_FW,
STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Renoir vendor: Acer Incorporated ALI driver: amdgpu v: kernel
bus-ID: 05:00.0 chip-ID: 1002:1636 class-ID: 0300
Device-2: Chicony HD User Facing type: USB driver: uvcvideo bus-ID: 3-4:3
chip-ID: 04f2:b64f class-ID: 0e02 serial: <filter>
Display: server: X.org 1.20.10 driver: loaded: amdgpu,ati
unloaded: modesetting alternate: fbdev,vesa tty: 240x67
Message: Advanced graphics data unavailable in console for root.
Audio:
Device-1: AMD vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel
bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
vendor: Acer Incorporated ALI driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel bus-ID: 05:00.6 chip-ID: 1022:15e3
class-ID: 0403
Sound Server-1: ALSA v: k5.10.23-1-MANJARO running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 14.2 running: no
Sound Server-4: PipeWire v: 0.3.23 running: no
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 2000
bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel port: 2000 bus-ID: 04:00.0
chip-ID: 168c:003e class-ID: 0280
IF: wlp4s0 state: down mac: <filter>
WAN IP: No WAN IP found. Connected to web? SSL issues? Try enabling dig
Bluetooth:
Device-1: Lite-On type: USB driver: btusb v: 0.8 bus-ID: 1-3:3
chip-ID: 04ca:3016 class-ID: e001
Report: This feature requires one of these tools: hciconfig/bt-adapter
Logical:
Message: No LVM data was found.
RAID:
Message: No RAID data was found.
Drives:
Local Storage: total: 506.24 GiB used: 18.76 GiB (3.7%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM512GDJTNI-82A0A
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 rotation: SSD serial: <filter> rev: 11000C00 temp: 23.9 C
scheme: GPT
SMART: yes health: PASSED on: 28d 18h cycles: 1,024
read-units: 10,647,608 [5.45 TB] written-units: 11,618,464 [5.94 TB]
ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Verbatim model: 0302
size: 29.3 GiB block-size: physical: 512 B logical: 512 B serial: <filter>
scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Message: No Optical or Floppy data was found.
Partition:
ID-1: / raw-size: 59.08 GiB size: 58.03 GiB (98.22%) used: 18.76 GiB (32.3%)
fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A
uuid: 4292aea1-d298-4531-8c94-4efe43248be3
ID-2: /boot/efi raw-size: 512 MiB size: 508 MiB (99.22%)
used: 164 KiB (0.0%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p4
maj-min: 259:4 label: N/A uuid: 7C68-433A
ID-3: /home raw-size: 219.41 GiB size: 214.91 GiB (97.95%)
used: 28 KiB (0.0%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p7
maj-min: 259:7 label: N/A uuid: 6956ba2d-d02e-4252-be6c-24b6cd6cf29f
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 11.23 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A
uuid: fa3c42c4-b198-43cb-8a1e-2675585a7a81
Unmounted:
ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 1024 MiB fs: vfat label: UEFISHELL
uuid: DC84-0D14
ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 122.07 GiB fs: ntfs label: N/A
uuid: A8DC9027DC8FEE3E
ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 2.7 GiB fs: ntfs label: WINDRIVER
uuid: 4426845E2684533A
ID-4: /dev/sda1 maj-min: 8:1 size: 3.7 GiB fs: iso9660
label: MANJARO_KDE_2122 uuid: 2022-01-23-13-30-08-00
ID-5: /dev/sda2 maj-min: 8:2 size: 4 MiB fs: vfat label: MISO_EFI
uuid: 01B3-DEA1
USB:
Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-2:2 info: Verbatim Flash Drive type: Mass Storage
driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 18a5:0302 class-ID: 0806 serial: <filter>
Device-2: 1-3:3 info: Lite-On type: Bluetooth driver: btusb interfaces: 2
rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04ca:3016 class-ID: e001
Device-3: 1-4:4 info: Elan Micro ELAN:Fingerprint type: <vendor specific>
driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
chip-ID: 04f3:0c4f class-ID: 0000
Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-3:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
power: 98mA chip-ID: 046d:c52b class-ID: 0300
Device-2: 3-4:3 info: Chicony HD User Facing type: Video driver: uvcvideo
interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b64f
class-ID: 0e02 serial: <filter>
Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 43.9 C mobo: N/A gpu: amdgpu temp: 34.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 205 Uptime: 8m wakeups: 3 Init: systemd v: 247 tool: systemctl
Compilers: gcc: 10.2.0 Packages: 1401 pacman: 1387 lib: 425 flatpak: 4
snap: 10 Shell: Bash (su) v: 5.1.0 running-in: tty 2 inxi: 3.3.03
Please tell me if you need more information.
mbb
12 February 2022 08:46
8
Your user doesn’t exist. What are the contents of /home
?
ls -la /home
If the directory doesn’t exist you can create a new user: useradd -m -g wheel username
If you read carefully, the user does exist, but the dir
/home/benjamin
does not.
Please try (i asume your username is benjamin):
cat /etc/passwd |egrep benjamin
should get you:
benjamin:x:1000:1000::/home/benjamin:/usr/bin/zsh
Then try as root:
mkdir /home/benjamin
chown benjamin:benjamin /home/benjamin
chmod 750 /home/benjamin
2 Likes
Shimmy
13 February 2022 22:21
10
There was and still is one folder named “lost+found” I can’t open:
total 28
drwxr-xr-x 3 root root 4096 11. Feb 02:21 .
drwxr-xr-x 17 root root 4096 12. Feb 01:25 ..
drwx------ 2 root root 16384 11. Feb 02:21 lost+found
Shimmy
13 February 2022 22:23
11
Thank you, that worked, I can login now.
But after
cat /etc/passwd |egrep benjamin
it gave me
benjamin:x:1000:1000::/home/benjamin:/usr/bin/
without the /zsh at the end.
Is this of importance?
omano
13 February 2022 22:28
12
Yes. this part should reflect the login shell for this user. Use chsh
tool to assign the proper shell you want to use (bash, zsh, fish, whatever is your preferred shell).
man chsh
Do not manually edit the related files, use the system tools to safely do it.
https://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/
1 Like
Shimmy
13 February 2022 23:04
13
Okay thank you.
After restarting it had bash assigned and now i changed it to zsh. (I might change it back again though)
omano
14 February 2022 00:00
14
Note that as you are on KDE, and probably your terminal emulator is Konsole, there is a specific setting for the shell used, in Konsole (in the custom profile you can create), this is only for Konsole, and is not related to the user shell (and incidentally, the login shell has no effect on the shell used in Konsole).
Other terminal emulators will most likely use the login shell defined in /etc/passwd
but Konsole is different it has its own setting, for each profile you create and use.
1 Like
system
Closed
16 February 2022 14:00
15
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.