Xenguy | fsmithred, How do you determine the RAM usage, 'free' or ...? | 00:17 |
---|---|---|
brocashelm | xenguy: i use ps_mem.py | 00:23 |
brocashelm | refracta comes with it by default: sudo ps_mem.py | 00:24 |
brocashelm | otherwise, just download the script to /usr/local/bin: https://github.com/pixelb/ps_mem | 00:24 |
Xenguy | Good to know, though I tend to look for more mainstream/traditional utilities wherever possible | 00:25 |
Xenguy | Interesting, apparently 'free' just leverages /proc/meminfo | 00:54 |
brocashelm | vmstat is also useful | 01:03 |
Xenguy | Yes, ran across that while down this rabbit hole, and 'glances' looks intriguing, but is a bit bloated to install | 01:12 |
Xenguy | There's atop, but I'd need to take the course to interpret the output | 01:15 |
Xenguy | nmon looks interesting, I've never heard of half of these utilities | 01:22 |
fsmithred | Xenguy, 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 |
fsmithred | V3.13 17 Sep 2018 And I think I had to edit the shebang to say python3 instead of python. | 03:36 |
n4dir | yup, you have to do that now. | 03:37 |
n4dir | it has "env" in the shebang, then python, remove the "env" and replace it with whatever is there for /usr/bin/python* | 03:37 |
fsmithred | hi | 03:37 |
n4dir | hi there. It is like that for so long, i wonder why it doesn't get changed. Perhaps it works on other distros | 03:38 |
fsmithred | #!/usr/bin/env python3 | 03:38 |
fsmithred | I think some have a symlink for python3 so it doesn't need it inside the script. | 03:39 |
n4dir | once 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 error | 03:39 |
Necrodiver | i installed a package called python is python3 or something | 03:41 |
n4dir | oh, so the problem is the plain "python", not the "env", it seems. Good | 03:42 |
n4dir | Necrodiver: yup, that is the name -> python-is-python3 - symlinks /usr/bin/python to python3 | 03:43 |
Necrodiver | yeah exactly | 03:43 |
Necrodiver | just made my life easier | 03:43 |
n4dir | not much fun to apt-cache search for it, but with a bit of fiddling, i found it, good tip | 03:43 |
fsmithred | I'm headed for bed. See you all later. | 03:46 |
n4dir | :-) | 03:46 |
Xenguy | o/ | 03:47 |
_Random | Hi 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 |
_Random | https://wiki.casaos.io/en/get-started | 13:44 |
buZz | i dont get what it even is | 14:08 |
buZz | > CasaOS is a community-based open source software focused on delivering simple home cloud experience. | 14:08 |
debdog | NAS softwareß | 14:09 |
fsmithred | On another site it says that it runs on Docker | 14:09 |
fsmithred | CasaOS’s integration with Docker means that virtually any Docker image can be converted into a CasaOS app. | 14:09 |
buZz | is jellyfin the only 'app' it wraps ? | 14:10 |
fsmithred | There are some devuan docker images | 14:10 |
buZz | its the only one on https://wiki.casaos.io/en/apps | 14:10 |
buZz | it seems jellyfin had some fixes for running on devuan | 14:12 |
buZz | https://github.com/jellyfin/jellyfin/pull/1139 | 14:12 |
_Random | you 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 |
_Random | there some really good YT videos on it. | 14:36 |
_Random | I refuse to use systemd | 14:36 |
n4dir | someone uses handbreak or knows it and remembers that one dependency you need so you can use it? | 14:38 |
_Random | I'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 |
_Random | no. even reverse proxy & cloud. dockers can be installed on it. It looks quite amazing. | 14:45 |
onefang | n4dir: You mean handbrake? | 14:46 |
_Random | goodnight. | 14:46 |
n4dir | onefang: i assume | 14:47 |
buZz | nn random | 14:47 |
buZz | 'cloud' :D lol | 14:48 |
buZz | amazing app that, sky is full of em! | 14:48 |
onefang | HandBrake, "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 |
buZz | handbrake afaik just depends on some gui libs and ffmpeg? | 14:51 |
onefang | There's CLI and GTK versions. | 14:52 |
n4dir | if what i ask for was listed in the dependencies, there would be no need to ask for it :-) | 14:53 |
n4dir | probably libdvdcss | 14:54 |
onefang | Well perhaps this- wysterious dependency was already installed on my system. Is there an error message or something? | 14:54 |
buZz | oh, could be | 14:55 |
buZz | i keep forgetting optical media was a thing | 14:55 |
buZz | holy f | 14:55 |
buZz | buzz@h81m:~$ ldd `which handbrake`| wc -l | 14:56 |
buZz | 200 | 14:56 |
buZz | you want that output, n4dir ? | 14:56 |
n4dir | no, i asked which was that one dependency not needed. | 14:56 |
n4dir | not listed, damn | 14:56 |
buZz | https://paste.debian.net/1296711/ | 14:57 |
gnarface | handbrake is in the repos, perhaps whatever permissions problem you remember has been solved since daedalus | 15:02 |
gnarface | ? | 15:02 |
gnarface | er, not permissions problem, dependency problem i mean | 15:02 |
gnarface | (but libdvdcss and ffmpeg both seem like good guesses as to what it was missing before) | 15:03 |
n4dir | i sure don#t find libdvdcss anymore | 15:03 |
n4dir | assuming that was it, but it sure sounds familiar. | 15:03 |
gnarface | libdvdcss was never in debian. you got it from the videolan repos | 15:03 |
buZz | i note my handbrake isnt linked to dvdcss | 15:04 |
gnarface | (and you don't need it unless you're working with commercial media) | 15:04 |
buZz | maybe it cant read dvds now from my nonexisting drive | 15:04 |
buZz | :D | 15:04 |
n4dir | so you have an app installed you don't use or need? | 15:07 |
buZz | i've used it to transcode some files | 15:07 |
onefang | I guess that brings up the question - use it for what exactly? | 15:07 |
buZz | sometimes 'looking up ffmpeg parameters' is just too much effort | 15:07 |
buZz | or commandlinefu.com is down | 15:07 |
buZz | w/e | 15:07 |
buZz | :) | 15:07 |
gnarface | yea, i can sympathize, but if you need help figuring out ffmpeg let me know | 15:08 |
buZz | <3 | 15:08 |
onefang | I've not used it for ripping DVDs, but transcoding video files. | 15:08 |
buZz | i have a small lookup for stuff like that ; https://nurdspace.nl/User:Buzz/Foss_Video | 15:08 |
buZz | not enough :) | 15:09 |
n4dir | probably that, which is not in the actual stable, as far i can see: https://packages.debian.org/search?suite=all§ion=all&arch=any&searchon=names&keywords=libdvd-pkg | 15:10 |
n4dir | i saw it wrong ... | 15:10 |
gnarface | i used to go into #mplayer to get help with mencoder, and back then they were very helpful about teaching me ffmpeg | 15:13 |
gnarface | in 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 |
gnarface | libdvdnav is for menu rendering, libdvdread is just for bare access, and libdvdcss is for decryption | 15:16 |
gnarface | with many programs, libdvdnav and libdvdcss are optional | 15:16 |
gnarface | you can still read unencrypted dvds and access titles/chapters by numbers | 15:17 |
onefang | Well 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 |
gnarface | libdvdcss was a hot potato legally, so the videolan project kept it in france where their copyright laws protect its existence | 15:18 |
Necrodiver | libdvdcss is probably considered "illegal" here in Japan | 15:19 |
Necrodiver | i dont know but my guess is that it would be | 15:19 |
onefang | DMO has libdvdcss2 for oldstable. | 15:20 |
n4dir | apt-get install libdvd-pkg; dpkg-reconfigure libdvd-pkg | 15:20 |
onefang | n4dir: That solved your problem? | 15:32 |
n4dir | that is how you install libdvd-css without using the debian multimedia repo | 15:33 |
n4dir | duckduckgo understood the question without any problems | 15:33 |
gnarface | that builds them on the fly or just downloads them from videolan.org? | 15:34 |
gnarface | or 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 |
n4dir | i 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 years | 15:34 |
gnarface | indeed | 15:35 |
n4dir | first thing i realized when arriving at home that i need to switch the machine so i have a DVD drive. | 15:35 |
n4dir | then put the ripped version on a stick, attach the stick to the TV, then probably will realize the movie is crap. | 15:38 |
onefang | The description of libdvd-pkg says it downloads source files and compiles them. | 15:40 |
AnOldHacker | I'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 |
gnarface | AnOldHacker: stick around, someone knows | 17:04 |
gnarface | https://wiki.debian.org/InstallingDebianOn/Dell | 17:07 |
gnarface | https://wiki.debian.org/InstallingDebianOn/Dell/Latitude7490 | 17:07 |
gnarface | maybe one of these will help | 17:07 |
gnarface | you're probably right about it being a UEFI thing, you might need to actually change a UEFI setting | 17:07 |
gnarface | ... or find the existing efi partition and re-use it or something like that | 17:08 |
AnOldHacker | Oh, that partition is _long_ gone... =-O | 17:08 |
AnOldHacker | I might be able to reload it from Dell via the internet, but it will be a windows booter... | 17:09 |
AnOldHacker | This is a 7520. I'll look at that site, though. | 17:09 |
onefang | You can't just create a new partition table from the installer? | 17:10 |
AnOldHacker | Yep. But the drive is not being recognized as bootable. | 17:10 |
gnarface | so 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 paranoia | 17:12 |
gnarface | whatever 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 |
gnarface | something to do with secure boot | 17:13 |
gnarface | (you might just be able to disable secure boot but i think there's a "right way" to use it) | 17:13 |
AnOldHacker | I disabled secure boot right away... :D | 17:16 |
AnOldHacker | But... it's worth rechecking. | 17:17 |
gnarface | onefang: 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 |
AnOldHacker | Yep. Secure boot is still off. It makes me feel a bit better that I'm not the only one with this problem... | 17:18 |
gnarface | AnOldHacker: try stepping through this, see if you discover anything: https://wiki.debian.org/GrubEFIReinstall | 17:19 |
onefang | No idea. Grub bug? I use rEFInd instead. | 17:19 |
gnarface | AnOldHacker: 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 something | 17:20 |
gnarface | fsmithred: 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 |
AnOldHacker | Okay. Thanks. I'm supposed to be working right now, so this won't be a 5-minute thing. | 17:21 |
Necrodiver | i had a ton of issues with installing refracta on a latitude 5490 | 17:22 |
rwp | I wish there was good documentation on UEFI booting. Oh there lots of documentation. Most of it not-good. | 17:22 |
Necrodiver | because of uefi | 17:22 |
Necrodiver | fsmithred helped me out with it | 17:22 |
gnarface | AnOldHacker: no worries, just stay connected if you can, someone will eventually show up who knows what to do. | 17:22 |
onefang | rEFInd is also worth a try. An EFI bootloader that looks for things to boot at boot time. | 17:23 |
rwp | Just 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 |
onefang | Which you could probably deal with just by going into the BIOS settings and telling it "boot this thing here". | 17:25 |
rwp | IIRC 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 |
fsmithred | AnOldHacker, does fdisk show any partitions? Can you mount any of them while in the live session? | 17:29 |
onefang | Or gparted if you prefer something more pointy clicky. | 17:30 |
rwp | If 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 |
rwp | Then 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 |
rwp | typo fix: s/bring/being/ a craphound | 17:31 |
schillingklaus | i hate everything pointy clicky | 17:31 |
onefang | fdisk it is. B-) | 17:32 |
fsmithred | If the partitions exist and it just needs the bootloader reinstalled, that can be done with the installation media in rescue mode. | 17:32 |
rwp | The 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 |
AnOldHacker | Or, 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? =-O | 17:32 |
fsmithred | or with a live iso by mounting stuff and working in chroot | 17:33 |
AnOldHacker | I'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 |
rwp | I 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 |
fsmithred | mount root partition, mount efi partition to /boot/efi | 17:34 |
fsmithred | then you need to do some bind-mounts and then chroot and then grub-install (with no device) | 17:35 |
rwp | fsmithred, 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 |
fsmithred | installer iso is easier - go into rescue and select "reinstall bootloader" | 17:35 |
fsmithred | yeah, 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 |
fsmithred | did not need to do that in the past | 17:36 |
onefang | I've never had to mess with efivars directly. | 17:37 |
onefang | Think I did it once just out of curiosity. | 17:37 |
rwp | AnOldHacker, Let me strongly suggest trying the installer in rescue-mode as suggested above before doing other more difficult things. | 17:37 |
fsmithred | I ran into it recently, but maybe because I was doing it in a VM | 17:37 |
AnOldHacker | rwp: I've got a USB live-boot. How do I access the rescue-mode installer? | 17:39 |
fsmithred | AnOldHacker, you would need to image a usb stick with a different iso | 17:41 |
gnarface | AnOldHacker: (the netinstall is the smallest one that contains it) | 17:41 |
rwp | AnOldHacker, You would need to boot the installer ISO like the netinst image and then select Rescue mode from the Advanced options. | 17:41 |
gnarface | AnOldHacker: 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 |
fsmithred | live installer does no automatic partitioning. It's up to the user. | 17:42 |
fsmithred | gparted or gdisk | 17:42 |
rwp | I'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 |
fsmithred | bbiab | 17:45 |
Wonka | does that do something different than 'grub-install --target=x86_64-efi'? | 17:48 |
AnOldHacker | gnarface: Things went wrong when I arrogantly failed to read the docs for a process I had not done in almost a decade. | 17:52 |
bootdevplz | still cant boot devuan | 17:53 |
bootdevplz | on amd64, from ~2014, can I install non-efi, normal MBR grub? | 17:53 |
bootdevplz | I do not see even option to select non-efi target... what/ | 17:54 |
gnarface | bootdevplz: it's supposed to work... which iso did you use? | 17:55 |
bootdevplz | I think the normal install, or netinstall. how to check? its mounted now | 17:55 |
bootdevplz | im in livecd | 17:56 |
bootdevplz | I mean, im in rescue mode | 17:56 |
gnarface | bootdevplz: just tell me the file name you downloaded and i can figure it out from that | 17:56 |
bootdevplz | dont have it here | 17:57 |
gnarface | bootdevplz: you're sure it's not EFI? | 17:57 |
bootdevplz | not 100% sure. | 17:57 |
gnarface | what's the motherboard model? | 17:58 |
bootdevplz | its old computer like 2014, and debian worked there in that time | 17:58 |
rwp | If it is an old computer then it is most likely going to boot Legacy BIOS mode. Which is good. Most reliable. | 17:58 |
rwp | In which case you can ignore all of our UEFI discussion above. (breaths a sigh of relief) | 17:59 |
gnarface | yea, but that's right at the era where it might have a dual-mode bios | 17:59 |
onefang | bootdevplz arrived after all that EFI chatter. | 17:59 |
rwp | Possibly. And also possibly the CSM compatibility boot mode. | 17:59 |
bootdevplz | is there a way to check from linux? | 18:00 |
gnarface | bootdevplz: you might be able to get the model # from the output of dmidecode | 18:00 |
rwp | I 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 |
AnOldHacker | UEFI only. | 18:01 |
bootdevplz | afair that dir is empty unless I boot (rescue mode) with efi=runtime | 18:01 |
rwp | I got that hint from fsmithred by the way. (Thanks fsmithred!) | 18:01 |
* rwp must drop afk for a short while | 18: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 | |
mason | But my not-offtopic recommendation: dmidecode | grep "UEFI is supported" | 18:16 |
bootdevplz | if I ever make a mainboard, it will dmi report "UEFI was a mistake" | 18:17 |
gnarface | heh | 18:18 |
bootdevplz | Award Software Inc (what they got it for anyway?) | 18:19 |
bootdevplz | release date 2011 | 18:19 |
bootdevplz | supported: pci, pnp, boot from CD (there was a question in bios to boot from CD with or without efi) | 18:19 |
bootdevplz | edd supported | 18:20 |
bootdevplz | there is no word -i "efi" in there | 18:20 |
bootdevplz | gigabyte h61m-d2-b3 | 18:20 |
mason | Hm, checking here. Oldest I've checked so far is "Vendor: American Megatrends Inc." "Release Date: 10/08/2012" | 18:21 |
bootdevplz | how to install non-efi on there? on 1 tb disk, 1st partition is 2 gb for boot | 18:22 |
bootdevplz | though... the disk is partitioned with "gpt". I need to re-partition it? :/ | 18:22 |
gnarface | bootdevplz: 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 |
mason | bootdevplz: You can install legacy mode on GPT, you just include a biosboot (type ef02) partition. | 18:23 |
bootdevplz | ok /dev/sdb1 is BIOS boot type, 1.9 G | 18:23 |
bootdevplz | ext4 | 18:23 |
bootdevplz | grub-install /dev/sdb says: installing for x86_64-efi platform. error cannot find EFI directoryu | 18:24 |
mason | bootdevplz: Make sure you have grub-pc installed, not grub-efi-amd64 | 18:25 |
mason | if you want to install legacy grub | 18:25 |
bootdevplz | ls /usr/lib/grub says x86_64-efi x86_64-efi-gigned and grub-mkconfig_lib. no legacy/normal there | 18:25 |
mason | apt install grub-pc | 18:25 |
fsmithred | bios_grub or bios_boot partition for legacy boot with gpt should be at least 1MB, and no filesystem on it. | 18:25 |
bootdevplz | I am chrooted into /target in rescue mode. can I install grub-pc without internet maybe? | 18:25 |
mason | Hrm, I only give my gptboot partitions 128K here. | 18:26 |
fsmithred | yeah, the deb package is probably in the iso somewhere | 18:26 |
fsmithred | mason, they work? | 18:26 |
mason | Yes. | 18:26 |
mason | 1M won't hurt anything of course | 18:27 |
fsmithred | I usually do 2 or 4, so I've been wasting space. | 18:27 |
bootdevplz | there is pool DEBIAN main g grub2 ..... .deb | 18:27 |
bootdevplz | just dpkg -i on it? | 18:27 |
fsmithred | yeah | 18:27 |
fsmithred | and the corresponding -bin package | 18:28 |
bootdevplz | it will not mess apt database or smth? | 18:28 |
fsmithred | not if you're in chroot | 18:28 |
bootdevplz | can we change Devuan so that is always installs grub-pc package into installed os? and also btw. vim and mc | 18:29 |
bootdevplz | just a bit easier | 18:29 |
gnarface | unfortunately there's probably no easy solution that will work for everyone, but you can make your own custom installer | 18:31 |
bootdevplz | cant 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+deb12u1 | 18:31 |
fsmithred | oh, I guess you do need internet. | 18:32 |
fsmithred | oh, --force-downgrade | 18:33 |
fsmithred | and install the whole bunch from deb packages | 18:33 |
fsmithred | I think there are four of them. | 18:33 |
bootdevplz | there is no such option to dpkg as --force-downgrade | 18:37 |
bootdevplz | but --force depends worked | 18:38 |
gnarface | should be, according to the man page | 18:38 |
bootdevplz | not in my 1.21.22 | 18:39 |
fsmithred | yeah, I've done it many times | 18:39 |
bootdevplz | worked. grub-install --target=i386-pc | 18:41 |
fsmithred | COOL | 18:42 |
bootdevplz | but in this /boot there are no kernels | 18:42 |
fsmithred | do you have a separate partition for /boot? | 18:42 |
bootdevplz | yes, /dev/sdb1 is for /boot only | 18:42 |
fsmithred | then I guess it's not booted | 18:43 |
fsmithred | sorry | 18:43 |
fsmithred | mounted | 18:43 |
bootdevplz | it s mounted, but I just dpkg -i grub-pc.... I guess need to reinstall kerneks | 18:43 |
fsmithred | mount /dev/sdb1 /boot | 18:43 |
fsmithred | where did they go? | 18:44 |
bootdevplz | I used sda1 for old boot | 18:44 |
bootdevplz | just copy the files above grub, that is, System map config initrd and vmlinuz? will need to regenerate initrd I bet | 18:45 |
gnarface | it's possible for them to change orders between reboots, make sure you're using the right one still | 18:45 |
gnarface | kernels should have been installed already, but you can always reinstall them... | 18:45 |
bootdevplz | in the current repair, I move from EFI to legacy boot, but at same time I decide to have /boot on the other, 1 TB, disk | 18:45 |
bootdevplz | or... is the legacy boot able to handle 4 tb disk as long as /boot is before ~1 TB wall? | 18:46 |
fsmithred | legacy boot with gpt partitions will work | 18:46 |
fsmithred | it's the partition table that is the limiting factor | 18:47 |
bootdevplz | ok lets use same partition then | 18:47 |
bootdevplz | maybe installer should just ask whether to use legacy MBR or EFI install | 18:49 |
gnarface | it definitely has that option, at least in manual partitioning mode | 18:52 |
bootdevplz | anything else needed after grub-install, like, to regenerate Systemap or anything? | 18:52 |
bootdevplz | or mkinitramfs | 18:52 |
gnarface | update-initramfs | 18:53 |
bootdevplz | thats all? | 18:54 |
gnarface | maybe | 18:54 |
bootdevplz | Loading Operating System ... | 18:55 |
bootdevplz | GRUB _ | 18:55 |
bootdevplz | same result when booting 1st and 2nd hdd | 18:56 |
bootdevplz | not even grub rescue | 18:56 |
bootdevplz | previously it didnt shown "GRUB _" | 18:56 |
bootdevplz | so its kind of progress | 18:58 |
bootdevplz | now from 2nd disk it said "GRUB GRUB _" | 18:58 |
bootdevplz | do I need to nuke EFI partition or something? i dont see clear option in bios to tell it to boot efi or not | 19:00 |
bootdevplz | GRUB GRUB GRUB | 19:02 |
fsmithred | grub-install && update-grub | 19:07 |
fsmithred | second command makes the boot menu | 19:07 |
fsmithred | if you know your way around grub command line, you can boot and fix it. | 19:08 |
fsmithred | set root=(hd1,1) (maybe 1,1 or something else?) | 19:09 |
fsmithred | linux /vmlinuz ro root=/dev/sd?? | 19:09 |
fsmithred | initrd /initrd.img | 19:09 |
fsmithred | boot | 19:09 |
fsmithred | after boot run update-grub | 19:10 |
bootdevplz | fsmithred Im NOT in grub shell even yet. will try that update-grub in chroot tho | 19:38 |
bootdevplz | or can I run these GRUB commands from the installer DVD somehow? pressing TAB is not ideal, can Iget normal grub shell thing | 19:43 |
gnarface | bootdevplz: use the chroot. make sure you bind-mount /sys, /proc, and /dev | 19:49 |
gnarface | (maybe also /dev/pts but i think for this it is not needed) | 19:50 |
fsmithred | The installer isos don't use grub, so there's no grub shell unless you can boot the installed system | 19:51 |
fsmithred | Installer DVD should have "reinstall bootloader" somewhere in the rescue menu | 19:52 |
hagbard | Grub rescue images do exist somewhere. | 19:59 |
bootdevplz | what can be broken, with just 1 (4tb) disk, partition 1 has ext4 marked in gpt as Boot | 21:15 |
gnarface | bootdevplz: and the live iso still boots? user error or a bug in grub. did you try LILO? | 21:18 |
gnarface | i thought you said you wanted to boot this with MBR though? that is not GPT | 21:19 |
fsmithred | cat you post the output of 'fdisk -l' on paste.debian.net? | 21:19 |
fsmithred | cat/can | 21:20 |
gnarface | bootdevplz 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 |
gnarface | AnOldHacker: ^ i dunno but there may be an outside chance this information helps your situation too | 21:31 |
gnarface | srbootdevplz: (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 |
gnarface | er, bootdevplz ^ sorry | 21:33 |
bootdevplz | gnarface it was said above you can boot non-efi/MBR with the GPT partition table, using Boot something as part type | 21:34 |
gnarface | bootdevplz: 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 works | 21:35 |
bootdevplz | 1977 - 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 way | 21:36 |
gnarface | also, if you have 4 or less partitions and a bios from 2014, GPT has little to no functional value to you | 21:36 |
bootdevplz | 2023 - can't boot a regular PC from few years back | 21:36 |
bootdevplz | gnarface disk is 4tb, isnt GPT required, I think it tops out at 2 TB limit | 21:39 |
bootdevplz | I mean msdos (MBR-table-format) can't address 4 TB disks | 21:39 |
gnarface | i thought that was outdated info | 21:40 |
gnarface | i guess i can't say i've tried 4TB disk | 21:40 |
gnarface | trying 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 2017 | 21:44 |
gnarface | LILO probably works fine with GPT too though | 21:45 |
gnarface | hmm, 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 |
gnarface | if it's 4096, maybe you'll find you don't actually have any problem | 21:47 |
gnarface | AIUI the "2TB" limit was based on 4294967295 512-byte sectors | 21:47 |
fsmithred | The trick to using legacy bios boot with gpt partitions is to have the correct extra partition that I described above | 21:48 |
gnarface | anyway, 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 one | 21:48 |
fsmithred | 1MB with no filesysem and flag ef02 (in gdisk) or bios_grub (I think that's right) in gparted. | 21:49 |
bootdevplz | fsmithred uhm, I just have sda1 to that bios boot, its ext4 with /boot | 21:50 |
fsmithred | I don't understand that sentence. | 21:50 |
fsmithred | how many partitions do you have? | 21:50 |
fsmithred | what does "it's ext4 with /boot" mean? | 21:51 |
fsmithred | do you mean you have a bios_boot partition mounted at /boot? | 21:51 |
fsmithred | and it has ext4 filesystem on it? | 21:52 |
fsmithred | to boot gpt with legacy bios boot, you need... | 21:56 |
fsmithred | 1mb ef02 partition with no filesystem | 21:56 |
fsmithred | a root partition | 21:56 |
fsmithred | with no flags | 21:56 |
fsmithred | optionally a separate partition for /boot | 21:56 |
fsmithred | again, no flags needed on that one | 21:56 |
fsmithred | 4TB disk will work that way. I've done it. | 21:58 |
bootdevplz | ok one moment | 22:00 |
bootdevplz | 4 TB disk: GPT table. 1) 1 GB ext4 used as /boot with the kernel and all as from Devuan install | 22:03 |
bootdevplz | 2) ~30 mb fat, unused | 22:03 |
bootdevplz | 3) 450 GB encrypted data | 22:03 |
bootdevplz | 4) 950 GB of RAID mirror, that forms the luks with LVM of root filesystem | 22:04 |
bootdevplz | 5) 22 GB left free | 22:04 |
bootdevplz | 6) 1 GB used as EFI / ESP (Devuan installer was trying to install into that) | 22:04 |
bootdevplz | this was the boot HDD, and it failed to boot right after devuan install | 22:04 |
bootdevplz | how to change that into using Grub without EFI. would like to keep existing partition 3 and 4 with the data | 22:05 |
fsmithred | you need to add a partition that is at least one megabyte in size and does not have a filesystem on it. | 22:05 |
fsmithred | give it a flag of ef02 in gdisk | 22:06 |
bootdevplz | fsmithred does it have to be the first one? | 22:06 |
fsmithred | no | 22:06 |
bootdevplz | so 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 |
fsmithred | yeah | 22:06 |
bootdevplz | lol weird. ok.. | 22:06 |
fsmithred | I'm not sure if it needs to be near the beginning of the disk | 22:06 |
fsmithred | hang on, I think I can check to see what I have. | 22:07 |
bootdevplz | k | 22:07 |
gnarface | you could shave it out of that unused 30MB fat partition | 22:07 |
bootdevplz | gnarface yeah. will try that now | 22:08 |
bootdevplz | and 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 bit | 22:09 |
gnarface | we can hope | 22:09 |
fsmithred | you probably need to do grub-install and update-grub again | 22:11 |
fsmithred | and I can't get to the machine in question now to see where I put that partition. | 22:11 |
fsmithred | But I'm about 95% sure I've put it other than first. | 22:12 |
rrq | bootdevplz: I think the EFI partition at least needs to be block addressable with 32 bit address | 22:12 |
fsmithred | not efi booting here | 22:13 |
fsmithred | legacy boot with gpt | 22:13 |
bootdevplz | please add script to easily populate /target even when I need to take manual steps to mount root fs (raid luks lvm) | 22:14 |
rrq | ah sorry; returning to morning coffee | 22:14 |
bootdevplz | like maketarget that mounts proc dev there | 22: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 root | 22:15 |
fsmithred | installer iso should do all of that in rescue mode | 22:16 |
fsmithred | "open a shell in the installed system" | 22:16 |
bootdevplz | fsmithred it fails to mount root fs, because it doesnt know how to handle case where encrypted partition exists on top of raid mirror | 22:19 |
bootdevplz | instead asks for password for /dev/sda5 instead of assy md0 and asking pass for that | 22:19 |
bootdevplz | so 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 out | 22:20 |
gnarface | isn't that just missing cryptsetup package? | 22:21 |
gnarface | i think you just need cryptsetup-initramfs installed | 22:21 |
gnarface | or something like that | 22:21 |
gnarface | maybe some of the other cryptsetup* packages too | 22:22 |
yauz | Is 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 |
yauz | Just checked, it seriously installed root on ext2 .. in 2023. | 22:52 |
debdog | hmm, I've never used anything besides text mode expert install and I am not able to confirm the behaviour you've described. | 22:53 |
debdog | except maybe you're talking about the EFI partition? | 22:54 |
gnarface | yauz: did you choose manual partitioning? | 22:54 |
rrq | yauz: make sure to "load components" before partitioning | 22:54 |
yauz | Machine is a Pentium class Geode. EFI wasn't a thing when those were designed. | 22:54 |
debdog | right, skipping steps might cause something like that | 22:55 |
debdog | *accidently skipping steps | 22:56 |
rrq | is there an "accidentally" when one uses expert mode? | 22:57 |
yauz | Well, I skipped braille & speech synthesizer, having fortunately no need for those ;-) | 22:58 |
debdog | well, "accidently" as in not consciously perceived wrong inputs | 22:58 |
debdog | "expert mode" does not exclude routine | 22:59 |
debdog | or just a lag regarding input devices, AKA keyboard | 23:00 |
yauz | Nothing 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 |
rrq | the full range of available filesystem formats come with the additional components; the menu are just for the optional ones. | 23:02 |
rrq | I'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 |
gnarface | yauz: you should at least still be seeing ext4 on there... what partitioning mode did you use? automatic? guided? manual? | 23:13 |
debdog | but 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 |
rrq | to be clear: that step needs to be run so as to install all filesystem modules. they are not mentioned in the menu. | 23:15 |
rrq | it's like a hidden side effect of that step | 23:15 |
debdog | ok | 23:15 |
rrq | i think various filesystems were in the menu in the olden days, and then have got promoted to unaviodable.. without changing installer very much | 23:17 |
rrq | something like that could possibly explain that peculiar "design" | 23:18 |
debdog | well routine. there is one selection I never mess with. but I don't recall exactly which options are there | 23:18 |
rrq | network-console is a fun one | 23:19 |
yauz | Partitioning: 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 |
bootdevplz | gnarface I dont think missing cryptsetup-initramfs could result in GRUB not reaching even grub console. /boot isnt encrypted | 23:45 |
bootdevplz | oh reached GRUB console this time | 23:48 |
bootdevplz | after I damaged the sda1 that has /boot . straaange | 23:51 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!