| AlexLikeRock | hi | 00:25 |
|---|---|---|
| AlexLikeRock | fsmithred, | 00:25 |
| AlexLikeRock | are you ready ? | 00:25 |
| rrq | AlexLikeRock: I'm a bit too busy this morning... I think fsmithred did some experiments yesterday and possibly also have opportunity to assist eventually | 01:00 |
| gnarface | he's already gone | 01:08 |
| arity | how to prevent poweroff on power button press when im in X without installing packages | 09:43 |
| arity | when i press power button when on X is the signal SIGPWR ? | 09:47 |
| Joril | arity: I think you should remove/disable the acpid package...? | 09:48 |
| arity | i need to disable that | 09:48 |
| gnarface | depends on the hardware, i think... some hardware you can only disable it in the bios | 09:48 |
| arity | i dont have acpid | 09:48 |
| arity | gnarface isnt the cpu get a signal when i press power button | 09:48 |
| gnarface | yes, sometimes, but sometimes it's also wired directly to the power supply through the bios, and those two things aren't mutually exclusive | 09:50 |
| arity | ah okay | 09:50 |
| rrq | arity: if you use elogind you might want to check /etc/elogind/logind.conf | 09:57 |
| rrq | HandlePowerKey=ignore | 09:58 |
| arity | oh yea rrq ty | 09:59 |
| cousin_luigi | I'm attempting to chainload another grub installed to the mbr. My own install is mbr, but I always get "invalid signature" | 12:32 |
| fsmithred | cousin_luigi, did you see this one? https://unix.stackexchange.com/questions/252936/grub2-boot-to-a-second-another-hard-disk | 13:03 |
| cousin_luigi | fsmithred: Thanks, but os-prober won't detect openwrt | 13:04 |
| cousin_luigi | And yes, I've tried the "obvious" solutions like chainloader (hd1)+1 | 13:04 |
| fsmithred | and drivemap -s ? | 13:13 |
| cousin_luigi | fsmithred: What does that do? | 15:24 |
| gnarface | cousin_luigi: i've got no fixes for you, but the search results suggest it's a UEFI issue | 15:28 |
| cousin_luigi | gnarface: Neither the main system nor the alternate one use UEFI | 15:28 |
| gnarface | like one grub is in UEFI mode and the other isn't? or something like that... | 15:28 |
| cousin_luigi | Just MBR | 15:28 |
| cousin_luigi | My only guess at this point is that perhaps I disabled boot from usb | 15:28 |
| gnarface | are you sure? neither of these is windows? | 15:28 |
| cousin_luigi | gnarface: One is devuan, the other is openwrt | 15:30 |
| gnarface | search results are flooded with people complaining about the same error while trying to dual-boot linux+windows | 15:30 |
| cousin_luigi | I have noticed that myself. | 15:30 |
| fsmithred | cousin_luigi, here's what I use to boot an installed usb: https://paste.debian.net/1320902/ | 15:58 |
| cousin_luigi | fsmithred: Will try that, thanks. | 15:59 |
| fsmithred | also, you should be able to make a boot entry without chainloading. Just name root, kernel and initrd. | 16:00 |
| fsmithred | instead of chainloader you could try: configfile /boot/grub/grub.cfg | 16:04 |
| fsmithred | after setting the root device to hd0 or hd1, whichever it is on that boot. (hint: it's not always the same) | 16:05 |
| cousin_luigi | fsmithred: The snippet you linked above makes the original grub come back | 16:07 |
| cousin_luigi | fsmithred: I've tried both of the other suggestions | 16:07 |
| fsmithred | you mean it reloads the same grub menu? | 16:07 |
| fsmithred | hd0 vs hd1 ? | 16:07 |
| cousin_luigi | yes | 16:08 |
| fsmithred | sounds like it's confused about which drive is first | 16:08 |
| cousin_luigi | I wonder the secondary grub.cfg has something bad in it | 16:08 |
| fsmithred | which is a common problem. | 16:08 |
| fsmithred | oh, maybe | 16:08 |
| fsmithred | you tried doing it on grub command line? | 16:08 |
| cousin_luigi | yes | 16:08 |
| cousin_luigi | the openwrt grub.cfg has a set root=(hd0,1) | 16:09 |
| cousin_luigi | Perhaps I really need drivemap | 16:09 |
| fsmithred | I often have to do that to figure out which way works | 16:09 |
| fsmithred | so the bootloader is in the partition instead of the mbr? | 16:09 |
| fsmithred | or, no... | 16:09 |
| fsmithred | is openwrt on the first hard drive? If not, that root needs to be changed. | 16:10 |
| cousin_luigi | In the partition, yes | 16:10 |
| fsmithred | hd1,1 | 16:10 |
| cousin_luigi | will try drivemap | 16:10 |
| fsmithred | yeah | 16:10 |
| fsmithred | that should work | 16:10 |
| fsmithred | then openwrt can keep thinking what it wants | 16:11 |
| fsmithred | I have to go. bbl. good luck. | 16:11 |
| cousin_luigi | yeah, drivemap worked | 16:15 |
| cousin_luigi | thanks, bbl | 16:15 |
| paculino | I'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 |
| rwp | paculino, Is the internal drive seen in "cat /proc/partitions"? | 20:04 |
| fsmithred | fdisk -l | 20:04 |
| paculino | It does not | 20:05 |
| rwp | Hmm... But it boots okay from it? Very strange. | 20:05 |
| paculino | UEFI booting does show it | 20:05 |
| paculino | And if I boot into it, accidentally or not, it becomes the first option | 20:05 |
| rwp | This 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 |
| rwp | If 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 |
| paculino | It 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 |
| fsmithred | can you see the drive if you are root? | 20:09 |
| rwp | Hmm... 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 |
| paculino | I have been using sudo for lsblk and blkid (they don't work otherwise) | 20:10 |
| paculino | Is that how the emergency/recovery/grub stuff circumvents it? Lower level UEFI things? | 20:10 |
| rustyaxe | That seems moderately insane. How are you to install an OS? | 20:11 |
| paculino | Twice I used live boot media and the other times I used copying and migrating or debootstrap | 20:12 |
| rwp | lsblk 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 |
| rwp | What laptop vendor and model is this machine? | 20:15 |
| paculino | Aspire A515-54 V1.07 | 20:15 |
| rwp | I 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 |
| paculino | I only have trouble when booting from the external drive | 20:17 |
| fsmithred | bios is set to ahci? | 20:18 |
| fsmithred | try booting one of these - | 20:20 |
| fsmithred | https://get.refracta.org/files/daedalus/ | 20:20 |
| paculino | I 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 bit | 20:21 |
| fsmithred | refracta isos have irssi and hexchat | 20:22 |
| paculino | Should I use refracta then, or is gParted good enough? | 20:23 |
| rwp | I 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 |
| paculino | Okay, I will download that and make new live media | 20:24 |
| rwp | If you want the full X graphics then that's okay too. It's just a bigger download and a longer boot. | 20:25 |
| rwp | But 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 |
| paculino | If 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 |
| rwp | Saying 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 |
| rwp | What is "an iso of Devuan exactly as installed but without any configuration" ?? Sounds like installation media rather than live boot media? | 20:28 |
| paculino | gParted live is just Debian with as little as necessary to run gParted | 20:28 |
| paculino | I used penguin-eggs to create live boot media | 20:28 |
| rwp | The gParted boot might be enough then. I am unfamiliar with it. | 20:29 |
| rwp | I am unfamiliar with penguin-eggs too. I live under a rock. I just use dd for such things. | 20:29 |
| paculino | Okay, I will try it and if it fails I will use refracta. | 20:29 |
| paculino | I also use dd; penguin-eggs generates something to use dd on | 20:30 |
| rwp | I searched and my first hit was this: https://en.wikipedia.org/wiki/Penguin_Eggs | 20:30 |
| * rwp laughs | 20:30 | |
| paculino | https://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 know | 20:31 |
| rwp | What penguin-eggs do? Oh! It is like the old now dead Mondo Rescue! Gotcha. | 20:32 |
| rwp | https://penguins-eggs.net/ | 20:33 |
| rwp | When 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 |
| fsmithred | yes | 20:35 |
| rwp | And 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 |
| paculino | Okay, 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 |
| fsmithred | show up where? Did you get the computer's boot device menu? | 20:47 |
| paculino | I did, but only installed OS showed, and nothing else | 20:47 |
| paculino | efibootmgr shows that USB booting is third, but I just changed it to first | 20:48 |
| fsmithred | if 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 |
| paculino | I know | 20:48 |
| fsmithred | ok, wasn't sure. | 20:48 |
| paculino | Sorry I was not clear | 20:48 |
| fsmithred | you got the amd64 nox iso? | 20:50 |
| paculino | Now that it is set to boot from usb first, I will try again, and this time see if I can access the usb through grub | 20:50 |
| paculino | I have not put it on yet, but I guess I should do that now | 20:50 |
| fsmithred | the i386 iso doesn't boot uefi | 20:50 |
| paculino | I am on amd64 | 20:52 |
| paculino | I tried the gParted-live amd64 media and am now waiting for the refracta-nox amd64 media | 20:52 |
| rwp | paculino, 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 |
| paculino | I thought you said it was likely the configuration? My clone lacks all customized configurations | 20:58 |
| rwp | Well... 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 |
| paculino | Okay, dd just finished | 21:02 |
| paculino | I will try again | 21:02 |
| rwp | Sidebar: What dd options are you using? | 21:02 |
| rwp | I 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 |
| paculino | Just dd if=~/Downloads/refracta*.iso of=/dev/sda2 | 21:03 |
| paculino | That has worked in the past | 21:03 |
| paculino | The GParted-live media worked in the past as well | 21:04 |
| rwp | Okay. I just worry about these things. Been bitten before. | 21:04 |
| rwp | wait... of=/dev/sda2 ?? That's not right. | 21:04 |
| rwp | And /dev/sda? That's going to write to your internal storage! | 21:04 |
| paculino | The usb is recognized as sdb | 21:05 |
| rwp | If 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 |
| paculino | https://pastebin.com/PX3jfh9t | 21:07 |
| paculino | Usb is sda and sdb1 is the negligible size microsoft reserve | 21:07 |
| paculino | I got it backwards | 21:08 |
| rwp | Whew! You had me worried there. | 21:08 |
| rwp | But then if usb is sda then it should be of=/dev/sda then right? | 21:08 |
| paculino | I 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 through | 21:09 |
| paculino | Yes; I will redo it | 21:09 |
| rwp | Be 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 |
| rwp | I don't know why https://pastebin.com/raw/PX3jfh9t shows /dev/sda1: PARTLABEL="Microsoft reserved partition" though. | 21:11 |
| paculino | Because that is the first partition in all disks that have been accessed by windows | 21:12 |
| paculino | All storage media | 21:12 |
| paculino | Okay, dd finished. | 21:12 |
| rwp | That doesn't make sense to me. Windows does not repartition things just by accessing them. | 21:12 |
| paculino | Well, all of my storage media have it that way | 21:13 |
| rwp | Hmm... | 21:13 |
| paculino | Is it okay to try again now, or is the reserve partition thing significant? | 21:14 |
| rwp | I 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/1320997 | 21:14 |
| paculino | Oh, I have smartmontools as well | 21:15 |
| rwp | That reserve partition won't be there now that you have run dd of=/dev/sdX upon it. It will now be overwritten. | 21:15 |
| paculino | Okay | 21:15 |
| rwp | Seems like it is time to try it. Good luck! See you on the other side. | 21:16 |
| paculino | Okay, thank you | 21:16 |
| fsmithred | wb | 21:26 |
| rwp | What was the result? | 21:28 |
| paculino | I am trying to get the full output, but it did not show, although I can boot into the internal drive no problem | 21:29 |
| rwp | That's very strange. | 21:29 |
| fsmithred | boot? or access? | 21:30 |
| fsmithred | are you in the live system? | 21:30 |
| paculino | I 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 |
| rwp | It seems there is some confusion over using the firmware boot menu and using the grub menu. | 21:32 |
| rwp | IIRC 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 |
| fsmithred | in 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 |
| paculino | UEFI 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 |
| fsmithred | refracta isos use grub when booting uefi systems | 21:34 |
| rwp | Normally 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 |
| paculino | I am doing that | 21:35 |
| paculino | I do not see the grub menu until after exiting refracta | 21:35 |
| rwp | If I was doing that and saw a grub menu I would know I missed it and would reboot immediately and try again. | 21:35 |
| rwp | When you are in refracta does the internal storage show up? In say: cat /proc/partitions | 21:36 |
| paculino | I 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 |
| paculino | I did not check that, only lsblk and blkid | 21:36 |
| rwp | Seems like those should also show the same information. | 21:37 |
| fsmithred | when you select refracta from the device menu, you should then get either a syslinux or grub boot menu. | 21:38 |
| fsmithred | If you get a grub menu, you could press e and mess around on grub command line | 21:38 |
| fsmithred | set root=(hd | 21:38 |
| fsmithred | and then hit TAB | 21:38 |
| paculino | In the past that is how I could consistently find the internal drive | 21:38 |
| fsmithred | sorry, press c not e | 21:38 |
| paculino | I know; c or esc | 21:39 |
| paculino | What should I do after that? | 21:39 |
| fsmithred | and you poked around in all the bios setting to see if there's a setting for this? | 21:39 |
| fsmithred | oh, if you find the drive on grub command line, I'm not sure what to do next. | 21:40 |
| fsmithred | add that to the evidence bin. | 21:40 |
| paculino | If I don't find it that way this time, would that be of any use? | 21:42 |
| paculino | Oh, when in refracta it showed that the microsoft reserve partition came back as sdb2 | 21:43 |
| fsmithred | I don't know what that is. | 21:46 |
| rwp | Things do not make sense. The refracta iso does not include a microsoft reserve partition. | 21:46 |
| paculino | In refracta, it showed as sdb2, and now it shows as sda1 | 21:47 |
| rwp | https://en.wikipedia.org/wiki/Microsoft_Reserved_Partition | 21:47 |
| rwp | The 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 |
| paculino | Yes, I use UUID in fstab with comments explaining | 21:48 |
| paculino | paculino@Aspire:~$ sudo blkid | grep sda | 21:49 |
| paculino | Oh, I misread | 21:49 |
| paculino | It is sda2 /dev/sda2: SEC_TYPE="msdos" UUID="EADB-ECC2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="45e4c7d0-02" | 21:49 |
| rwp | That 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 | |
| joerg | blkid 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 |
| paculino | Should that be from within refracta? | 21:52 |
| paculino | They show the same thing from devuan | 21:54 |
| fsmithred | do it from wherever you are | 21:54 |
| fsmithred | I asked earlier, but you didn't answer - is internal drive set to ahci in bios? | 21:54 |
| paculino | I have no idea | 21:55 |
| paculino | I have no messed with that | 21:55 |
| paculino | not* | 21:55 |
| fsmithred | next time you're in there, look for it | 21:55 |
| fsmithred | it might be set to RAID | 21:57 |
| joerg | ooh, it was >>-g, --garbage-collect Perform a garbage collection pass on the blkid cache to remove devices which no longer exist.<< | 21:58 |
| fsmithred | is there an option to recycle stuff that got mistakenly picked up with the garbage? | 22:03 |
| paculino | If it is not ahci, should I set it to that? | 22:04 |
| fsmithred | yes | 22:04 |
| paculino | Okay, I will try that | 22:06 |
| joerg | jr@saturn:~> grep -C1 'CACHE_FILE' /etc/blkid.conf | 22:07 |
| joerg | # do not keep cache file across reboots | 22:07 |
| joerg | CACHE_FILE=/dev/.blkid.tab | 22:07 |
| paculino | Well, the UEFI settings never loaded | 22:37 |
| paculino | Is 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 that | 22:39 |
| fsmithred | paculino, 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 |
| paculino | I did that and got a black screen and the fans started going fast | 23:25 |
| paculino | I will try again | 23:25 |
| paculino | Thank you | 23:25 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!