libera/#devuan/ Monday, 2023-10-30

Xenguyfsmithred, How do you determine the RAM usage, 'free' or ...?00:17
brocashelmxenguy: i use ps_mem.py00:23
brocashelmrefracta comes with it by default: sudo ps_mem.py00:24
brocashelmotherwise, just download the script to /usr/local/bin: https://github.com/pixelb/ps_mem00:24
XenguyGood to know, though I tend to look for more mainstream/traditional utilities wherever possible00:25
XenguyInteresting, apparently 'free' just leverages /proc/meminfo00:54
brocashelmvmstat is also useful01:03
XenguyYes, ran across that while down this rabbit hole, and 'glances' looks intriguing, but is a bit bloated to install01:12
XenguyThere's atop, but I'd need to take the course to interpret the output01:15
Xenguynmon looks interesting, I've never heard of half of these utilities01:22
fsmithredXenguy, yeah, I use ps_mem.py. I'm not sure if I'm using the one that brocashelm linked. There are a few floating around.03:33
fsmithredV3.13     17 Sep 2018  And I think I had to edit the shebang to say python3 instead of python.03:36
n4diryup, you have to do that now.03:37
n4dirit has "env" in the shebang, then python, remove the "env" and replace it with whatever is there for /usr/bin/python*03:37
fsmithredhi03:37
n4dirhi there. It is like that for so long, i wonder why it doesn't get changed. Perhaps it works on other distros03:38
fsmithred  #!/usr/bin/env python303:38
fsmithredI think some have a symlink for python3 so it doesn't need it inside the script.03:39
n4dironce i figured out what the problem was, it is an easy fix, and also not hard to remember. Often i do it right after downloading, else after i get the error03:39
Necrodiveri installed a package called python is python3 or something03:41
n4diroh, so the problem is the plain "python",  not the "env", it seems. Good03:42
n4dirNecrodiver: yup, that is the name -> python-is-python3 - symlinks /usr/bin/python to python303:43
Necrodiveryeah exactly03:43
Necrodiverjust made my life easier03:43
n4dirnot much fun to apt-cache search for it, but with a bit of fiddling, i found it, good tip03:43
fsmithredI'm headed for bed. See you all later.03:46
n4dir:-)03:46
Xenguyo/03:47
_RandomHi Guys, has anyone run CasaOs. on top of Devuan. I know it works well with the debian base (systemD), would there be any reason why there maybe issues with Devuan?13:42
_Randomhttps://wiki.casaos.io/en/get-started13:44
buZzi dont get what it even is14:08
buZz> CasaOS is a community-based open source software focused on delivering simple home cloud experience.14:08
debdogNAS softwareß14:09
fsmithredOn another site it says that it runs on Docker14:09
fsmithredCasaOS’s integration with Docker means that virtually any Docker image can be converted into a CasaOS app.14:09
buZzis jellyfin the only 'app' it wraps ?14:10
fsmithredThere are some devuan docker images14:10
buZzits the only one on https://wiki.casaos.io/en/apps14:10
buZzit seems jellyfin had some fixes for running on devuan14:12
buZzhttps://github.com/jellyfin/jellyfin/pull/113914:12
_Randomyou can run it on VM's etc. I needs a linux base. most bases seem to be systemd with the exception of alpine.14:35
_Randomthere some really good YT videos on it.14:36
_RandomI refuse to use systemd14:36
n4dirsomeone uses handbreak or knows it and remembers that one dependency you need so you can use it?14:38
_RandomI'll try it out on devuan tomorrow. its nearly 1 am now. time to crash. thanks all.14:44
buZz_Random: what 'apps' is it for? only jellyfin?14:44
_Randomno. even reverse proxy & cloud. dockers can be installed on it. It looks quite amazing.14:45
onefangn4dir: You mean handbrake?14:46
_Randomgoodnight.14:46
n4dironefang: i assume14:47
buZznn random14:47
buZz'cloud' :D lol14:48
buZzamazing app that, sky is full of em!14:48
onefangHandBrake, "Versatile DVD ripper and video transcoder" has 30 Dependencies, 2 Recommends, and a Suggests.  I've used it a few times, don't recall any specific dependency other than the ones it lists.14:51
buZzhandbrake afaik just depends on some gui libs and ffmpeg?14:51
onefangThere's CLI and GTK versions.14:52
n4dirif what i ask for was listed in the dependencies, there would be no need to ask for it :-)14:53
n4dirprobably libdvdcss14:54
onefangWell perhaps this- wysterious dependency was already installed on my system.  Is there an error message or something?14:54
buZzoh, could be14:55
buZzi keep forgetting optical media was a thing14:55
buZzholy f14:55
buZzbuzz@h81m:~$ ldd `which handbrake`| wc -l14:56
buZz20014:56
buZzyou want that output, n4dir ?14:56
n4dirno, i asked which was that one dependency not needed.14:56
n4dirnot listed, damn14:56
buZzhttps://paste.debian.net/1296711/14:57
gnarfacehandbrake is in the repos, perhaps whatever permissions problem you remember has been solved since daedalus15:02
gnarface?15:02
gnarfaceer, not permissions problem, dependency problem i mean15:02
gnarface(but libdvdcss and ffmpeg both seem like good guesses as to what it was missing before)15:03
n4diri sure don#t find libdvdcss anymore15:03
n4dirassuming that was it, but it sure sounds familiar.15:03
gnarfacelibdvdcss was never in debian. you got it from the videolan repos15:03
buZzi note my handbrake isnt linked to dvdcss15:04
gnarface(and you don't need it unless you're working with commercial media)15:04
buZzmaybe it cant read dvds now from my nonexisting drive15:04
buZz:D15:04
n4dirso you have an app installed you don't use or need?15:07
buZzi've used it to transcode some files15:07
onefangI guess that brings up the question - use it for what exactly?15:07
buZzsometimes 'looking up ffmpeg parameters' is just too much effort15:07
buZzor commandlinefu.com is down15:07
buZzw/e15:07
buZz:)15:07
gnarfaceyea, i can sympathize, but if you need help figuring out ffmpeg let me know15:08
buZz<315:08
onefangI've not used it for ripping DVDs, but transcoding video files.15:08
buZzi have a small lookup for stuff like that ; https://nurdspace.nl/User:Buzz/Foss_Video15:08
buZznot enough :)15:09
n4dirprobably that, which is not in the actual stable, as far i can see: https://packages.debian.org/search?suite=all&section=all&arch=any&searchon=names&keywords=libdvd-pkg15:10
n4diri saw it wrong ...15:10
gnarfacei used to go into #mplayer to get help with mencoder, and back then they were very helpful about teaching me ffmpeg15:13
gnarfacein the end i managed to get my bearings with that well before i was able to figure out how to make a working build of whatever gui alternative i was trying to make work at the time instead (OBS maybe? i forget now)15:15
gnarfacelibdvdnav is for menu rendering, libdvdread is just for bare access, and libdvdcss is for decryption15:16
gnarfacewith many programs, libdvdnav and libdvdcss are optional15:16
gnarfaceyou can still read unencrypted dvds and access titles/chapters by numbers15:17
onefangWell HandBrake does many things, n4dir hasn't told us which of those things is not working for them, and some of us have mentioned which of those things work for us.15:18
gnarfacelibdvdcss was a hot potato legally, so the videolan project kept it in france where their copyright laws protect its existence15:18
Necrodiverlibdvdcss is probably considered "illegal" here in Japan15:19
Necrodiveri dont know but my guess is that it would be15:19
onefangDMO has libdvdcss2 for oldstable.15:20
n4dirapt-get install libdvd-pkg; dpkg-reconfigure libdvd-pkg15:20
onefangn4dir: That solved your problem?15:32
n4dirthat is how you install libdvd-css without using the debian multimedia repo15:33
n4dirduckduckgo understood the question without any problems15:33
gnarfacethat builds them on the fly or just downloads them from videolan.org?15:34
gnarfaceor does it actually get the deb-multimedia ones?15:34
gnarface(would advise against using the deb-multimedia stuff, high rate of package conflicts)15:34
n4diri didn't read about that. And, truth to be told, i don't really care how it works. Next time i will use handbrake again is probably in another 2 years15:34
gnarfaceindeed15:35
n4dirfirst thing i realized when arriving at home that i need to switch the machine so i have a DVD drive.15:35
n4dirthen put the ripped version on a stick, attach the stick to the TV, then probably will realize the movie is crap.15:38
onefangThe description of libdvd-pkg says it downloads source files and compiles them.15:40
AnOldHackerI've got a Dell Latitude.  I...uhh... blew away a bit too much of the partition table & can't figure out how to build things to boot.  It seems almost certain that it is an UEFI issue, but the advise at https://wiki.debian.org/UEFI#Quirks.2C_workarounds_and_special_UEFI_features_in_Debian_and_Debian-Installer did not seem to help.  Is there a good pointer somewhere for this?  (I'm live booting off a usb drive).17:04
gnarfaceAnOldHacker: stick around, someone knows17:04
gnarfacehttps://wiki.debian.org/InstallingDebianOn/Dell17:07
gnarfacehttps://wiki.debian.org/InstallingDebianOn/Dell/Latitude749017:07
gnarfacemaybe one of these will help17:07
gnarfaceyou're probably right about it being a UEFI thing, you might need to actually change a UEFI setting17:07
gnarface... or find the existing efi partition and re-use it or something like that17:08
AnOldHackerOh, that partition is _long_ gone... =-O17:08
AnOldHackerI might be able to reload it from Dell via the internet, but it will be a windows booter...17:09
AnOldHackerThis is a 7520.  I'll look at that site, though.17:09
onefangYou can't just create a new partition table from the installer?17:10
AnOldHackerYep.  But the drive is not being recognized as bootable.17:10
gnarfaceso i vaguely recall that after creating the efi partition with the installer, you have to go into the motherboard's actual efi interface and "assign" it or "approve" it or something like that? sorry, i should know this stuff but i've been avoiding efi out of paranoia17:12
gnarfacewhatever is missing though, you're like the 3rd person to ask in the last week alone, and it's simple, whatever it is...17:12
gnarfacesomething to do with secure boot17:13
gnarface(you might just be able to disable secure boot but i think there's a "right way" to use it)17:13
AnOldHackerI disabled secure boot right away... :D17:16
AnOldHackerBut...  it's worth rechecking.17:17
gnarfaceonefang: that bug where you'd have to rename /efi/debian to /efi/devuan or whatever it was isn't still present, is it?17:18
AnOldHackerYep.  Secure boot is still off.  It makes me feel a bit better that I'm not the only one with this problem...17:18
gnarfaceAnOldHacker: try stepping through this, see if you discover anything: https://wiki.debian.org/GrubEFIReinstall17:19
onefangNo idea.  Grub bug?  I use rEFInd instead.17:19
gnarfaceAnOldHacker: while following through that, just pay attention to whether it says /boot/efi/EFI/debian/ or /boot/efi/EFI/devuan/ and consider changing it to the other or symlinking or something17:20
gnarfacefsmithred: if you've got a chance, could you please step in and remind me just one more time what advise i'm supposed to give out in these situations? ^^17:21
AnOldHackerOkay.  Thanks.  I'm supposed to be working right now, so this won't be a 5-minute thing.17:21
Necrodiveri had a ton of issues with installing refracta on a latitude 549017:22
rwpI wish there was good documentation on UEFI booting.  Oh there lots of documentation.  Most of it not-good.17:22
Necrodiverbecause of uefi17:22
Necrodiverfsmithred helped me out with it17:22
gnarfaceAnOldHacker: no worries, just stay connected if you can, someone will eventually show up who knows what to do.17:22
onefangrEFInd is also worth a try.  An EFI bootloader that looks for things to boot at boot time.17:23
rwpJust a reminder that with UEFI half of the required booting parts is on disk in various places and the *other half* of the required booting is in the non-volatile CMOS RAM.  Use efibootmgr to manipulate the RAM variables.17:24
onefangWhich you could probably deal with just by going into the BIOS settings and telling it "boot this thing here".17:25
rwpIIRC one of the advantages of rEFInd is that it installs itself as both the primary and the fallback boot option both on disk and in the efibootmgr which gives it the best chance of booting.17:25
fsmithredAnOldHacker, does fdisk show any partitions? Can you mount any of them while in the live session?17:29
onefangOr gparted if you prefer something more pointy clicky.17:30
rwpIf it were me (bring a craphound I have extra parts) I would remove the disk with the install on it so it is safe and then install a new disk and do a fresh UEFI install upon the new disk.17:31
rwpThen I would copy off the EFI System Partition.  Then swap disks back and restore that backup onto the old EFI.  If the problem is that the old EFI System Partition was destroyed then that should restore it.17:31
rwptypo fix: s/bring/being/ a craphound17:31
schillingklausi hate everything pointy clicky17:31
onefangfdisk it is.  B-)17:32
fsmithredIf the partitions exist and it just needs the bootloader reinstalled, that can be done with the installation media in rescue mode.17:32
rwpThe advantage is that being a fresh installation it will have set up the partitions as needed for UEFI and then can be used as a reference for rescuing the troubled system.17:32
AnOldHackerOr, you know, just read the docs about multi-boot BEFORE trying to create one after not having messed with anything like that in 8 years?  =-O17:32
fsmithredor with a live iso by mounting stuff and working in chroot17:33
AnOldHackerI'm livebooting to USB just fine, so I mounted the drive, and tried making the suggested change from the link I mentioned before to no help.17:33
rwpI have found multi-boot with EFI to be...  difficult.  Almost all of my systems have buggy UEFI boot firmware.  For multi-boot on my buggy systems only rEFInd is a possible workaround here.17:33
fsmithredmount root partition, mount efi partition to /boot/efi17:34
fsmithredthen you need to do some bind-mounts and then chroot and then grub-install (with no device)17:35
rwpfsmithred, Re: Your chroot suggestion. Can one emulate UEFI in a chroot okay?  I don't know how I would do that but it sounds interesting.  I would need to UEFI boot in a KVM virtual machine.17:35
fsmithredinstaller iso is easier - go into rescue and select "reinstall bootloader"17:35
fsmithredyeah, I've done it many times. What I'm not sure about is if I now need to mount efivars in addition to the efi partition.17:36
rwp+1 for using the installer in rescue-mode as that is a great solution for most rescue needs.17:36
fsmithreddid not need to do that in the past17:36
onefangI've never had to mess with efivars directly.17:37
onefangThink I did it once just out of curiosity.17:37
rwpAnOldHacker, Let me strongly suggest trying the installer in rescue-mode as suggested above before doing other more difficult things.17:37
fsmithredI ran into it recently, but maybe because I was doing it in a VM17:37
AnOldHackerrwp: I've got a USB live-boot.  How do I access the rescue-mode installer?17:39
fsmithredAnOldHacker, you would need to image a usb stick with a different iso17:41
gnarfaceAnOldHacker: (the netinstall is the smallest one that contains it)17:41
rwpAnOldHacker, You would need to boot the installer ISO like the netinst image and then select Rescue mode from the Advanced options.17:41
gnarfaceAnOldHacker: did you try to make a dual-boot system using the live iso's install feature? that could be where things went wrong...17:42
fsmithredlive installer does no automatic partitioning. It's up to the user.17:42
fsmithredgparted or gdisk17:42
rwpI'll just note that less intrusively I have had luck running "dpkg-reconfigure grub-efi-amd64" which does a lot of stuff and sometimes is just enough to restore booting.17:44
fsmithredbbiab17:45
Wonkadoes that do something different than 'grub-install --target=x86_64-efi'?17:48
AnOldHackergnarface: Things went wrong when I arrogantly failed to read the docs for a process I had not done in almost a decade.17:52
bootdevplzstill cant boot devuan17:53
bootdevplzon amd64, from ~2014, can I install non-efi, normal MBR grub?17:53
bootdevplzI do not see even option to select non-efi target... what/17:54
gnarfacebootdevplz: it's supposed to work... which iso did you use?17:55
bootdevplzI think the normal install, or netinstall. how to check? its mounted now17:55
bootdevplzim in livecd17:56
bootdevplzI mean, im in rescue mode17:56
gnarfacebootdevplz: just tell me the file name you downloaded and i can figure it out from that17:56
bootdevplzdont have it here17:57
gnarfacebootdevplz: you're sure it's not EFI?17:57
bootdevplznot 100% sure.17:57
gnarfacewhat's the motherboard model?17:58
bootdevplzits old computer like 2014, and debian worked there in that time17:58
rwpIf it is an old computer then it is most likely going to boot Legacy BIOS mode.  Which is good.  Most reliable.17:58
rwpIn which case you can ignore all of our UEFI discussion above.  (breaths a sigh of relief)17:59
gnarfaceyea, but that's right at the era where it might have a dual-mode bios17:59
onefangbootdevplz arrived after all that EFI chatter.17:59
rwpPossibly.  And also possibly the CSM compatibility boot mode.17:59
bootdevplzis there a way to check from linux?18:00
gnarfacebootdevplz: you might be able to get the model # from the output of dmidecode18:00
rwpI will "ls -l /sys/firmware/efi/" and see if it says something.  If so then it is UEFI.  If not then it is legacy.18:00
AnOldHackerUEFI only.18:01
bootdevplzafair that dir is empty unless I boot (rescue mode) with efi=runtime18:01
rwpI got that hint from fsmithred by the way.  (Thanks fsmithred!)18:01
* rwp must drop afk for a short while18:02
* onefang goes AFK for a long time, sleep time.18:11
* mason isn't AFK at all, but has a meeting coming up.18:14
masonBut my not-offtopic recommendation: dmidecode  | grep "UEFI is supported"18:16
bootdevplzif I ever make a mainboard, it will dmi report "UEFI was a mistake"18:17
gnarfaceheh18:18
bootdevplzAward Software Inc  (what they got it for anyway?)18:19
bootdevplzrelease date 201118:19
bootdevplzsupported: pci, pnp,  boot from CD (there was a question in bios to boot from CD with or without efi)18:19
bootdevplzedd supported18:20
bootdevplzthere is no word -i "efi" in there18:20
bootdevplzgigabyte h61m-d2-b318:20
masonHm, checking here. Oldest I've checked so far is "Vendor: American Megatrends Inc." "Release Date: 10/08/2012"18:21
bootdevplzhow to install non-efi on there? on 1 tb disk, 1st partition is 2 gb for boot18:22
bootdevplzthough... the disk is partitioned with "gpt".  I need to re-partition it? :/18:22
gnarfacebootdevplz: gigabyte.com confirms dual-mode bios/efi. if you want to boot in legacy bios mode you have to go into the mobo interface and set it explicitly (though in theory efi should also work afaik)18:23
masonbootdevplz: You can install legacy mode on GPT, you just include a biosboot (type ef02) partition.18:23
bootdevplzok  /dev/sdb1 is BIOS boot  type, 1.9 G18:23
bootdevplzext418:23
bootdevplzgrub-install /dev/sdb  says:  installing for x86_64-efi platform.  error cannot find EFI directoryu18:24
masonbootdevplz: Make sure you have grub-pc installed, not grub-efi-amd6418:25
masonif you want to install legacy grub18:25
bootdevplzls /usr/lib/grub  says  x86_64-efi  x86_64-efi-gigned  and grub-mkconfig_lib.  no legacy/normal there18:25
masonapt install grub-pc18:25
fsmithredbios_grub or bios_boot partition for legacy boot with gpt should be at least 1MB, and no filesystem on it.18:25
bootdevplzI am chrooted into /target in rescue mode.  can I install grub-pc without internet maybe?18:25
masonHrm, I only give my gptboot partitions 128K here.18:26
fsmithredyeah, the deb package is probably in the iso somewhere18:26
fsmithredmason, they work?18:26
masonYes.18:26
mason1M won't hurt anything of course18:27
fsmithredI usually do 2 or 4, so I've been wasting space.18:27
bootdevplzthere is pool DEBIAN main g grub2 .....  .deb18:27
bootdevplzjust dpkg -i  on it?18:27
fsmithredyeah18:27
fsmithredand the corresponding -bin package18:28
bootdevplzit will not mess apt database or smth?18:28
fsmithrednot if you're in chroot18:28
bootdevplzcan we change Devuan so that is always installs grub-pc package into installed os?  and also btw. vim and mc18:29
bootdevplzjust a bit easier18:29
gnarfaceunfortunately there's probably no easy solution that will work for everyone, but you can make your own custom installer18:31
bootdevplzcant install from dvd dpkg i:  dependency:  grub-pc-bin depends on grub-commion = 2.06-13 however version of grub-common on system is 2.06-13+deb12u118:31
fsmithredoh, I guess you do need internet.18:32
fsmithredoh, --force-downgrade18:33
fsmithredand install the whole bunch from deb packages18:33
fsmithredI think there are four of them.18:33
bootdevplzthere is no such option to dpkg as --force-downgrade18:37
bootdevplzbut --force depends   worked18:38
gnarfaceshould be, according to the man page18:38
bootdevplznot in my 1.21.2218:39
fsmithredyeah, I've done it many times18:39
bootdevplzworked.    grub-install --target=i386-pc18:41
fsmithredCOOL18:42
bootdevplzbut in this /boot there are no kernels18:42
fsmithreddo you have a separate partition for /boot?18:42
bootdevplzyes,   /dev/sdb1 is for /boot only18:42
fsmithredthen I guess it's not booted18:43
fsmithredsorry18:43
fsmithredmounted18:43
bootdevplzit s mounted, but I just dpkg -i grub-pc....  I guess need to reinstall kerneks18:43
fsmithredmount /dev/sdb1 /boot18:43
fsmithredwhere did they go?18:44
bootdevplzI used sda1 for old boot18:44
bootdevplzjust copy the files above grub, that is, System map config initrd and vmlinuz?  will need to regenerate initrd I bet18:45
gnarfaceit's possible for them to change orders between reboots, make sure you're using the right one still18:45
gnarfacekernels should have been installed already, but you can always reinstall them...18:45
bootdevplzin the current repair, I move from EFI to legacy boot, but at same time I decide to have  /boot on the other, 1 TB, disk18:45
bootdevplzor... is the legacy boot able to handle 4 tb disk as long as /boot is before ~1 TB wall?18:46
fsmithredlegacy boot with gpt partitions will work18:46
fsmithredit's the partition table that is the limiting factor18:47
bootdevplzok lets use same partition then18:47
bootdevplzmaybe installer should just ask whether to use legacy MBR or EFI install18:49
gnarfaceit definitely has that option, at least in manual partitioning mode18:52
bootdevplzanything else needed after grub-install, like, to regenerate Systemap or anything?18:52
bootdevplzor mkinitramfs18:52
gnarfaceupdate-initramfs18:53
bootdevplzthats all?18:54
gnarfacemaybe18:54
bootdevplzLoading Operating System ...18:55
bootdevplzGRUB _18:55
bootdevplzsame result when booting 1st and 2nd hdd18:56
bootdevplznot even grub rescue18:56
bootdevplzpreviously it didnt shown "GRUB _"18:56
bootdevplzso its kind of progress18:58
bootdevplznow from 2nd disk it said "GRUB GRUB _"18:58
bootdevplzdo I need to nuke EFI partition or something? i dont see clear option in bios to tell it to boot efi or not19:00
bootdevplzGRUB GRUB GRUB19:02
fsmithredgrub-install && update-grub19:07
fsmithredsecond command makes the boot menu19:07
fsmithredif you know your way around grub command line, you can boot and fix it.19:08
fsmithredset root=(hd1,1) (maybe 1,1 or something else?)19:09
fsmithredlinux /vmlinuz ro root=/dev/sd??19:09
fsmithredinitrd /initrd.img19:09
fsmithredboot19:09
fsmithredafter boot run update-grub19:10
bootdevplzfsmithred Im NOT in grub shell even yet.  will try that update-grub in chroot tho19:38
bootdevplzor can I run these GRUB commands from the installer DVD somehow?  pressing TAB is not ideal, can  Iget normal grub shell thing19:43
gnarfacebootdevplz: use the chroot. make sure you bind-mount /sys, /proc, and /dev19:49
gnarface(maybe also /dev/pts but i think for this it is not needed)19:50
fsmithredThe installer isos don't use grub, so there's no grub shell unless you can boot the installed system19:51
fsmithredInstaller DVD should have "reinstall bootloader" somewhere in the rescue menu19:52
hagbardGrub rescue images do exist somewhere.19:59
bootdevplzwhat can be broken, with just 1 (4tb) disk,  partition 1 has ext4 marked in gpt as Boot21:15
gnarfacebootdevplz: and the live iso still boots? user error or a bug in grub. did you try LILO?21:18
gnarfacei thought you said you wanted to boot this with MBR though? that is not GPT21:19
fsmithredcat you post the output of 'fdisk -l' on paste.debian.net?21:19
fsmithredcat/can21:20
gnarfacebootdevplz only other related issue i can think of, i had seen a GPT table used by a windows 7 install leave some cruft at the beginning of the disk that was neither removable by the devuan installer's partitioning tool nor by gparted when switching to MSDOS(aka "MBR") partition type but still sabotaged boot. zeroing the first few megabytes of the disk with dd then starting over would solve that.21:31
gnarfaceAnOldHacker: ^ i dunno but there may be an outside chance this information helps your situation too21:31
gnarfacesrbootdevplz: (incidentally though, the thing you report where it just goes "GRUB_" then hangs, that i saw once on an old Dell and the only thing that fixed it was changing to LILO)21:32
gnarfaceer, bootdevplz ^ sorry21:33
bootdevplzgnarface it was said above you can boot non-efi/MBR with the GPT partition table, using Boot something as part type21:34
gnarfacebootdevplz: yea, i saw that said too but it's the first i'm hearing of it and i've never tried it so i can't confirm it works21:35
bootdevplz1977 - humanity launchers atomic powered probe into deep space, that goes on for 40+ years, while communicating over billions of KMs and receiving software update that way21:36
gnarfacealso, if you have 4 or less partitions and a bios from 2014, GPT has little to no functional value to you21:36
bootdevplz2023 - can't boot a regular PC from few years back21:36
bootdevplzgnarface disk is 4tb, isnt GPT required, I think it tops out at 2 TB limit21:39
bootdevplzI mean msdos (MBR-table-format) can't address 4 TB disks21:39
gnarfacei thought that was outdated info21:40
gnarfacei guess i can't say i've tried 4TB disk21:40
gnarfacetrying to find more information than one passing reference to "... though in some cases sizes up to 16TB are possible" in a old redhat pdf from 201721:44
gnarfaceLILO probably works fine with GPT too though21:45
gnarfacehmm, maybe the trick with MBR though is to just use larger sector sizes. what was the physical sector size of the disk you're using?21:46
gnarfaceif it's 4096, maybe you'll find you don't actually have any problem21:47
gnarfaceAIUI the "2TB" limit was based on 4294967295 512-byte sectors21:47
fsmithredThe trick to using legacy bios boot with gpt partitions is to have the correct extra partition that I described above21:48
gnarfaceanyway, i think there's a fair chance that the issue you're seeing also could be somehow caused just by switching between the two partition types without fully flushing the old one21:48
fsmithred1MB with no filesysem and flag ef02 (in gdisk) or bios_grub (I think that's right) in gparted.21:49
bootdevplzfsmithred uhm, I just have sda1 to that bios boot, its ext4 with /boot21:50
fsmithredI don't understand that sentence.21:50
fsmithredhow many partitions do you have?21:50
fsmithredwhat does "it's ext4 with /boot" mean?21:51
fsmithreddo you mean you have a bios_boot partition mounted at /boot?21:51
fsmithredand it has ext4 filesystem on it?21:52
fsmithredto boot gpt with legacy bios boot, you need...21:56
fsmithred1mb ef02 partition with no filesystem21:56
fsmithreda root partition21:56
fsmithredwith no flags21:56
fsmithredoptionally a separate partition for /boot21:56
fsmithredagain, no flags needed on that one21:56
fsmithred4TB disk will work that way. I've done it.21:58
bootdevplzok one moment22:00
bootdevplz4 TB disk:  GPT table.    1) 1 GB ext4 used as /boot with the kernel and all as from Devuan install22:03
bootdevplz2) ~30 mb fat, unused22:03
bootdevplz3) 450 GB encrypted data22:03
bootdevplz4) 950 GB of RAID mirror, that forms the luks with LVM of root filesystem22:04
bootdevplz5) 22 GB left free22:04
bootdevplz6) 1 GB used as EFI / ESP  (Devuan installer was trying to install into that)22:04
bootdevplzthis was the boot HDD, and it failed to boot right after devuan install22:04
bootdevplzhow to change that into using Grub without EFI.  would like to keep existing partition 3 and 4 with the data22:05
fsmithredyou need to add a partition that is at least one megabyte in size and does not have a filesystem on it.22:05
fsmithredgive it a flag of ef02 in gdisk22:06
bootdevplzfsmithred does it have to be the first one?22:06
fsmithredno22:06
bootdevplzso mere existence of that partition is a signal for some mainboards to boot from this GPT-partitioned disk??22:06
bootdevplz(in non-efi mode)22:06
fsmithredyeah22:06
bootdevplzlol weird. ok..22:06
fsmithredI'm not sure if it needs to be near the beginning of the disk22:06
fsmithredhang on, I think I can check to see what I have.22:07
bootdevplzk22:07
gnarfaceyou could shave it out of that unused 30MB fat partition22:07
bootdevplzgnarface yeah.  will try that now22:08
bootdevplzand after that partition exists, mainboard firmware will try to run MBR sector of that disk, that has the code and information to load rest of grub from ext4 in sda1 and then load the kernel from it? convoluted a bit22:09
gnarfacewe can hope22:09
fsmithredyou probably need to do grub-install and update-grub again22:11
fsmithredand I can't get to the machine in question now to see where I put that partition.22:11
fsmithredBut I'm about 95% sure I've put it other than first.22:12
rrqbootdevplz: I think the EFI partition at least needs to be block addressable with 32 bit address22:12
fsmithrednot efi booting here22:13
fsmithredlegacy boot with gpt22:13
bootdevplzplease add script to easily populate /target even when I need to take manual steps to mount root fs (raid luks lvm)22:14
rrqah sorry; returning to morning coffee22:14
bootdevplzlike maketarget that mounts proc dev there22:14
bootdevplz*you could call it "maketarget" and it would just execute these 2-3 lines to mount dev proc and mkdir /target first.  make it a separate step before trying to mount target root22:15
fsmithredinstaller iso should do all of that in rescue mode22:16
fsmithred"open a shell in the installed system"22:16
bootdevplzfsmithred it fails to mount root fs, because it doesnt know how to handle case where encrypted partition exists on top of raid mirror22:19
bootdevplzinstead asks for password for /dev/sda5 instead of assy md0 and asking pass for that22:19
bootdevplzso i just do these commands in shell, but then it would be nicer to continue,  or a step to just mkdir /target  and mount proc dev. it also serves as hints what to do for people who cant find out22:20
gnarfaceisn't that just missing cryptsetup package?22:21
gnarfacei think you just need cryptsetup-initramfs installed22:21
gnarfaceor something like that22:21
gnarfacemaybe some of the other cryptsetup* packages too22:22
yauzIs the "expert install" in textmode supported at all? Because a) choice of filesystems are ext2, fat12, fat16 b) it doesn't install a boot loader - which is kinda not useful.22:51
yauzJust checked, it seriously installed root on ext2 .. in 2023.22:52
debdoghmm, I've never used anything besides text mode expert install and I am not able to confirm the behaviour you've described.22:53
debdogexcept maybe you're talking about the EFI partition?22:54
gnarfaceyauz: did you choose manual partitioning?22:54
rrqyauz: make sure to "load components" before partitioning22:54
yauzMachine is a Pentium class Geode. EFI wasn't a thing when those were designed.22:54
debdogright, skipping steps might cause something like that22:55
debdog*accidently skipping steps22:56
rrqis there an "accidentally" when one uses expert mode?22:57
yauzWell, I skipped braille & speech synthesizer, having fortunately no need for those ;-)22:58
debdogwell, "accidently" as in not consciously perceived wrong inputs22:58
debdog"expert mode" does not exclude routine22:59
debdogor just a lag regarding input devices, AKA keyboard23:00
yauzNothing useful (for this) in load installer components: OEM driver disks, iso-scan, load-media, lowmem, lvmcfg, mdcfg, netcfg-static, network-console. That's all. It's the devuan_daedalus_5.0.1_i386_server.iso image.23:01
yauz(that's a lot less than I'm used to seeing with Debian itself)23:01
rrqthe full range of available filesystem formats come with the additional components; the menu are just for the optional ones.23:02
rrqI'm not sure why the installer is built in that way rather than including them in the initrd. but it has been like that at least the last 5 years.23:07
rrq(which many nowadays consider being "a long time")23:09
gnarfaceyauz: you should at least still be seeing ext4 on there... what partitioning mode did you use? automatic? guided? manual?23:13
debdogbut even then, I've never messed with this option and had more file systems, so that's set as default. why would any insallation divert from that? some automagical hardware detection thingy?23:13
rrqto be clear: that step needs to be run so as to install all filesystem modules. they are not mentioned in the menu.23:15
rrqit's like a hidden side effect of that step23:15
debdogok23:15
rrqi think various filesystems were in the menu in the olden days, and then have got promoted to unaviodable.. without changing installer very much23:17
rrqsomething like that could possibly explain that peculiar "design"23:18
debdogwell routine. there is one selection I never mess with. but I don't recall exactly which options are there23:18
rrqnetwork-console is a fun one23:19
yauzPartitioning: manual, like the last 20y on Debian. Interesting, I skipped from "load installer components" to "detect disks" and _now_ I get a regular choice of filesystems. I wonder what weird edge-case I accidentally tickled.23:27
bootdevplzgnarface I dont think missing cryptsetup-initramfs could result in GRUB not reaching even grub console. /boot isnt encrypted23:45
bootdevplzoh reached GRUB console this time23:48
bootdevplzafter I damaged the sda1 that has /boot . straaange23:51

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