libera/#devuan/ Monday, 2024-09-02

tempforeverI know it's way too late for the conversation, but it *is* possible to resize LVM encrypted partitions.  I did it once (found instructions online somewhere).  It seemed kind of complicated, don't plan on doing it again :-)04:29
tempforeverLUKS04:29
tempforeverfor a pretty new install, it makes much more sense to start over04:30
tempforeverAh, still had the page bookmarked.  https://help.ubuntu.com/community/ResizeEncryptedPartitions04:32
CueXXIIItempforever: sure, just resize all layers in the correct order. shrink: fromtop down, grow: from bottom up10:01
CueXXIIIfiguing out the correct sizes for shrinking can be tricky, though10:01
joergfsmithred: (re devuani) just occurrs to me that it's pretty pointless in the end, to have an encrypted system partition and unencrypted swap, no? Or is swap (possibly) encrypted in that config?11:01
joergCueXXIII: your "bottom" is the physical partition?  I'd prefer a inside-out (for shrink) and outside-in (for grow) terminology, with outside being the physical storage "container", innermost the filesystem11:04
fsmithredjoerg, good call. I missed that. Since they're using the live installer, they could let it make a swapfile in the root partition.11:07
fsmithredI know what CueXXIII is talking about, and I think I may have done it once. I'm sure I resized partitions in lvm and I'm pretty sure it was encrypted since it had sensitive information on it.11:09
fsmithredAnd to make it more exciting, it was done while the system was running.11:10
joergfsmithred: swapFILE is what I was about to suggest IF you want encrypted volumes11:10
fsmithredThe default setting in the live installer is 256mb. That can be changed in the config file.11:12
fsmithredIf it sees a swap partition it will ask what to do - use partition or swapfile11:12
CueXXIIIjoerg: yeah, bottom being the hard disk(s) and top the mounted filesystem11:14
joergI'm using configs since quite a while (a decade and maybe a half on top) where swap size << RAM size. I found swap eventually getting unbearably slow and the mere management metadata (tables, lists) for huge (>>RAM) swapfiles eat too much of my real RAM ;-)11:15
CueXXIIIat least my laptop i have swap >= ram for suspend-to-disk + the stuff i forget in /tmp11:16
CueXXIIIs/at least/on/11:17
joergneeds some special care for "suspend to disk" but then, you always should take care there, *adding* fresh unused swap (swapon) the total size of your RAM, immediately before shutting down the system. And of course swapoff it again after resume11:17
CueXXIIIhow much metadata does swap use?11:19
joergI'd had to look it up again, I forgot. But it was a surprising amount11:20
CueXXIIIi don't see a noticeable difference here for 10G swap, but then the system is not idle11:22
onefangSwapspace is good, it creates swapfiles as needed, instead of trying to figure out how much you might need in the future.  No idea how well that deals with suspend to disk, I never do that.11:54
* joerg created a swapfile size of RAM in system and just enabled it with "swapon $swapfile" in some script that gets invoked by the ACPI(?) suspend2disk process11:58
joergok, this info is massively outdated12:38
buZzwell, for hibernate i dont think a swapfile can work on crypted storage?12:39
buZzi'm not sure though12:39
joergdeprecated. Actually some say suspend2disk is mutually exclusive with encryption12:43
CueXXIIIencryped swap partition works, why should a swapfile not work12:43
CueXXIIIyour initrd must just decrypt the partition12:43
CueXXIIIok, i'm using linux' hibernation support, not the bios' suspend2disk12:44
buZzahhh right, CueXXIII12:44
buZzso initrd must be unencrypted12:44
buZz?12:45
buZzi guess /boot12:45
CueXXIIIyes, my /boot is not encrypted. but i read, grub can also decrypt luks volumes (some) to load the kernel12:45
CueXXIIIhttps://wiki.archlinux.org/title/GRUB#Encrypted_/boot -- https://bpa.st/PQVQ12:46
buZzfancy12:48
joergI'd guess a encrypted suspend-image_of_RAM gives away way too much regarding predictable data in predictable location in crypted image12:50
CueXXIIIthat would be a sign of using the wrong encryption12:50
joergmaybe the KEY is the problem, not the encryption algo?12:51
CueXXIIIeach block should be encrypted with a different key (usually generated from the volume key and the block number), so you can't compare 2 encrypted blocks to get the difference in the plaintext12:52
joergand where from you get the volume key?12:53
CueXXIIIthat is decrypted on the boot by a passphrase or passfile (eg. on an usb stick)12:53
joergsorry, this gets way OT for #devuan. Please move it to #devuan-offtopic12:54
CueXXIIIi just know enough crypto to not build my own12:54
joergI know *I* started this, my failt12:54
devuani<devuani> Hello. Anyone know how to fix mdadm error at boot. can't use laptop normally.14:06
joergwhere's an error?14:12
devuaniat boot. drops to shell14:13
joergthat's a message, not an error14:13
devuanimdadm : no array found in config file or automatically14:14
devuanithat's an error14:14
joergaha14:14
devuanitried alot of stuff.14:14
joergwell, we been there, discussed that, like 3 or 4 or 5 times, yesterday14:15
joergyou sound like you suffered amnesia since yesterday14:15
devuanisounds like you are gaslighting me14:16
devuaniwhat did you not get about: "tried alot of stuff"14:17
joerg[1 Sep 2024 22:36:47] <fsmithred> you can keep the partitions and use them  [1 Sep 2024 22:36:53] <devuani> ok14:17
devuaniWe stopped yesterday.14:17
devuaniAND?14:17
joerghttp://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T22:32:4314:18
devuaniI kept the partitions. And messaged to other people in discussion. maybe they had similar problem before14:18
joergdidn't we establish that a 100% filled rootfs is unrelated to a mdadm diagnostig message?14:18
devuaniWhy are you sure.14:19
buZz100% filled rootfs wont work well14:19
buZzregardless of mdadm or crypted fs14:19
devuanik then14:19
joerghttp://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T20:35:59  http://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T20:29:4614:26
joerghttp://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T19:47:42    http://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T19:23:3114:26
fsmithredthe mdadm "error" is not an error. Please ignore the message unless you are using RAID.14:43
fsmithreddevuani, ^^^14:44
fsmithredalso, you should consider using a swapfile instead of a swap partition, because the partition will not be encrypted.14:44
CueXXIIIdevuani: do you have a log from the boot / a screenshot?14:46
joergmaybe try a completely fresh install from scratch, without any fancy cryptfs/LUKS, just simply giving partitions some reasonable size then wait for the installer do it's thing?14:46
joergCueXXIII: nope14:47
joergthey are already jumping threads by themselves, driven by a lot of assumptions/guesses. The main problem is to help them keep on track with exactly one procedure, without digressing in between, inspired by any other alternatives14:50
CueXXIIIi know, but i don't think reinstalling would help without knowing the actual error14:51
joergthe actual error os df -h /  100% used 0% free14:51
CueXXIIIoh14:51
devuaniSo. should I use swap file instead?14:51
joerg4.5(?)GB rootfs partiton14:51
CueXXIIImake it 10G or 20G14:52
joergno14:52
joergO think we yesterday already achieved a partiton4 of sufficient size, and swap partition was "ok"14:52
joerg[1 Sep 2024 22:36:47] <fsmithred> you can keep the partitions and use them14:53
devuaniI have 450 mb boot efi14:53
devuani8 swap14:53
devuani5.5 boot14:54
joerghttp://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-09-01.log.html#t2024-09-01T22:24:0414:56
devuaniI can't resize encrypted14:56
CueXXIIIdevuani: how much for root / =14:56
devuaniyou mean system14:57
devuani21gb14:57
CueXXIIIsounds good, though you should not more than a few hundred M for /boot14:58
joergget rid of the encryption, try to install a plain standard system for now14:58
devuaniboot is 1gb14:58
devuanijoerg: ok14:58
CueXXIII"Mon 14:54 <devuani> 5.5 boot" -- 1G sounds ok14:59
devuanishould I create separate /boot and /home15:00
devuani?15:00
joergonce you managed to install an absolute standard system, without encryption and other advanced stuff, you know the basics and can redo with a few chrome decorations like cryptfs etc way more easily15:00
devuanijoerg: yea. hope it works15:00
joerg>><devuani> should I create separate /boot and /home<< yes15:00
joergdevuani: when anything doesn't work or just looks unexpected or suspicious to you, please *immediately* ask here with providing a screenshot or ideally text to termbin.com URL, and wait what the recommendation of fsmithred is regarding your question. Many thanks!15:04
devuanisetting up grub bootloader15:04
fsmithredI'm back. Yes the partitions were ok.15:04
fsmithredfour minutes and you're at the grub install? That's pretty fast.15:05
devuaniInstall complete!15:07
devuaniYou may reboot15:08
fsmithredcool. remember to remove the usb15:08
devuanidid15:08
CueXXIIIbut good catch with the 100% filled /, i would not have thought of that15:08
devuaniscreen different15:09
devuanimore full?15:09
devuaniusername15:09
fsmithredgraphical login?15:09
devuaniyes15:09
fsmithred:)15:10
fsmithreddesktop yet?15:10
devuaniOMG15:10
devuaniYes15:10
devuaniI'm in desktop15:10
fsmithredcool15:10
fsmithredthat was without encryption?15:10
devuaniyes15:10
fsmithredswapfile or swap partition?15:10
devuaniswap partition15:10
devuaniI maybe should try luks15:11
fsmithredyes15:11
devuaniI guess I keep same partitions15:11
fsmithrednote: since you will have separate / and /home encrypted, you will have to enter passphrase for each. You can create a keyfile later so you don't have to enter second time for home - that will be done by the keyfile.15:12
fsmithredyeah, keep them15:12
devuanifsmithred: how to create key file15:13
CueXXIIIdevuani: you should run "df -h" and see, how much space / actually uses. and then leave enough space to install additional programs15:13
fsmithreddevuani, let's cross that bridge when we get there. I have to look up the commands.15:14
joergcongrats! :-)15:14
devuaniCueXXIII: ok I try15:14
devuanijoerg: thanks15:14
devuaniI go with netinsall + luks15:14
devuaniI just prefer different DE15:15
joergnow that you know the standard install works, you may experiment all your dreams :-)15:16
devuaniNetinstall still gives cdrom no suck file or directory error15:16
joergyes, THAT is a known error15:16
devuani1 problem down. 1 to go15:16
joergsorry, I only know THAT it's known, but not what been the exact fix15:17
devuanijoerg: oh15:17
fsmithredif you have an extra usb stick you can dd the iso to it and I don't think you'll get the cdrom error15:17
devuaniso I have to dd the netinstall to live usb?15:18
fsmithredif so, I think it's possible to create a symlink as workaround, but it's been years since I've done that. I don't know if that still works.15:18
fsmithredit won't be a live usb, it will be the installer only. Nothing else will remain on the stick.15:19
fsmithredthat's why I said *extra*15:19
devuaniSo I like burm iso to stick15:19
fsmithredit uses the entire device15:19
fsmithredyeah15:19
devuanialso this will kill ventoy15:19
buZzyes15:19
fsmithreddd if=whatever.iso of=/dev/sd?15:20
fsmithredyou don't have another stick to use?15:20
devuanishould I use full dick as partition?15:20
devuanilike dev/sdb rather sdb115:20
fsmithredyes15:20
fsmithredalso, if you use netinstall, you can use encrypted lvm and then you don't need to make a keyfile.15:21
fsmithreddo you know your way around debian-installer very well? Setting up encryption and/or lvm manually can be confusing. Letting the installer decide partitions is easier but doesn't always give you the idea partition sizes.15:23
devuanifsmithred: ok Ibwill do it15:23
devuaniI will*15:23
devuanifsmithred: about lvm I did set uo it once on mint15:24
joergdoes that sound familiar? >><freepick> I choose full disk and configure lvm encryption <<  http://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-06-22.log.html#t2024-06-22T16:10:3915:28
joerghttp://reisenweber.net/irclogs/libera/_devuan/_devuan.2024-06-22.log.html#t2024-06-22T17:47:4615:41
joerg>><rrq>ah, yes, partman is buggy with UEFI<<15:42
joerg>><freepick>life was easier without uefi, secure boot, systemd, and all those similar things haha<<15:43
djphwell,UEFI did bring along GPT partitioning, which is nice ...15:54
devuaniUpdate. burning iso to disk fixes /cdrom error not found15:58
devuaniThanks to all for help. Have a good ones.15:59
devuaninetinstall16:00
fsmithredcool16:01
fsmithredso it's an issue with using the installer on ventoy16:01
fsmithredI think there's some discussion about this on the forum. dev1galaxy.org16:02
buZzventoy is just the issue imho :P i've had similar issues before16:41
joergmount: mounting LABEL=DEVUAN500 on /cdrom failed: No such file or directory16:46
joergmount: mounting UUID= on /cdrom failed: No such file or directory16:46
joerg*** failed to mount the cdrom16:46
joerg*** Starting emergency shell ..16:46
joerghttps://dev1galaxy.org/viewtopic.php?id=609416:46
joergventoy ^^^16:47
golinuxYes, I posted the url to the Ventoy discussion on the forum here yesterday16:47
joerggolinux: you're just supreme authority :-) Can't beat that16:48
joergmy problem: I never before heard of ventoy16:49
buZzsome kinda bootloader wrapper for 'many isos on a usbstick' , i dont think its a really serious tool16:52
djphit "works" for the most part.  I usually only see it used for getting windows garbage ISOs to be loadable from a linux source machine16:54
buZzi've just seen it used by people that reinstall their linux every ~week with different distro :P17:01
joergbuZz: >>i dont think its a really serious tool<< well, venTOY ;-)17:07
buZz;)17:07
freaxehi once had a ventoy installation suddenly just wipe itself, reinstalled ventoy and all was well.17:12
freaxehcould've been a usb flash drive issue but i doubt it that flash drive worked flawlessly from then on17:12
freaxehcould have been user error too, ie choosing the wrong drive to wipe at installation time17:13
joerg^^^17:14
joergthe most common error during installation17:14
golinux@joerg . . . supreme authority? Hardly. But I do keep close watch on most Devuan channels. ;)17:55
CueXXIIIsind katzen nicht montags eh immer grumpy?18:23
devuanconsumerI am having trouble getting my wifi 6e and bluetooth working on my Asus ROG STRIX B550-F GAMING WIFI II motherboard. I get the following errors when booting up.18:51
devuanconsumerfirmware: failued to load mediatek/wifi/mt7922_patch_mcu_1_1_1hdr.bin (-2)18:51
devuanconsumerbluetooth: hci-: failued to load firmware file (-2)18:52
devuanconsumerbluetooth: hci-: failued to setup firmware (-2)18:52
devuanconsumerI already tried installing firmware-misc-nonfree (20210315-3) and firmware-iwlwifi without success18:55
devuanconsumerI have also reset the bios and held down the power button for 60 seconds like some forums suggested18:56
devuanconsumerany suggestions? please help18:56
devuanconsumerthanks in advance18:56
devuanconsumerI am also upgrading to daedalus as we speak18:56
devuanconsumeris it necessary to restart the pc after upgrading the distribution19:02
devuanconsumeris doing a fresh install better than simply upgrading a chimaera system to daedalus?19:03
fsmithredyes, you should reboot after the upgrade.19:04
fsmithredhow new is that motherboard?19:05
devuanconsumerhey I remember you!19:06
devuanconsumerYou've helped me a lot before19:06
devuanconsumerlol19:06
devuanconsumerI just purchased it19:06
devuanconsumerDate First Available‎September 23, 202119:06
devuanconsumerso it's semi new19:06
devuanconsumerSome online users have gotten the wifi and bluetooth to work on linux since 2022 with different strategies, none of which have worked for me19:07
fsmithredwhat version of firmware-misc-nonfree do you have installed?19:17
fsmithreddammit19:17
joergthey'll be back19:24
devuanconsumerI needed to restart my pc19:31
devuanconsumerdid I miss any solutions for the wifi 6e and bluetooth?19:32
fsmithredwhat version of firmware-misc-nonfree do you have installed?19:34
fsmithred^^^ that was the only thing I said after you left19:35
fsmithredis daedalus any better?19:35
devuanconsumerlet me check19:36
devuanconsumeroh i see i uninstalled it but i will reinstall it as i see there is a 2023 version now, i had tried the 2021 version on chimaera19:36
fsmithredok. good19:36
devuanconsumeri will try it now19:39
devuanconsumerI get this error19:40
devuanconsumerwhen installing it19:40
devuanconsumerW: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:619:40
devuanconsumerW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:619:40
devuanconsumerW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:619:40
devuanconsumerW: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:619:40
fsmithredyou'll be able to speak again soon. Don't paste a bunch of lines here.19:41
devuanconsumerok it worked!19:44
devuanconsumerthank you so much19:44
devuanconsumerhow can I check if bluetooth is working?19:45
devuanconsumeri can't remember the name of the app19:45
fsmithredblueman and bluez I think19:45
fsmithredapt-cache search bluetooth19:45
fsmithredand you have duplicate lines in /etc/apt/sources.list that should be removed (or commented)19:46
devuanconsumeri have blueman installed but i dont see the graphic interface19:48
fsmithredSettings -> Bluetooth Manager19:51
fsmithredinstall bluez19:52
devuanconsumerthank you!19:52
devuanconsumerthanks for your help fssmithred20:06
fsmithredyw20:07

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!