libera/#devuan/ Thursday, 2024-06-20

AlexLikeRockhi00:25
AlexLikeRockfsmithred,00:25
AlexLikeRockare you ready ?00:25
rrqAlexLikeRock: I'm a bit too busy this morning... I think fsmithred did some experiments yesterday and possibly also have opportunity to assist eventually01:00
gnarfacehe's already gone01:08
arityhow to prevent poweroff on power button press when im in X without installing packages09:43
aritywhen i press power button when on X is the signal SIGPWR ?09:47
Jorilarity: I think you should remove/disable the acpid package...?09:48
arityi need to disable that09:48
gnarfacedepends on the hardware, i think... some hardware you can only disable it in the bios09:48
arityi dont have acpid09:48
aritygnarface isnt the cpu get a signal when i press power button09:48
gnarfaceyes, sometimes, but sometimes it's also wired directly to the power supply through the bios, and those two things aren't mutually exclusive09:50
arityah okay09:50
rrqarity: if you use elogind you might want to check /etc/elogind/logind.conf09:57
rrqHandlePowerKey=ignore09:58
arityoh yea rrq ty09:59
cousin_luigiI'm attempting to chainload another grub installed to the mbr. My own install is mbr, but I always get "invalid signature"12:32
fsmithredcousin_luigi, did you see this one?  https://unix.stackexchange.com/questions/252936/grub2-boot-to-a-second-another-hard-disk13:03
cousin_luigifsmithred: Thanks, but os-prober won't detect openwrt13:04
cousin_luigiAnd yes, I've tried the "obvious" solutions like chainloader (hd1)+113:04
fsmithredand drivemap -s ?13:13
cousin_luigifsmithred: What does that do?15:24
gnarfacecousin_luigi: i've got no fixes for you, but the search results suggest it's a UEFI issue15:28
cousin_luigignarface: Neither the main system nor the alternate one use UEFI15:28
gnarfacelike one grub is in UEFI mode and the other isn't? or something like that...15:28
cousin_luigiJust MBR15:28
cousin_luigiMy only guess at this point is that perhaps I disabled boot from usb15:28
gnarfaceare you sure? neither of these is windows?15:28
cousin_luigignarface: One is devuan, the other is openwrt15:30
gnarfacesearch results are flooded with people complaining about the same error while trying to dual-boot linux+windows15:30
cousin_luigiI have noticed that myself.15:30
fsmithredcousin_luigi, here's what I use to boot an installed usb: https://paste.debian.net/1320902/15:58
cousin_luigifsmithred: Will try that, thanks.15:59
fsmithredalso, you should be able to make a boot entry without chainloading. Just name root, kernel and initrd.16:00
fsmithredinstead of chainloader you could try:  configfile /boot/grub/grub.cfg16:04
fsmithredafter setting the root device to hd0 or hd1, whichever it is on that boot. (hint: it's not always the same)16:05
cousin_luigifsmithred: The snippet you linked above makes the original grub come back16:07
cousin_luigifsmithred: I've tried both of the other suggestions16:07
fsmithredyou mean it reloads the same grub menu?16:07
fsmithredhd0 vs hd1 ?16:07
cousin_luigiyes16:08
fsmithredsounds like it's confused about which drive is first16:08
cousin_luigiI wonder the secondary grub.cfg has something bad in it16:08
fsmithredwhich is a common problem.16:08
fsmithredoh, maybe16:08
fsmithredyou tried doing it on grub command line?16:08
cousin_luigiyes16:08
cousin_luigithe openwrt grub.cfg has a set root=(hd0,1)16:09
cousin_luigiPerhaps I really need drivemap16:09
fsmithredI often have to do that to figure out which way works16:09
fsmithredso the bootloader is in the partition instead of the mbr?16:09
fsmithredor, no...16:09
fsmithredis openwrt on the first hard drive? If not, that root needs to be changed.16:10
cousin_luigiIn the partition, yes16:10
fsmithredhd1,116:10
cousin_luigiwill try drivemap16:10
fsmithredyeah16:10
fsmithredthat should work16:10
fsmithredthen openwrt can keep thinking what it wants16:11
fsmithredI have to go. bbl. good luck.16:11
cousin_luigiyeah, drivemap worked16:15
cousin_luigithanks, bbl16:15
paculinoI've been using my external drive for the daily driver OS the last two years to keep it separate from the original windows install. However, only once have I been able to see the internal drive using lsblk or blkid when not in the emergency/recovery boot (it was sda at least once, but I do not recall if it always was, if it matters). Is there a workaround for finding it so I can mount it temporarily?20:02
rwppaculino, Is the internal drive seen in "cat /proc/partitions"?20:04
fsmithredfdisk -l20:04
paculinoIt does not20:05
rwpHmm...  But it boots okay from it?  Very strange.20:05
paculinoUEFI booting does show it20:05
paculinoAnd if I boot into it, accidentally or not, it becomes the first option20:05
rwpThis situation could occur if the Linux kernel does not have a driver for the device used for the MS-Windows storage.  But I can't imagine that occurring.20:06
rwpIf it were me I would download a recent refracta live boot image iso and boot it and see if it detects the internal storage.  It might just be something about your daily driver OS.20:07
paculinoIt first happened when I installed an ubuntu-based OS (only one of the three I tried had the problem), and I was told (by support for an unrelated issue) that it was a safety feature in that to prevent accidentally affecting the internal drive. It has been on all OS installs since then (they all share the same home)20:08
fsmithredcan you see the drive if you are root?20:09
rwpHmm...  So...  A UEFI firmware feature that is disabling access to the internal drive if booting from a USB drive?  Interesting!  I have not heard of such a thing.  But seems plausible.20:09
paculinoI have been using sudo for lsblk and blkid (they don't work otherwise)20:10
paculinoIs that how the emergency/recovery/grub stuff circumvents it? Lower level UEFI things?20:10
rustyaxeThat seems moderately insane. How are you to install an OS?20:11
paculinoTwice I used live boot media and the other times I used copying and migrating or debootstrap20:12
rwplsblk and blkid need root access in order to read the device data.  sudo provides that root access.  Any root access method should work okay.  But non-root is blocked by security permissions.20:14
rwpWhat laptop vendor and model is this machine?20:15
paculinoAspire A515-54 V1.0720:15
rwpI am in agreement with rustyaxe that this does not seem reasonable.  How can one install an OS there?  We don't yet understand whatever problem is happening.20:16
paculinoI only have trouble when booting from the external drive20:17
fsmithredbios is set to ahci?20:18
fsmithredtry booting one of these -20:20
fsmithredhttps://get.refracta.org/files/daedalus/20:20
paculinoI will try booting live media; I don't have an irc client on another device, however, so I won't see any messages for a bit20:21
fsmithredrefracta isos have irssi and hexchat20:22
paculinoShould I use refracta then, or is gParted good enough?20:23
rwpI would boot a refracta-nox (I don't need to wait for a graphics top to poke around the system) and see what I saw that way.20:24
paculinoOkay, I will download that and make new live media20:24
rwpIf you want the full X graphics then that's okay too.  It's just a bigger download and a longer boot.20:25
rwpBut that should be "just like" your daily driver OS booting on USB and should have the same problem.  But I think we think that it will work okay.  Pointing the finger of blame at something wrong with your daily driver OS configuration.20:25
paculinoIf it would be preferable, I just made an iso of Devuan exactly as installed but without any configuration, and I can use that (refracta-nox is not done downloading yet)20:27
rwpSaying that I am pretty sure that any partition booting tool (I don't know what gParted is there but assume) would also see the internal storage.  And in that case what would you know from it?  Better to boot the full live boot and then know something about it for certain.20:27
rwpWhat is "an iso of Devuan exactly as installed but without any configuration" ??  Sounds like installation media rather than live boot media?20:28
paculinogParted live is just Debian with as little as necessary to run gParted20:28
paculinoI used penguin-eggs to create live boot media20:28
rwpThe gParted boot might be enough then.  I am unfamiliar with it.20:29
rwpI am unfamiliar with penguin-eggs too.  I live under a rock.  I just use dd for such things.20:29
paculinoOkay, I will try it and if it fails I will use refracta.20:29
paculinoI also use dd; penguin-eggs generates something to use dd on20:30
rwpI searched and my first hit was this: https://en.wikipedia.org/wiki/Penguin_Eggs20:30
* rwp laughs20:30
paculinohttps://github.com/pieroproietti/penguins-eggs (for some reason I had to use the release from sourceforge, but it works) Well, reboot time. If it fails, refracta-nox, and if that fails, I don't know20:31
rwpWhat penguin-eggs do?  Oh!  It is like the old now dead Mondo Rescue!  Gotcha.20:32
rwphttps://penguins-eggs.net/20:33
rwpWhen paculino returns I will say that if the source system has a problem then a penguin-eggs created cloned image should have exactly the same problem.  The point of using a refracta liveboot image is to use a known good image without problems.20:34
fsmithredyes20:35
rwpAnd oh my but Mondo Rescue seems alive again!  It was moribund for many years.  But it has made releases "recently" in 2020.  http://www.mondorescue.org/20:36
paculinoOkay, the option to boot by usb did not even show up, although the live media is recognized by caja by 'x-content/bootable-media type'20:45
fsmithredshow up where? Did you get the computer's boot device menu?20:47
paculinoI did, but only installed OS showed, and nothing else20:47
paculinoefibootmgr shows that USB booting is third, but I just changed it to first20:48
fsmithredif the bios is not set to boot from usb first, you have to press a key to get a device menu (not the grub menu)20:48
paculinoI know20:48
fsmithredok, wasn't sure.20:48
paculinoSorry I was not clear20:48
fsmithredyou got the amd64 nox iso?20:50
paculinoNow that it is set to boot from usb first, I will try again, and this time see if I can access the usb through grub20:50
paculinoI have not put it on yet, but I guess I should do that now20:50
fsmithredthe i386 iso doesn't boot uefi20:50
paculinoI am on amd6420:52
paculinoI tried the gParted-live amd64 media and am now waiting for the refracta-nox amd64 media20:52
rwppaculino, Seeing that penguin-eggs makes clones of running systems a penguin-eggs clone of a system that does not see the internal storage would also be exactly the same, since it is a clone.  The point of booting a known good live-boot iso is that it is known-good and won't have the same problem.20:58
paculinoI thought you said it was likely the configuration? My clone lacks all customized configurations20:58
rwpWell...  It seems likely to me that it must be the configuration.  Because zillions of happy devuan users are not seeing this problem.  But wanted to decouple any failures from the existing system.  Going with a known good refracta liveboot seems easiest to ensure that it is a good image.21:00
paculinoOkay, dd just finished21:02
paculinoI will try again21:02
rwpSidebar: What dd options are you using?21:02
rwpI always use iflag=fullblock oflag=sync,direct so that when dd is done writing that it is done writing and no need to wait for any asynchronous sync.21:03
paculinoJust dd if=~/Downloads/refracta*.iso of=/dev/sda221:03
paculinoThat has worked in the past21:03
paculinoThe GParted-live media worked in the past as well21:04
rwpOkay.  I just worry about these things.  Been bitten before.21:04
rwpwait...  of=/dev/sda2 ??  That's not right.21:04
rwpAnd /dev/sda?  That's going to write to your internal storage!21:04
paculinoThe usb is recognized as sdb21:05
rwpIf the usb is recognized as /dev/sdb then it should be of=/dev/sdb right?  Not /dev/sda2 which would be a partition on your internal storage.21:06
paculinohttps://pastebin.com/PX3jfh9t21:07
paculinoUsb is sda and sdb1 is the negligible size microsoft reserve21:07
paculinoI got it backwards21:08
rwpWhew!  You had me worried there.21:08
rwpBut then if usb is sda then it should be of=/dev/sda then right?21:08
paculinoI had another message telling that sdb1 was the reserve and another about internal being sdb (this was before usb recognized one), but it did not go through21:09
paculinoYes; I will redo it21:09
rwpBe extra careful with targets.  Check it three times to be sure.  Otherwise it is the reason dd is often called the disk destroyer.21:10
rwpI don't know why https://pastebin.com/raw/PX3jfh9t shows /dev/sda1: PARTLABEL="Microsoft reserved partition" though.21:11
paculinoBecause that is the first partition in all disks that have been accessed by windows21:12
paculinoAll storage media21:12
paculinoOkay, dd finished.21:12
rwpThat doesn't make sense to me.  Windows does not repartition things just by accessing them.21:12
paculinoWell, all of my storage media have it that way21:13
rwpHmm...21:13
paculinoIs it okay to try again now, or is the reserve partition thing significant?21:14
rwpI see you using blkid a lot.  Another good tool is smartctl from the smartmontools package.  "smartctl -i /dev/sdb" will report the storage information about sdb.  Good to verify vendor, model, serial number.  It will report something like this for example: https://paste.debian.net/plain/132099721:14
paculinoOh, I have smartmontools as well21:15
rwpThat reserve partition won't be there now that you have run dd of=/dev/sdX upon it.  It will now be overwritten.21:15
paculinoOkay21:15
rwpSeems like it is time to try it.  Good luck!  See you on the other side.21:16
paculinoOkay, thank you21:16
fsmithredwb21:26
rwpWhat was the result?21:28
paculinoI am trying to get the full output, but it did not show, although I can boot into the internal drive no problem21:29
rwpThat's very strange.21:29
fsmithredboot? or access?21:30
fsmithredare you in the live system?21:30
paculinoI was able to use the live system and could not find it. UEFI can find it, and I can boot into it using UEFI (not grub)21:30
rwpIt seems there is some confusion over using the firmware boot menu and using the grub menu.21:32
rwpIIRC refracta is using syslinux too boot the live image.  So if you see grub then you are not in any way booting the refracta live boot image.21:33
fsmithredin the live system, you could put the output of commands into a file and then send it directly to termbin.com where we can see it.21:33
paculinoUEFI shows the internal drive, which is windows, and allows me to boot into it. Nothing else can see it. I enter refracta and lsblk and blkid do not show it. I enter a regular OS's grub install and cannot see the partition as os-prober cannot locate it.21:34
fsmithredrefracta isos use grub when booting uefi systems21:34
rwpNormally we would interrupt the boot process with one of DEL, ESC, F1, F2, Fx..., F8, F9, and one of those produces a boot menu from the firmware of devices to boot.  That's the UEFI boot firmware.  But I am thinking you are not doing this because you are seeing the grub menu which is past that point instead.21:35
paculinoI am doing that21:35
paculinoI do not see the grub menu until after exiting refracta21:35
rwpIf I was doing that and saw a grub menu I would know I missed it and would reboot immediately and try again.21:35
rwpWhen you are in refracta does the internal storage show up?  In say: cat /proc/partitions21:36
paculinoI ran `sudo reboot`. I hit fn, F12, and alt at once to get to UEFI boot. Then, I access refracta, windows, or one of three linux installations.21:36
paculinoI did not check that, only lsblk and blkid21:36
rwpSeems like those should also show the same information.21:37
fsmithredwhen you select refracta from the device menu, you should then get either a syslinux or grub boot menu.21:38
fsmithredIf you get a grub menu, you could press e and mess around on grub command line21:38
fsmithredset root=(hd21:38
fsmithredand then hit TAB21:38
paculinoIn the past that is how I could consistently find the internal drive21:38
fsmithredsorry, press c not e21:38
paculinoI know; c or esc21:39
paculinoWhat should I do after that?21:39
fsmithredand you poked around in all the bios setting to see if there's a setting for this?21:39
fsmithredoh, if you find the drive on grub command line, I'm not sure what to do next.21:40
fsmithredadd that to the evidence bin.21:40
paculinoIf I don't find it that way this time, would that be of any use?21:42
paculinoOh, when in refracta it showed that the microsoft reserve partition came back as sdb221:43
fsmithredI don't know what that is.21:46
rwpThings do not make sense.  The refracta iso does not include a microsoft reserve partition.21:46
paculinoIn refracta, it showed as sdb2, and now it shows as sda121:47
rwphttps://en.wikipedia.org/wiki/Microsoft_Reserved_Partition21:47
rwpThe drive letters might move around with each boot.  That's why everyone is advocating using UUIDs for files like /etc/fstab just to make sure.  But on the command line we usually just figure out which is which and type in the short name, which might be different at different times.21:48
paculinoYes, I use UUID in fstab with comments explaining21:48
paculinopaculino@Aspire:~$ sudo blkid | grep sda21:49
paculinoOh, I misread21:49
paculinoIt is sda2 /dev/sda2: SEC_TYPE="msdos" UUID="EADB-ECC2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="45e4c7d0-02"21:49
rwpThat looks like the UEFI ESP (EFI System Partition) most likely.21:51
* rwp has stuff pulling me away in real life, good luck!21:52
joergblkid still fubar?  >> -c, --cache-file cachefile   Read  from  cachefile  instead  of  reading  from the default cache file (see the CONFIGURATION FILE section for more details).  If you want to start with a clean cache (i.e., don't report devices previously scanned but not necessarily available at this time), specify /dev/null.<<21:52
paculinoShould that be from within refracta?21:52
paculinoThey show the same thing from devuan21:54
fsmithreddo it from wherever you are21:54
fsmithredI asked earlier, but you didn't answer - is internal drive set to ahci in bios?21:54
paculinoI have no idea21:55
paculinoI have no messed with that21:55
paculinonot*21:55
fsmithrednext time you're in there, look for it21:55
fsmithredit might be set to RAID21:57
joergooh, it was >>-g, --garbage-collect  Perform a garbage collection pass on the blkid cache to remove devices which no longer exist.<<21:58
fsmithredis there an option to recycle stuff that got mistakenly picked up with the garbage?22:03
paculinoIf it is not ahci, should I set it to that?22:04
fsmithredyes22:04
paculinoOkay, I will try that22:06
joergjr@saturn:~> grep -C1 'CACHE_FILE' /etc/blkid.conf22:07
joerg# do not keep cache file across reboots22:07
joergCACHE_FILE=/dev/.blkid.tab22:07
paculinoWell, the UEFI settings never loaded22:37
paculinoIs there a way to access all of the uefi settings from terminal? I know efibootmgr can access boot order. a search reveals systemctl reboot --firmware-setup works with systemd, but I obviously want to avoid that22:39
fsmithredpaculino, there should be a key press to get into the bios. I've seen it take several attempts on some machines. Hold the key down.23:11
paculinoI did that and got a black screen and the fans started going fast23:25
paculinoI will try again23:25
paculinoThank you23:25

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