-
markmcb
i'm feeling pretty cool right now. writing you from a system i archived and restored to a new OS drive. i'm shocked it just worked. :)
-
mason
nice
-
K5KGT
isn't that a neat feeling when something that "prolly won't work as planned" actually does?
-
markmcb
totally. what's crazy is how simple it is to do.
-
K5KGT
yeah I have a server on VULTR and they gave me more HD space, it blew me away how easy it was to expand the filesystem out to fill it out
-
markmcb
i noticed when i booted the installer on a usb drive, i was asked for the geli passphrase on the OS device. is that expected?
-
mason
yes
-
mason
and there's no good way around it, even if you don't need it
-
mason
If it finds old metadata, you're entering it or suffering through a bunch of prompts.
-
kevans
markmcb: asked by loader or by the kernel?
-
mason
kevans: Is it ever by the kernel any more? I thought that default swapped some years ago.
-
mason
It used to bite me fiercely because I was using USB keyboards.
-
markmcb
kevans, i assume the loader. it was the usual prompt you get before anything else loads.
-
kevans
markmcb: bios or uefi boot?
-
kevans
mason: it's usually the loader, but it can be the kernel in some circumstances
-
mason
IIRC, geom_eli_passphrase_prompt="NO" would force it back to the kernel.
-
markmcb
uefi boot of a usb drive with the bootonly installer image
-
kevans
e.g., uefi loader /shouldn't/ prompt unless there's a geli partition on the same disk it was loaded from, iirc, these days
-
markmcb
FreeBSD-13.2-RELEASE-amd64-bootonly.iso to be exact
-
markmcb
flow was: i installed to a nvme ssd, rebooted, selected to boot again to the installer, was prompted for the passphrase, then booted into the live usb env.
-
meena
you'd think chsh would check if the shell exists and/or is in /etc/shells before letting you do that,
unix.stackexchange.com/questions/54…-file-or-directory-in-dragonfly-bsd
-
VimDiesel
Title: shell - su: /bin/bash: No such file or directory in Dragonfly BSD - Unix & Linux Stack Exchange
-
tyler82
meena: Things are getting complicated again...
-
tyler82
I have got kde plasma installed on my older asus laptop. This laptop has got intel and nvidia hybrid gpu. So drm-kmod i915kms module and nvidia-driver390 needed to run kde. all was working fine. i have a bootable backup copy about this system on external SSD also but the main system is on 2.5 inch SSD in the laptop.
-
tyler82
But that laptop suddenly died. Motherboard issue.RIP. 😔 So i have got a newer laptop Lenovo T480 with Intel Graphics only. No Nvidia at all. Just for curiosity i was placing the ssd inside from my older laptop and was trying to boot. And was booting into with KDE Plasma flawelessly. 😆 No issue at all! So i was trying to boot the backup OS also with the same configuration and also was booting
-
tyler82
with no issue.
-
tyler82
And after that was starting the problems...
-
tyler82
the problem is i was installing two packages from ports collection. x11-fonts/mkfontscales and textproc/markdown. one of this two package fucked up xorg and kde....🙄 So after giving my password on sddm loginscreen the KDE logo was popping up but after i got black screen only. it was not not loading the desktop and taskbar. So i was switching to tty but also failed. Only hard reset did work
-
tyler82
using the power button but that was causing serverauth.xxxx file does not exists error later on... I was doing pkg delete the mkfontscale and markdown packages and do pkg autoremove but that removing kde5 also.... and xorg was not working anymore. So i was reinstall xorg and kde5. And now xorg complains about serverauth.xxxx file. if i delete .Xauthority file then complains about that one
-
tyler82
also...🤬😡 if i change enable_xauth=0 in /usr/local/bin/startx then not complains about serverauth anymore but has got a new problem: Segmentation fault for gpu driver 0 1 So i was removing nvidia-driver390 as i dont need anymore... maybe will help. Also I was removing the nvidia-modeset from rc.conf. But still having the Segmentation fault error....Any idea? 🤔🧐
-
tyler82
The external SSD system does still boot on the newer laptop with nvidia config even if i no more have nvidia gpu....
-
parv
Do you not have a ZFS "snapshot" to "rollback" to?
-
cadmio
Hello
-
cadmio
do you know how can I use xmodmap to switch two key of a keyboard?
-
yuripv
tyler82: you could just paste a link to your forums post :D
-
tyler82
parv: no i dont have...
-
tyler82
yuripv: yes but i did post here first and the forum post had created just after this. :) So i could link this to the forum. :))
-
yuripv
i see :)
-
parv
tyler82, Segmentation fault could be due to missing library that was originally used; try rebuilding the driver if that is possible. In any case, I would start from scratch: remove all X11 things; then install the window manager, GPU driver, etc
-
tyler82
parv: this is what i did.
-
tyler82
reinstall xorg and kde5
-
parv
So that link?
-
tyler82
but what driver u mean? i dont need anymore nvidia...
-
tyler82
sudo pkg delete xorg kde5 then pkg autoremove
-
tyler82
this is what i did so far
-
tyler82
shall i pkg delete drm-kmod & pkg autoremove also??
-
debdrup
You need to stop guessing, build the software with debug symbols as described on
wiki.freebsd.org/DebuggingPorts and then find out what's causing the issues with lldb.
-
VimDiesel
Title: DebuggingPorts - FreeBSD Wiki
-
wikan
hi. I am writing my installation script for freebds. It fails on 3/4 so I decided to test it on VM and here is my probolem.
-
wikan
i have no idea how can I get access to my script from freebsd that is running as quest on vm.
-
wikan
i have tried share folder in virtualbox - it isn't work
-
wikan
that would be great to share as standard ext4 device.
-
wikan
any idea how to get access to this script?
-
doug713705[m]
using ssh / scp ?
-
wikan
no internet
-
wikan
or meybe you can tell me how can I turn internet on
-
wikan
I boot *.img and i use "shell" option
-
wikan
maybe another question
-
wikan
"gpart show" tells me there is usb disk under da1
-
doug713705[m]
once in the shell what prevent to set up the network interface manually with ifconfig / route ?
-
wikan
but i can't mount /dev/da1 - no such file or directory
-
wikan
there is no da* in /dev
-
wikan
checked because i even tried /dev/da1s1.
-
wikan
ls /dev says there is no /da and even ada
-
wikan
ok i am sorry I did something wrong
-
wikan
there is da1s1
-
wikan
gpart: No partitioning scheme found on geom /dev/da1. Create one first using 'gpart create'.
-
wikan
i destroyed /dev/da1 and trying to create portable partition on usb disk. I don't understand this error.
-
wikan
google isn't helpful
-
RhodiumToad
wait, if da1s1 existed then there must have been a partitioning scheme
-
RhodiumToad
you destroyed that one?
-
wikan
i created freebsd sheme
-
wikan
ow i can't add partition
-
wikan
gpart add -t freebsd -s 1G /dev/da1
-
wikan
gpart: invalid argument
-
wikan
i am googeling and cant find anything helpful
-
RhodiumToad
what are the exact gpart commands you ran
-
tyler82
parv: if i remove xorg and all xorg related files and folders then im theory should not get authserver.xxxx error to get. So why am i having it? Probably because not all files and/or folders removed....But how could i purge it properly?? i was using autoremove also after pkg delete...
-
wikan
1) gpart destroy -F /dev/da1
-
wikan
2) gpart create -s bsd /dev/da1
-
wikan
3) gpart add -t freebsd -s 1G /dev/da1
-
wikan
gpart: invalid argument
-
RhodiumToad
you don't want the bsd scheme.
-
wikan
how caqn I create poirtable usb stick?
-
RhodiumToad
if you want the drive to be recognized by anything else, you want either the MBR or GPT schemes
-
wikan
i want temporary usb drive to share it with guest system on virtual box
-
RhodiumToad
then if you want the data to be readable on things other than freebsd, you have to decide on a filesystem type to use
-
parv
tyler82, I do not know. If an X11 session is not being used, do not see any issue with ruthlessly removing various related files in home or in /tmp/. All I can suggest from here is to check logs; trace the processes that are started with "startx" or however you do that. When all else fails, also re-login. After that more logging & process tracing
-
RhodiumToad
(msdos being the most widely recognized but the least useful)
-
tyler82
parv: does not sounds good... but okay...
-
wikan
thanks, mbr works
-
wikan
gpart is extremely primitive :|
-
debdrup
It's probably more that you're simply not used to using it.
-
wikan
true
-
wikan
but for example 'gpart show' is one huge puke
-
wikan
very hard to read
-
RhodiumToad
gpart show da1 to show a specific disk
-
knielsen
Any known concurrency bugs with tmpfs? I have a sporadic test failure in the mariadb testsuite that occurs frequently on freebsd 13 with `mount -t tmpfs tmpfs /tmp`, never anywhere else (including freebsd 12.3/tmpfs and freebsd13/notmpfs)
-
knielsen
Looks like a writer thread writes 44 bytes and the end of a file, and occasionally reader thread reads 44 bytes of zero instead of correct data
-
knielsen
Current repro requires running a complex test with multiple database processes until it fails, so not ideal for a bug report...
-
RhodiumToad
pretty sure the write takes an exclusive lock on the vnode.
-
RhodiumToad
can it be reproduced with ktrace active?
-
knielsen
RhodiumToad: I can try, any pointers to how to use ktrace (I'm not that familiar with freebsd)
-
knielsen
Currently trying to reproduce with truss, but not successful so far
-
RhodiumToad
ktrace -i somecommand will trace (output goes to ktrace.out in binary form) the specified command and all processes it spawns
-
RhodiumToad
ktrace -i -d -p somepid will trace an existing process and its current and future descendents
-
RhodiumToad
kdump will interpret the trace output
-
knielsen
I'll try, thanks for the suggestion
-
knielsen
Doesn't seem to reproduce when run with ktrace -tc :-(
-
knielsen
I'll let it run for a bit more to see. Otherwise maybe I can at least record the IO pattern done to the file and see if I can make a small test program with similar access pattern to reproduce the issue...
-
RhodiumToad
unfortunately ktrace will inevitably slow it down a bit
-
RhodiumToad
-tci would have been better, wanted to see the actual data
-
knielsen
Ah, yes we need the data too...
-
RhodiumToad
most of the other default trace options aren't much overhead, so better to leave them all on
-
rtprio
tyler82 what 'authsever error' ?
-
tyler82
rtprio: i have fixed it already. the problem was that i did not delete properly xorg
-
tyler82
the correct command was pkg delete -xi xorg. Not just pkg delete xorg.
-
RhodiumToad
that deletes everything with xorg in the name
-
RhodiumToad
the package named "xorg" is just a metaport
-
parv
"That's your problem, right there"
-
RhodiumToad
lots of xorg-related ports don't have xorg in the name, though
-
tyler82
that command was deleting a bunch of additional files. after do autoremove and rebooting i was reinstall everything from scratch. Now all works fine.
-
tyler82
RhodiumToad: Ok. i did not know that.
-
debdrup
It's nice that that worked out, but it means you won't know what caused the issue, so you'll be hard-pressed to identify and fix it next time, without resorting to the same.
-
tyler82
debdrup: xorg was causing the issue but i donno which package exactly responsible for the authserver.xxxx error.
-
rtprio
reinstall seems a little excessive for a few files, but sure
-
RhodiumToad
pkg query -a "%n-%v %C" | awk '$2=="x11"' # lists every package in category "x11"
-
RhodiumToad
or awk '$2 ~ /^x11/' to also get packages in the various x11-foo categories like x11-fonts, x11-toolkits etc
-
RhodiumToad
however, if you just installed xorg to pull everything in, they'll all be marked auto-installed so autoremove will remove them once the xorg port is gone
-
tyler82
i was expecting that also. but as u can see not happend
-
tyler82
i was installing xorg via pkg not from ports
-
rtprio
besides, the cool kids use wayland these days
-
tyler82
rtprio: does KDE support wayland?
-
kenrap
tyler82: KDE supports wayland, FreeBSD however doesn't support KDE Wayland yet.
-
tyler82
kenrap: i mean that one. :)
-
tyler82
anybody has tried restic backup manager?
-
kenrap
(btw, I recommend you pop in #freebsd-desktop and chat with the folks there regarding KDE)
-
tyler82
kenrap: noice
-
kenrap
Some really enthusiastic devs there :)
-
tyler82
kenrap: aham....
-
knielsen
RhodiumToad: Ah, with some tweaks and patience I managed to reproduce it with ktrace default options, thanks for the help! Will analyze the result and see what's really going on
-
knielsen
Indeed, it looks like the tmpfs is returning incorrect data in this case. A write(343 bytes), then a read(387 bytes) then a write(44 bytes). The read sees the length of the file including the second write, but the data from the second write is missing (it just reads zeros).
-
RhodiumToad
hm.
-
RhodiumToad
can you show the actual part of the dump - use kdump -E to get timestamps
-
RhodiumToad
oh and also -H
-
knielsen
(3 different threads; and the read() returns before the second write())
-
RhodiumToad
also what fbsd version
-
RhodiumToad
(kernel version, specifically)
-
knielsen
RhodiumToad: yes, I'll collect the information, and I can also make the full dump file available (60MB)
-
knielsen
`freebsd-version -k` returns: 13.0-RELEASE
-
knielsen
`uname -a`: FreeBSD freebsd-130-amd64 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root⊙rnfo:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
-
RhodiumToad
13.0-release with no patches?
-
knielsen
RhodiumToad: Might be (or how can I check). This is a qemu/kvm VM setup for continuous integration, it might have been setup originally and never modified
-
RhodiumToad
ea31abc261f is definitely the original 13.0-release kernel.
-
RhodiumToad
I don't know if any of the 13.0 patches change the kernel but I bet they do
-
RhodiumToad
I believe 13.0 is out of support, too
-
RhodiumToad
so the question would be, can you reproduce on 13.2
-
knielsen
Right, I'd need to install a new VM for that...
-
knielsen
I searched for bugs mentioning tmpfs on bugs.freebsd.org, but didn't spot anything relevant
-
meena
I don't recall any tmpfs fixes between 13.0 and 13.2, but then again, my memory is shite. otoh, i do remember quite a few vfs fixes (again, my memory shouldn't be trusted)
-
» RhodiumToad needs sleep now
-
knielsen
RhodiumToad: Thanks for the help
-
knielsen
Here's the extract of the kdump output, showing how the read sees wrong data from a concurrent write to tmpfs file:
bsd.to/D94o
-
VimDiesel
Title: dpaste/D94o (Plain Text)
-
_xor
Is there a deterministic order to kernel modules loaded via /boot/loader.conf vs /etc/rc.conf?
-
meena
_xor: rc.conf should come after loader.conf, and iirc, should load modules in order of appearance in kld_list
-
meena
I would need to look at loader's code to say anything about that order
-
meena
but there's basically just two possibilities: alphabetic and declaration order
-
rtprio
rc might have other dependancies which could alter the order; but loader i would expect declaration order
-
knielsen
RhodiumToad, meena: This C program reproduces the problem for me when run on tmpfs in FreeBSD 13.0 (in a VM) :
bsd.to/3r5L
-
VimDiesel
Title: dpaste/3r5L (C)
-
knielsen
After typically a couple hundred iterations, it reads wrong data