libera/#devuan/ Thursday, 2024-08-22

_ds_https://fosstodon.org/@gabrielesvelto/113002382002193832 is a bit interesting (re. Windows security updates & dual-boot) – from that and local checking, it appears to me that shim-signed in stable is revoked as a consequence.14:32
_ds_It also appears that grub-efi-*-signed in stable aren't revoked.14:34
_ds_I see a new-enough shim-signed in daedalus-proposed-updates for those who need it…15:08
morenonaturalsup, y'all... every time I boot into desktop I have to run `sudo service unbound restart` to get working internet access (yes, I willingly installed unbound to have local resolver I can manage & maintain) ... maybe unbound isn't starting at boot? how can I make sure of that15:31
gnarfacemorenonatural: pretty sure you should see it running in the output of "ps aux --forest"15:32
gnarfacemaybe it's getting run before your networking is setup and it fails15:33
gnarfacethere should be a log somewhere you can check15:35
nemo/etc/network/interfaces can use UUID instead of eth* right?16:09
fsmithrednemo, do you mean mac address?16:13
nemofsmithred: er. that. yes 😃  sorry. wrong term.16:38
nemofsmithred: probably been corrupted by networkmanager16:39
nemowhich does have UUIDs (probably derived from the MAC if I know them)16:39
nemo$ nmcli connection | grep loopback16:39
nemolo       1c814e6f-3cff-4d02-b9ea-bb1c6a202b9c  loopback  lo16:39
nemoactually honestly no idea where it is getting that from16:39
nemobut could be feeding unique stuff like the mac into a UUID mapper16:40
nemofsmithred: but whatever. mac, uuid, anything that is predictable-ish16:40
nemofsmithred: getting some annoying behaviour with the VMs16:40
fsmithredsorry I wandered away16:45
fsmithredlet me catch up16:45
fsmithrednemo, if you have network-manager installed it will steal your resolv.conf. If you want to edit that file manually, you can use whatever nameserver you want and then make the file immutable so that it can't be edited.16:47
fsmithredchatter +i /etc/resolv.conf16:47
fsmithredthen change that to -i if you want to edit it again.16:47
fsmithredoh, I'm talking about the wrong file16:48
fsmithredif you have static ip set, you should disable network-manager16:49
nemofsmithred: I don't think I'm using network-manager. that's just a habit from the past16:49
fsmithredoh, ok16:49
nemoafaik I'm doing all config in /etc/network/interfaces16:49
nemothe machines are a mix of dynamic and static16:49
nemoand I'm trying to stick to the base devuan as much as possible16:49
fsmithreddaedalus or excalibur?16:50
nemodevuan is already enough of a deviation to make life difficult for other admins ☺16:50
nemofsmithred: dædalus still.. is excalibur stable?16:50
fsmithredno, it's not even in freeze yet16:50
nemook ☺16:50
fsmithred(trixie)16:50
nemoyeah. that isn't going anywhere near work computers16:50
fsmithredlol, good plan16:50
nemofsmithred: BTW. did you know that ubuntu charges for basic security patching of packages that were patched in debian stable?16:51
fsmithredif you want to use the new style "predictable" network names, boot with net.ifnames=116:51
fsmithredno, I did not know that and it's disgusting.16:51
nemoooh. gotta look at that one16:51
nemofsmithred: basically as far as I can follow, ubuntu's release schedule does not follow debian's.  in fact they often roll their April stables, just a few months before debian stabilises mid-summer16:52
fsmithredif you're switching them over from systemd, that might be the way to go if there are custom scripts that use interface names16:52
nemofsmithred: so... you end up with ubuntu stables that are often no longer on debian stable.16:52
fsmithredI think they fork from sid16:53
nemofsmithred: no custom scripts. the hassle I had was when firing up a new VM image clone, perhaps due to interface name changes, the nic would be some new value, often old nic+1 but not always.  then they'd add another nic for ipv6 and further complicate matters. so I was like. what if I just went to the console, got the mac addresses or something, or UUIDs from nmcli if those are in standard use, and used16:54
nemothose in the config. no more ambiguity16:54
nemofsmithred: anyway. they said anything in their "core" 1000 or so packages would only be "best effort" i.e. - only if debian did all the work16:54
nemothey would not even pull in a debian stable patch to see if it might work on sid for same version...16:54
nemofsmithred: the upshot is actual severe CVEs not getting patched unless you purchase a security plan to get access to the sekret packages16:55
nemoI found this interesting because folks at work are big ubuntu fans. told them to hurry up and buy the security plan then ☺16:55
nemoI will say budgets are tight all around, but they can probably afford $500/y - not everywhere can though16:56
nemoI guess this is off-topic for the channel, sorry 😃16:57
nemobut I am feeling smug about the devuan cluster16:57
freaxeh> #devuan-offtopic exists16:57
nemos/in there/outside their/16:57
aswjrispI am back with my no bootable device issue.17:00
aswjrispI spent the last two days preparing to deal with the issue.17:00
nemoaswjrisp: oof. I had that yesterday on my gentoo machine.17:00
nemoaswjrisp: because kernel update randomly decided to hop to /dev/sdb for no reason I can fathom given nothing is on /dev/sda ... maybe some UUID changed?  took me a while to figure out what was going on since it was all scrolling by so fast.17:01
nemofortunately was able to edit grub, boot on sdb, then fix the grub conf to use UUIDs instead17:01
nemosimilar issue to my NIC problem I guess 😃17:01
aswjrispI did some preparation.  I have set up a router with ddwrt so I can hopefully move the data off of the nvme m.2 disk with the problem.  I was thinking if moving the recoverable data to another disk with scp connecting to another computer by ethernet cable and through the ddwrt router.17:03
aswjrispI also had to deal with removing a bios password and turning off the secure boot setting on the bios so I could boot to a live image on a usb.17:04
nemoaswjrisp: I've done network copies many many times. definitely works. rsync would be faster.  if you don't have a reliably readable filesystem you might want dd | nc17:04
nemoaswjrisp: I once suffered severe hardware damage on the devuan machine I'm on now, and was able to copy 99.99% of the disc over to a new machine by using seek/skip to jump over the handful of bad sectors by trial and error ☺17:05
aswjrispI am now able to boot the devuan live minimal amd64 on a usb.  It gives me options in a grub menu which are std, access, std-toram, acces-toram, no prob and memory test. I am not familiar with the different options.  Is there one that would be better for the data recovery task I am working on?17:08
gnarfaceaswjrisp: the desktop live image has a GUI. it might be easier to use if you have enough RAM17:10
aswjrispnemo: In this case I am not sure if the no bootable device is related to a system update.  I turned off the computer and when I turned it on again it gave me the no bootable device message.17:10
aswjrispgnarface: I am fairly comfortable working on the terminal.  I think I will save the ram for any programs I might need to install for the live system.17:12
gnarfaceunfortunately i don't know what all those options mean on the minimal one17:13
gnarfaceone of the "toram" ones seems a likely candidate17:13
nemoaswjrisp: when you boot off your USB rescue... are you able to mount and find your existing HD?  I really do wonder if your issue could be similar to mine. even though devuan does use UUIDs by default when installing I think. could be an old setup?17:17
nemoaswjrisp: I mean. if the existing HD mounts, fscks cleanly, has no reported errors in smart and whatnot17:17
nemomaybe it's just config ☺17:17
nemomaybe check your lsblk -f values against grub and fstab?17:18
aswjrispWhen I set up the bios for the live usb in the bios boot order it did not show the m.2 drive.17:19
nemoah :/17:19
nemothat is not a good sign for sure17:19
nemoaswjrisp: do you see it from inside linux in the device list?17:19
nemoI'm guessing no 😉17:19
nemoif so. good luck recovering it...17:20
nemoaswjrisp: is the HD an SSD?17:20
nemooh. you said M.217:20
nemoso yes.. ☹17:20
nemouuugh. those are even more of black boxes recovery-wise.17:20
fsmithredWasn't there a problem with some nvme disks not being bootable? I don't recall if it was a kernel issue or a motherboard issue.17:20
aswjrispI found an article about the minimal live.  It says the access options are for accessibility, so I will skip those.  I am going to go with std-toram, which loads squashfs into ram.17:21
fsmithredsolution was to put a /boot partition on non-nvme disk.17:21
fsmithredtoram just makes it faster to access stuff in the iso17:21
nemoaswjrisp: is the disc visible to linux at all? if so fsmithred's theory could be the issue17:22
nemothat would explain not seeing it in the bios maybe17:22
aswjrispnemo: fsmithred: I am going to try to answer your questions.  I am going to try the std-toram now.17:22
fsmithredIs there a boot device menu available? Usually some key like F8 or F1217:23
nemolast time my laptop SSD failed it was, curiously, accessible using my USB adapter for SSDs and I was able to copy data off of it that way.  makes me think the failure was in the laptop itself, some marginal power thing, or just the magic of plugging it into something else reseating a marginal connection ☺17:23
nemoI wonder if there are M.2 USB connectors out there..17:23
nemoprobably.17:23
nemoI mean. yes I had backups, but it's always nice when the disc works ☺17:24
aswjrispI am signed into the minimal live std-toram with user devuan.17:26
aswjrispI will now start on answering the helpful questions I have already recieved.17:30
aswjrispThe m.2 drive in question shows up in the output of lsblk.17:32
fsmithredIf your live system is connected to internet you could send text to termbin.com17:33
aswjrispnemo: It is not the spinning disk type.  I think nvme m.2 are ssd.17:33
fsmithredfdisk -l | nc termbin.com 999917:33
fsmithredand it'll give you a short link17:34
aswjrispfsmithred: I like termbin.com.  Let me see if I can connect in to the internet.17:34
fsmithredsame for lsblk or any other commands17:35
fsmithredor...17:35
fsmithrednc termbin.com 9999 < some-file17:35
aswjrispOn second though I think I will try to connect the computer with the problem drive through the router by ethernet cable to the computer I am working on here. Then I can scp the output files and send them to termbin on this computer.17:45
nemoaswjrisp: yes. I eventually noticed you'd said M.2 :)17:46
aswjrispI now have networking working.  I am going to scp output files over from the computer with the problem m.2 drive to this computer I am using and then termbin them.18:06
aswjrispfsmithred: thanks for explaining what std-toram is.  I could have gon with std then.18:15
aswjrispfsmithred: yes there was a boot device menu for the bios.  It did not show the m.2 drive in question.18:16
aswjrispnemo: yes there are m.2 use adapters that was what I was initially planning before it was suggested I use a live image.18:18
aswjrisps/use adapters/usb adapters/18:22
aswjrispfsmithred: fdisk --list output https://termbin.com/lj8c18:40
aswjrispfsmithred: lsblk output https://termbin.com/9okk18:42
aswjrispI installed smartmontools.18:44
aswjrispsmartclt --all /dev/nvme0n1 output https://termbin.com/az1z18:55
nemoaswjrisp: ah. so you could unplug the M.2 drive from the failing machine, and plug it in by USB to another machine and verify that it reads correctly.  If it works there that would help eliminate the drive as source of problem and point more towards the machine you are installing it in18:56
nemodebugging is all about splitting out variables if you can ☺18:56
nemomight also make doing drive testing easier too, less annoying than in a live image18:57
aswjrispfsmithred: blkid output https://termbin.com/pghe19:19
aswjrispfsmithred: I do not have the live iso I used when I installed the system.  I downloaded a new iso which is probably different that what I used when I installed devuan on this m.2 drive, as that was a while ago.19:23
ErRandiraswjrisp: Looks like your system would normally boot off /dev/nvme0n1p1. That should have grub on it. With parted check that has the boot flag set.19:42
aswjrispErRandir: /dev/nvme0n1p1 does have the boot flag, as shown by parted --list output https://termbin.com/4xiq19:50
aswjrispnemo: I might try getting an nvme m.2 adapter.  But I would like to see how far I can get without having to buy the adapter.19:53
aswjrispWhat I would like to accomplish is to get a copy of the data that is in the /home/user/ home directory.19:55
ErRandirgood. Can you add it back as a boot device in the bios?19:55
ErRandirThe directory you want is probably on /dev/nvme0n1p3. You can probably just mount that.19:56
aswjrispErRandir: The bios does not detect this nvme m.2 drive at all.  If I go to the boot section and it's subsection for boot order this m.2 drive does not show up at all.19:57
ErRandirThere is probably a different submenu where you have to add it. Depends on the bios vendor. I'm not familiar with all of them! :)19:59
aswjrispGiven that the drive shows up in the output of fdisk, lsblk, bldik and parted. Also that smartctl says that the overall-health self-assement test passed.  I think I might try decrypting the partition and copying the user's home directory.20:02
aswjrispIs there a reason why decrypting and copy data would be a problem?20:02
aswjrispErRandir: I will try adding the boot partion back as a boot device in the bios after I try to copy the user's home directory.20:03
aswjrispI was not playing in the bios settings before running into this no bootable device message from the bios.20:05
ErRandirsure try decrypting it first. It's good to have multiple options forward.20:15
aswjrispThere is a Luks header. `cryptsetup luksDump /dev/nvme0n1p3` outputs https://termbin.com/z6em20:34
aswjrispcryptsetup open let me enter a password exited without errors.  lsblk shows the partition is decrypted.20:43
fsmithredmount /dev/mapper/whatever-it's-called some-mountpoint20:49
fsmithredprobably /mnt is a good place20:50
aswjrispI ran `cryptsetup open /dev/nvme0n1p3 root`.21:46
aswjrispWhen I try to mount with `mount /dev/mapper/root /mnt/` I get "mount: /mnt: unknow filesystem type 'LVM2_member'".21:50
aswjrisplsblk now outputs https://termbin.com/1n8121:53
aswjrisp`mount /dev/alaptop-vp/root /mnt` outputs "18 orphaned inodes deleted", "recovery complete" and "mounted filesystem with ordered data mode. Quota mode: none."22:05
aswjrispThe message "recovery complete" sounds good.22:05
aswjrispThose messages were from the kernel they were not from the mount command.22:09
* aswjrisp using scp to copy home directory.22:17
fsmithredoh you have to activate the lvm first22:19
fsmithredvgchange -ay something22:20
fsmithredalaptop--vg-root I think22:21
fsmithredthen you can mount /dev/mapper/alaptop--vg-root (I think)22:23
fsmithredgotta go, bbl22:23

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