davido_ | Checking. | 00:00 |
---|---|---|
davido_ | With a new user the experience is the same. | 00:04 |
fuzzypixelz | tomreyn: what if I just want to remove a package that has no PPA file in sources.d | 00:04 |
TJ- | davido_: so looks to be a system-wide default then | 00:05 |
tomreyn | fuzzypixelz: you apt remove / purge (or dpkg -r / -P) it | 00:06 |
=== Euph0ria is now known as FelixUnger | ||
fuzzypixelz | tomreyn: since I deleted the .list file in sources.d apt doesn't recognize it | 00:16 |
sarnold | dpkg --purge will | 00:16 |
davido_ | Found the explanation and answer I was looking for: http://ubuntuhandbook.org/index.php/2020/01/remove-top-bar-application-menu-ubuntu-19-10-18-04/ | 00:18 |
davido_ | Option 2 works for 20.10, for example. | 00:18 |
=== FelixUnger is now known as Quincy | ||
sarnold | davido_: aha, cool | 00:20 |
sarnold | davido_: not all extensions work well together, if you find sudden stability changes, remember this moment :) | 00:20 |
davido_ | This brings Ubuntu in line with what it documented as being the way forward starting in 18.10+, and with what vanilla Gnome is doing. | 00:21 |
davido_ | sarnold: Yes, I usually have to kill off a few extensions whenever I upgrade to new Ubuntu releases the bundle newer versions of Gnome. I've gotten used to that. | 00:21 |
sarnold | davido_: aha, cool | 00:22 |
sarnold | well, it's not *cool*, but it's good to know how to cope | 00:22 |
davido_ | Right. The normal route is (1) Upgrade Ubuntu. (2) Things start working in strange ways. (3) Kill off a few extensions. (4) Things get better again. | 00:23 |
davido_ | exit | 00:26 |
davido_ | (sorry) | 00:26 |
=== VileGent is now known as kk4ewt | ||
=== johuck8 is now known as johuck | ||
=== beaver is now known as naive`user | ||
Elw3 | say, why is the a file "core" in / ? I dont think i ever saw that there. | 02:02 |
Elw3 | *there | 02:02 |
sarnold | Elw3: that might happen if for some reason apport isn't in your /proc/sys/kernel/core_pattern any more, and a process crashes while in / | 02:05 |
Elw3 | So it is a crash report? | 02:07 |
sarnold | well, coredump; you can learn more about the process and format in the core(5) manpage | 02:08 |
sarnold | you could feed it to gdb to learn more about it | 02:08 |
sarnold | depending upon when it was written, you may have some notes about it in your dmesg, too; it's often something like this: | 02:09 |
sarnold | [5534396.857506] tmux: server[79373]: segfault at 555555633490 ip 0000555555633490 sp 00007fffffffdda0 error 15 | 02:09 |
=== johuck0 is now known as johuck | ||
Elw3 | I guess ill just delete it then, too much to work on anyway. Thanks for the info anyway. | 02:10 |
sarnold | heh, makes sense | 02:11 |
=== ElectronFrost_ is now known as ElectronFrost | ||
=== PowerTower_121 is now known as PowerTower_120 | ||
=== zbenjamin is now known as Guest50187 | ||
=== zbenjamin_ is now known as zbenjamin | ||
=== Mrokii_ is now known as Mrokii | ||
=== devnull_ is now known as Guest48141 | ||
devnull__ | hi guys id like to auto run vpn-thats all setup"openvpn"-will uncommenting the "AUTOSTART="all"" cause any problems for me am runnig 20.04.01 5.4.0-52-generic | 04:17 |
raul782 | Hey folks when trying to enter my passphrase for the OpenGPG secret key, my prompt goes out of the cli screen, and when typing it always puts the cursor to the beginning. I'm using zsh any ideas why this might happen? | 04:17 |
devnull__ | in the /etc/default/openvpn file | 04:18 |
devnull__ | brb | 04:21 |
devilnull | hi all i have lost some information i would from a previous login to this channel any way to view conversation that has long passed (same nick user logged in) | 05:12 |
devilnull | also with system service names (making your own) whats the difference between .service and .service.wants | 05:13 |
devilnull | or .target.wants | 05:13 |
devilnull | if there are are no commands to view logged in conversation is a bouncer my only recourse (it will always be logged in and will show posts from both when logged in or not? | 05:18 |
devilnull | hello anyone? | 05:35 |
=== devilnull is now known as pizza | ||
=== pizza is now known as lapag | ||
varaindemian | I configured the ethernet port to work with pppoe and now it does't work with the cable from the router | 06:41 |
varaindemian | any idea how I can reset the settings? | 06:41 |
varaindemian | I am on 20.04 | 06:41 |
varaindemian | I only see network and vpn proxy in sdettings | 06:46 |
varaindemian | no wired connection | 06:47 |
pi0 | i have a firestick, and ubuntu box, i would like to stream to vlc player from my ubuntu box | 07:12 |
pi0 | any recs on the best option for this | 07:13 |
soxfoxrox | I upgraded my server to 20.04 and now when I "curl https://information.dk" I get an error saying "error:1414D172:SSL routines:tls12_check_peer_sigalg:wrong signature type". Googling says the problem probably has to do with better SSL security and information.dk supporting outdated TLS versions, but I can't find out what to change on my system to make it work again. Help would be appreciated. | 07:19 |
MWM | Ive got a network issue that led me to check into /sys and notice that some directories were missing. TO avoid reinstall I want to try copying these files from a working install to a usb key and back into the borked install. /sys is resisting. Any ideas? | 07:37 |
ducasse | MWM: /sys is a pseudo-filesystem, not real files you can copy | 07:40 |
ducasse | MWM: see the output of 'mount' | 07:41 |
MWM | Ive copied the files I need and verified them on usb. The borked install is pitching fits about pushing them however. | 07:42 |
MWM | permission issues it says | 07:43 |
ducasse | it doesn't make sense to copy them, stuff in /sys is system-specific | 07:43 |
ducasse | just try a reboot | 07:44 |
MWM | I understand that. I took the files from a working install (dual boot) on the same hardware. While I know I could just reinstall.. this is more of an educational endevour | 07:44 |
MWM | I kept the old install for forensic purposes only. | 07:45 |
ducasse | you don't seem to understand what i'm saying, they aren't real files, only elements of the running system represented as such | 07:47 |
ducasse | you're trying to copy memory | 07:47 |
ducasse | if you reboot you should get a fresh sys | 07:48 |
ducasse | sorry, /sys | 07:49 |
MWM | well thank you for your help anyway. I just wanted to pull zxome wizardry to reair this install. There isnt an issue with reinstallion if need be. I think a power failure during upgrade killed the network or something | 07:50 |
ducasse | MWM: can't you just reboot? | 07:51 |
MWM | Since there was a difference in the /sys between working and non working installs I thought that might correct the issue | 07:51 |
MWM | reboot does not correct the issue | 07:51 |
ducasse | what is missing? | 07:52 |
MWM | there are several directories missing from /sys/bus/i2c/drivers amongst others | 07:53 |
ducasse | are those modules loaded? | 07:53 |
ducasse | if they aren't, those would be missing | 07:54 |
MWM | That is good to know. I had thought that it worked the other way around... directory exists so module gets loaded | 07:55 |
ducasse | no, the drivers create those 'files' as interfaces to the running driver | 07:55 |
ducasse | check your dmesg for problems | 07:56 |
MWM | well then I see that I am going about this backwards for one thing. Thanks for all the fish :D | 07:56 |
ducasse | you're welcome :) | 07:56 |
=== guiverc2 is now known as guiverc | ||
lotuspsychje | soxfoxrox: try #ubuntu-server if you like where more server experts gather | 08:39 |
Xorg | guys how come I get unknown filesystem type 'efivarfs'. | 08:45 |
Xorg | what package should I install | 08:45 |
Xorg | this is on mount | 08:45 |
b247_eu | Hi everyone, please help with a vpn conn issue using charon-nm - networkmanager-strongswan (same conn is working when using ipsec up myconn but not when using #nm gui); have logs available if one can help me; Thank You | 08:45 |
EriC^ | Xorg: where exactly do you get this message? | 08:48 |
Xorg | on mount | 08:48 |
Xorg | mount: /mnt: unknown filesystem type 'efivarfs'. | 08:48 |
EriC^ | Xorg: what do you mean? are you typing a command? | 08:51 |
Xorg | mount -t efivarfs firmware.img /mnt/ | 08:51 |
Xorg | i'm tryna mount a firmware | 08:51 |
EriC^ | Xorg: what happens if you just do 'mount firmware.img /mnt' ? | 08:54 |
EriC^ | Xorg: try 'sudo modprobe efivarfs' | 08:57 |
Xorg | tried no luck | 08:58 |
EriC^^ | Xorg: i got disconnected, did you try modprobe? | 09:03 |
Xorg | yep same thing | 09:04 |
EriC^^ | where did you get the mount command from? | 09:05 |
ducasse | Xorg: try 'file firmware.img' | 09:05 |
Xorg | dsl device | 09:05 |
Xorg | its a binary | 09:05 |
EriC^^ | Xorg: and does 'grep efivarfs /proc/filesystems' list efivarfs ? | 09:05 |
Xorg | my mount works fine on arch with -t efivarfs | 09:05 |
Xorg | but not on ubuntu for some reason | 09:05 |
EriC^^ | Xorg: maybe you have to boot the session in uefi mode to get efivarfs loaded | 09:05 |
Xorg | hmm | 09:06 |
Xorg | weird | 09:06 |
EriC^^ | usually that's the case | 09:06 |
EriC^^ | you could boot a live usb in uefi mode if your install is in legacy mode | 09:06 |
zetheroo | I just accidentally deleted the boot and extended partition on my laptop SSD using the Disks utility, but I haven't rebooted so it's still running ... | 09:11 |
zetheroo | How can I undo it? | 09:11 |
ducasse | zetheroo: have you got a backup of the partition table? | 09:13 |
zetheroo | In Disks I see 769MB of Free Space (should be boot partition), and then 499GB LUKS on top and 499GB LVM2 PV | 09:14 |
zetheroo | ducasse: no | 09:14 |
zetheroo | :( | 09:14 |
EriC^^ | zetheroo: can you paste 'sudo parted -ls | nc termbin.com 9999' | 09:14 |
EriC^^ | zetheroo: easy fix | 09:14 |
zetheroo | https://termbin.com/iahw | 09:15 |
zetheroo | ducasse: ^ | 09:15 |
EriC^^ | zetheroo: you deleted the whole partitions, not just boot | 09:15 |
EriC^^ | ah you mentioned extended, thought you just said boot | 09:16 |
zetheroo | EriC^^: yeah | 09:16 |
EriC^^ | zetheroo: sudo apt-get install testdisk | 09:16 |
EriC^^ | try 'sudo testdisk' | 09:16 |
zetheroo | ok, do I select the first one? https://pastebin.ubuntu.com/p/Zfv27t4V6V/ | 09:18 |
EriC^^ | yeah | 09:18 |
zetheroo | 'partition table type' ... | 09:19 |
EriC^^ | intel | 09:19 |
zetheroo | ok | 09:19 |
zetheroo | Analyse? or another option? | 09:20 |
EriC^^ | yes analyse | 09:20 |
zetheroo | https://pastebin.ubuntu.com/p/hqQT9DxzX5/ | 09:20 |
EriC^^ | quick search | 09:21 |
EriC^^ | (press enter) | 09:21 |
zetheroo | ah ok | 09:21 |
zetheroo | Analyse cylinder count is ticking ... | 09:21 |
zetheroo | 03% .... could take a while | 09:22 |
EriC^^ | zetheroo: has it listed the luks and boot partitions yet? | 09:22 |
zetheroo | Linux 0 32 33 93 80 51 1497088 | 09:23 |
zetheroo | Linux 93 113 21 93 178 21 4096 | 09:23 |
zetheroo | https://pastebin.ubuntu.com/p/7fpmmxgffM/ | 09:23 |
EriC^^ | give it some time | 09:23 |
EriC^^ | zetheroo: you mentioned luks in the disks utity still showing, can anything be done from there? any relevant info perhaps? | 09:24 |
zetheroo | I can't seem to make the first partition a boot partition again | 09:27 |
zetheroo | and I cannot seem to recreate the extended partition layer either | 09:27 |
zetheroo | https://ibb.co/18Pz8xz | 09:27 |
zetheroo | https://ibb.co/9qgjmSH | 09:27 |
zetheroo | https://ibb.co/z7zWgh6 | 09:27 |
zetheroo | 78% .. | 09:32 |
mgedmin | zetheroo: https://unix.stackexchange.com/questions/335690/recovering-partitioning-information-from-block-devices | 09:33 |
zetheroo | for the boot partition, can't I just do something like sudo grub-install /dev/sda ? | 09:34 |
zetheroo | EriC^^: scan finished https://pastebin.ubuntu.com/p/9TbrbTCmK2/ | 09:35 |
zetheroo | EriC^^: is the first one the boot partition? | 09:37 |
SupaYoshi | Hi i've got a qustion about redis and mysql working together, i am new the redis. just got some basic questions; aka,i installed redis on a container and i have a mariadb server running on a virual machine... | 09:37 |
SupaYoshi | how do you get to connect the two together? | 09:38 |
SupaYoshi | i can't really seem to find a tutorial / explanation on how thus would work, just that redis can cache stuff so it's faster. I get that ;) but how do I get redis to talk to the sql server? | 09:38 |
b247_eu | Please help with strongswan.conf, mainly networkmanager-strongswan mschapv2 support | 09:39 |
EriC^^ | zetheroo: try pressing 'p' over the partition to list its files | 09:40 |
mgedmin | zetheroo: seriously, take the current partition boundaries from files in /sys rather than letting testdisk guess them, if you haven't rebooted yet | 09:40 |
zetheroo | EriC^^: https://pastebin.ubuntu.com/p/6F3V5C4hwY/ | 09:41 |
mgedmin | SupaYoshi: it's not magic, the application that uses the database has to do the caching manually | 09:41 |
SupaYoshi | mgedmin: ah okay ;) so right, the application needs both redis server and mysql server details if it | 09:41 |
zetheroo | EriC^^: second partition https://pastebin.ubuntu.com/p/72VhP3JmPZ/ | 09:41 |
SupaYoshi | is capable of using redis at all | 09:42 |
SupaYoshi | mgedmin, redis and mariadb on the same virtual machine, vs redis on a lxc container in proxmox and mariadb on a virtual machine. | 09:43 |
SupaYoshi | thoughts? | 09:43 |
EriC^^ | zetheroo: the first one looks like the boot partition, the 2nd though is too small to be the luks, i'd recommend trying the script in the link mgedmin provided | 09:43 |
EriC^^ | zetheroo: copy & paste the print_partitions there and add the command, it should look like this format https://termbin.com/53ul | 09:44 |
EriC^^ | then try to chmod +x script.sh and running ./script.sh | 09:44 |
zetheroo | ok | 09:45 |
zetheroo | EriC^^: https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ | 09:46 |
zetheroo | mgedmin: ^ | 09:47 |
zetheroo | or should I just copy all my data off and reinstall .... :/ | 09:47 |
EriC^^ | zetheroo: the sector size in bytes is 499339255808 so that matches the disks output | 09:48 |
EriC^^ | so i'd guess that's the luks partition | 09:48 |
zetheroo | ok | 09:48 |
zetheroo | what now? | 09:52 |
cxl | Hi all, how do I add this ppa to my repo list: https://launchpad.net/ubuntu/+source/borgmatic? I've tried sudo add-apt-repository ppa:ubuntu/borgmatic | 09:53 |
cxl | but that didn't work | 09:53 |
EriC^^ | zetheroo: ok type 'sudo fdisk /dev/sda' | 09:54 |
zetheroo | yep | 09:54 |
EriC^^ | zetheroo: the thing is the boot partition doesnt end right before the luks one, so im thinking its cause the luks is an extended one, but hopefully if we recreate the boot one and the extended etc itll all match up | 09:55 |
zetheroo | https://pastebin.ubuntu.com/p/yqqNsQCG5r/ | 09:55 |
EriC^^ | zetheroo: the boot one starts at sector 3233 | 09:55 |
zetheroo | is that the boot? ^ | 09:56 |
EriC^^ | zetheroo: it looks like it, typically it's at sector 2048, but it doesnt add up with the start of the luks one though | 09:56 |
EriC^^ | it ends at 1503231 and luks starts at 1501184 | 09:57 |
EriC^^ | the size matches though, 733MiB is 768mb | 09:58 |
EriC^^ | *768.something | 09:58 |
zetheroo | ok, well I am copying all my data to an external disk to be safe | 09:59 |
EriC^^ | yeah i was about to suggest | 09:59 |
zetheroo | 5hrs to go :P | 09:59 |
EriC^^ | zetheroo: after it's done, you can try to recreate the extended partition + luks one, and see how that goes, if that doesnt work we can try using the testdisk 3233 sector start for boot and recreate from there | 10:00 |
EriC^^ | zetheroo: how did the 2048sector boot pop up in fdisk? did you add it somehow or it was just there? | 10:00 |
zetheroo | I pressed 'p' and it was there | 10:01 |
EriC^^ | zetheroo: aha, if you type 'sudo mount -o offset=$((2048 * 512)) /dev/sda /cdrom' | 10:04 |
EriC^^ | does 'ls /cdrom' list the boot partition? | 10:04 |
zetheroo | EriC^^: https://pastebin.ubuntu.com/p/bdXB8YGxz3/ | 10:15 |
zetheroo | EriC^^: I gotta go out for a bit ... but will be back in about an hour | 10:15 |
EriC^^ | zetheroo: alright | 10:18 |
tomreyn | cxl: it's not a PPA | 10:19 |
tomreyn | ppa archiove urls start with ppa.launchpad.net. the urls which point to the web pages describing those PPAs contain "/+archive/". | 10:22 |
ash_1 | hi! I have installed ubuntu 20.04 on my hp envy x360..ryzen 5 with touchscreen. The touch is erratic. Can anyone help? | 11:08 |
ash_1 | or is there any way to disable touch screen? | 11:08 |
tomreyn | second hit on a web search for "ubuntu disable touchscreen" is https://askubuntu.com/questions/1038248/how-to-disable-touchscreen-permanently-on-ubuntu-18-04/1038259 | 11:10 |
zetheroo | EriC^^: ok I'm back for an hour and then I got to go out again ... anything new for me to do? | 11:29 |
=== johuck8 is now known as johuck | ||
ash_1 | hello! i have installed Ubuntu 20.04 LTS on my hp envy x360 laptop (ryzen 5). I am facing freeze issue with my laptop. After using for some time, the laptop just frooze. Mouse pointer could move but no response. | 11:46 |
ash_1 | Can anyone please help? I had used other linux distros like Linux mint, fedora, lubuntu but I was facing same issue so, i switched to Ubuntu but, problem still persists. | 11:48 |
ThinkT510 | ash_1: you could test out a mainline kernel which would have more up-to-date divers to see if it is a driver issue | 11:50 |
ThinkT510 | !mainline | 11:50 |
ubottu | The kernel team supply continuous mainline kernel builds which can be useful for tracking down issues or testing recent changes in the Linux kernel. More information is available at https://wiki.ubuntu.com/Kernel/MainlineBuilds | 11:50 |
lotuspsychje | yeah good idea for ryzen machines ThinkT510 ash_1 higher kernels | 11:52 |
ash_1 | I am not a linux expert, just a developer. Before doing anything with kernel, may I know how can I detect if freeze issue is related to divers? | 11:55 |
alekksander | hello. is there a reason why my ssd shows creation timestamp for files, while external doesn't? is there a way to have creation timestamp on external? i tried adding „crtime” to fstab, but no luck. external is ntfs, internal ext4 – is that a reason? | 11:56 |
ThinkT510 | ash_1: don't worry, installing a mainline kernel won't alter your current kernel. you can still boot the older one. by trying a newer kernel that is how you are testing if it is a driver issue. | 11:57 |
ash_1 | ThinkT510 which kernel version should I try? My laptop currently has `5.4.0-52-generic`. | 12:06 |
lotuspsychje | ash_1: i would at least got for 5.6 and higher as a test | 12:07 |
lotuspsychje | *go | 12:07 |
ThinkT510 | ash_1: depends how methodical you want to be. if you try the latest you can know if it is still a current issue if you face the same problem. or you could work your way up to the latest to try to track down when it was fixed (if it has been fixed) | 12:08 |
ash_1 | I want to try: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/. So do i need to install all 4? linux-headers-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb, linux-headers-5.9.0-050900_5.9.0-050900.202010112230_all.deb, linux-image-unsigned-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb, linux-modules-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb | 12:16 |
signofzeta | hello everyone. i'm having a weird issue with apt. for some reason, libodbc1 is being held back on my system. is there any way to tell why that is? | 12:17 |
ThinkT510 | ash_1: yes, all 4 of them | 12:19 |
ash_1 | thanks! | 12:20 |
lotuspsychje | ash_1: dont forget to sudo update-grub after you installed them | 12:20 |
ash_1 | ok! Thanks lotuspsychje! | 12:21 |
lotuspsychje | signofzeta: do you have external ppa's added to your system? could you pastebin the whole apt output of what you are doing please? | 12:21 |
signofzeta | lotuspsychje: i certainly do. hold on | 12:21 |
signofzeta | also, i just tried apt --with-new-pkgs upgrade to no effect | 12:22 |
signofzeta | apt upgrade: https://termbin.com/29d8v | 12:22 |
signofzeta | i'm on 20.04.1, by the way. i'm getting prompts to upgrade to 20.10 (which i kind of want to do for the 5.5 kernel) but it's failing due to this. | 12:23 |
lotuspsychje | signofzeta: and no external ppa's? | 12:24 |
signofzeta | lotuspsychje: i have a ton of external ppa's. | 12:24 |
signofzeta | is there a way to see which package has marked libodbc1? | 12:24 |
lotuspsychje | signofzeta: well we cant support the external ppa's other then say to revert your system to vanilla ubuntu sources again and; sudo apt update && sudo apt full-upgrade before you actually upgrade to your next release | 12:26 |
signofzeta | ok, that's fine. a lot of developers say something along the lines of "our latest versions aren't in Ubuntu, so add our PPA instead" (weechat, tor, microsoft, I'm looking at you) | 12:27 |
signofzeta | unrelated back-to-basics question: is apt just an alias for apt-get? they seem to function identically, the best i can tell. | 12:28 |
jeremy31 | signofzeta: apt is improved, has progress bar | 12:29 |
signofzeta | thanks, jeremy31 :-) | 12:30 |
signofzeta | lotuspsychje: yup, it was Microsoft's PPA holding things back with libodbc1:i386. Upgrading with --only-upgrade somehow cleared it. I don't really need Microsoft Edge. I mainly use that as my "work" web browser. | 12:38 |
signofzeta | 1,586 packages will be upgraded, and 4 will be removed. that sounds like it's time to go make breakfast (east coast USA over here). | 12:41 |
EriC^^ | zetheroo: still there? let me know once the copying is done | 12:42 |
guiverc | signofzeta, fyi; there are still some apt-get functions (rarely used) that mean it can't be removed (yet; why it still exists) | 13:04 |
signofzeta | thank you, guiverc. thumbs-up emoji. | 13:06 |
BluesKaj | Hi folks | 13:21 |
efwe | hullo. i updated to Groovy Gorilla and now the command 'gpg' does not ask for a password any more. bevore there was this shiny UI popup asking for a password. unfortunately i never investigated which process that really was. so i have two questions: 1) has anybody else encountered such a behaviour? 2) what is the name of that 'password input UI with the []add to passwordmanager checkbox'? | 13:35 |
tomreyn | just running "gpg" should never ask for a password | 13:37 |
efwe | but gpg -d file should, right? | 13:38 |
tomreyn | are you maybe mixing gpg up with something else? | 13:38 |
mgedmin | efwe: did you check the 'save password in keyring' once? | 13:38 |
efwe | tomreyn: no, i'm pretty sure i want to decrypt an encrypted file. | 13:39 |
efwe | mgedmin: never. | 13:39 |
mgedmin | efwe: the dialog is shown by gnome-shell, by request from gnome-keyring, which acts as the gpg agent | 13:39 |
tomreyn | -d would ask for a password if the file was encrypted with --symmetric | 13:39 |
mgedmin | efwe: do you have 'use-agent' in your ~/.gnupg/gpg.conf? | 13:40 |
efwe | tomreyn: https://pastebin.com/TYFQ9CHP - this worked for the last couple of years. | 13:40 |
efwe | mgedmin: i'll check. | 13:40 |
mgedmin | for the record, when I sign git commits or debian packages in groovy, I get the gnome-shell passphrase dialog | 13:41 |
efwe | mgedmin: gnome-shell passphrase dialog - that is missing right now. | 13:41 |
efwe | mgedmin: thanks. that was the answer to question 2 i guess.. | 13:41 |
efwe | mgedmin: i do not have 'use-agent' in my gpg.conf. | 13:42 |
mgedmin | what does gpg do? fail? ask in an ncurses window? something else? | 13:42 |
efwe | mgedmin: nothing. just blocks. 'strace' shows tha it is 'read'-ing.. but not at the console i invoke it. | 13:43 |
tomreyn | gpg-agent has a --log-file option, can run in foreground with --no-detach, other pinentry programs can be specified with --pinentry-program | 13:44 |
tomreyn | and there's --verbose to gpg | 13:46 |
mgedmin | efwe: do you have /usr/bin/gnome-keyring-daemon running? | 13:48 |
efwe | uh, uh even two... so thanks a lot for all the hints and pointers. i will have to investigate on my own and then i will tell you what i did wrong. | 13:52 |
efwe | tomreyn: and i also have a gpg-agent already running. so i really have to dig a little bit deeper to see what i did wrong. | 13:53 |
efwe | now i have to run for the daughter.. so really thanks a lot and see you later. :-) | 13:53 |
=== Hash is now known as PsillyCybin | ||
spottyted | hi, i'm trying to install ubuntu on an old laptop. burnt 20.04 to dvd, booted from dvd and now no menus have come up, just a purple screen with a little keyboard type icon at the bottom with a white man in a little circle. it's been stuck on that for abotu 25 mins. the dvd spins around occasionally | 14:10 |
spottyted | no response from keyboard or mouse, any ideas? | 14:10 |
lotuspsychje | spottyted: did you skip the integrity test? | 14:12 |
lotuspsychje | spottyted: by default it scans your install medium | 14:14 |
tomreyn | also: how much ram? integrated graphics? | 14:14 |
spottyted | 1gb ram, about 6 years old, integrated graphics. nothing special. it came with vista, had a dodgy copy of 7 on it, it's not powerful enough to run 10 (i upgraded but it was just too slow) | 14:16 |
spottyted | the dvd doesn't spin around constantly as if it's scanning it, it idles most of the time | 14:16 |
spottyted | when booting, i get asked "select cd boot type" which i assume 1 seems to boot, and then i get a black screen "isolinux 6.04 2019...." for about 1 min then the purple screen | 14:17 |
lotuspsychje | spottyted: 1GB ram will be very narrow for ubuntu desktop with gnome, we wouldnt reccomend it try lubuntu/xubuntu or another lighter !flavours | 14:18 |
spottyted | ah good suggestion, thanks | 14:21 |
spottyted | i miss gnome 2 :) | 14:22 |
lotuspsychje | spottyted: that can still be installed, its still a thing | 14:22 |
spottyted | is there much of a difference between the two other than the window manager? | 14:22 |
spottyted | yeah i know about mate and if i could get away with using linux daily, i'd probably rock mate! | 14:23 |
tomreyn | minimum recommendation for ubuntu is 4 gb ram btw. | 14:23 |
spottyted | well xubuntu is 2gb | 14:24 |
spottyted | https://docs.lubuntu.net/ gives an interesting error | 14:24 |
tomreyn | the official website is lubuntu.me | 14:24 |
lotuspsychje | spottyted: no i meant gnome flashback can still be installed via the repos | 14:24 |
spottyted | ah nice | 14:25 |
mgedmin | efwe: I may have misled you by saying gnome-keyring-daemon acts as the GPG agent; that was true in the past but I'm not sure it still is | 14:25 |
lotuspsychje | spottyted: but also not reccomended to use ubuntu-desktop as base for you, try it ontop a lubuntu or xubuntu or whatever you choice will be | 14:26 |
mgedmin | I see I have gpg-agent running here, started by a systemd user unit | 14:27 |
mgedmin | and it uses pinentry-gnome3 to ask for passphrases | 14:28 |
mgedmin | ... maybe? | 14:29 |
mgedmin | lol I don't remember how the dialog looks | 14:29 |
efwe | mgedmin: thanks for the update. recently it was black and modal and not so big :-) | 14:30 |
efwe | mgedmin: it had a password-input-field and that checkbox as far as i can remember. | 14:30 |
mgedmin | efwe: do you have pinentry-gnome3 installed? | 14:30 |
efwe | mgedmin: yep. 1.1.0 | 14:31 |
spottyted | what's the difference between desktop and alternate? | 14:31 |
efwe | mgedmin: so the gpg-agent started by systemd should bring this up. i'll reboot and double check how this gpg-agent is running/configured. | 14:32 |
efwe | mgedmin: is your gpg-agent started with '--supervised'? i guess so as it states it is meant for systemd usage. | 14:35 |
mgedmin | ps $(pgrep gpg-agent) says yes | 14:36 |
efwe | mgedmin: ok. after reboot it works again. pfff... sorry for bothering you all. 'hello IT, have you tried...' haha | 14:37 |
mgedmin | yep, its pinentry showing the gui thing here | 14:37 |
mgedmin | eh, rebooting erases all evidence of the cri^H^H^H bug | 14:37 |
mgedmin | sometimes it pays to figure out why things broke | 14:38 |
efwe | mgedmin: moment. but i did one change. now i really have the 'use-agent' config in the gpg.conf. hmm hmm.. yeah. i will invest a few minutes to really understand what happened. | 14:38 |
mgedmin | if you understand how gpg works, I think you'll be the first person in the world to do so | 14:39 |
mgedmin | maybe the second | 14:39 |
efwe | mgedmin: hehe. to be honest i always treated the actual program as a black-box. always even when i used mutt 100 years ago and so on. | 14:41 |
* mgedmin still uses mutt today, having tried and failed to find a better mail client | 14:41 | |
efwe | mgedmin: aaaand for this user-case which i would call 'my personal poor master-password programm' i really do not need the public-key infrastructure. | 14:42 |
efwe | mgedmin: i learned about https://github.com/FiloSottile/age only a few days ago. this would be totally enough for my usecase i guess. | 14:42 |
cybrNaut | Ubuntu/gnome requires *3* clicks to shutdown from the GUI. That's a bit excessive, no? CLI isn't much better since it needs a sudo & p/w. | 15:17 |
lotuspsychje | cybrNaut: its fixed in 20.10 | 15:21 |
lotuspsychje | cybrNaut: bug #1900339 | 15:22 |
ubottu | bug 1900339 in gnome-shell (Ubuntu) "[Wishlist] Add a quick reboot/shutdown option" [Undecided,Fix released] https://launchpad.net/bugs/1900339 | 15:22 |
mgedmin | 'reboot' in CLI doesn't require sudo if you're the only logged in user | 15:25 |
cybrNaut | lotuspsychje: cool.. glad to hear it | 15:29 |
cybrNaut | mgedmin: thanks for the tip! | 15:30 |
lotuspsychje | cybrNaut: thank you for your notice though | 15:30 |
=== Acou_Bass is now known as Acou_Fool | ||
=== Acou_Fool is now known as Piece_Maker | ||
=== Piece_Maker is now known as ACou_Tou | ||
=== ACou_Tou is now known as Acou_Bass | ||
=== [1]MrMobius is now known as MrMobius | ||
isapgswell | how optimize ubuntu without input lag? | 17:24 |
=== jeddo- is now known as jeddo | ||
bol | Hi | 18:00 |
luna_ | hi | 18:01 |
bol | I have this issue with a USB mouse is removed and added again by UDEV and/or GDM. | 18:01 |
bol | https://askubuntu.com/questions/1286301/ubuntu-20-04-1-lts-mouse-removed-and-added-intermittently | 18:01 |
bol | I haven't got any traction on the site, so I thought asking here might prove more futile. | 18:02 |
bol | I haven't found a way to resolve this issue, so this is the last resort before giving in and trying with a reinstall. | 18:03 |
summonner | bol, sounds like an autosuspend on USB devices? | 18:22 |
=== grumble is now known as \x2D | ||
zetheroo | hey EriC^^ I am back ... copy of data is done | 18:43 |
=== spinningCat is now known as biden | ||
=== biden is now known as pinningCat | ||
EriC^^ | zetheroo: wb | 18:51 |
EriC^^ | zetheroo: type 'sudo cfdisk /dev/sda' | 18:51 |
EriC^^ | zetheroo: actualy run 'sudo fdisk /dev/sda' | 18:51 |
zetheroo | ok | 18:52 |
zetheroo | cfdisk looked pretty cool ;) | 18:52 |
zetheroo | never heard of it before | 18:52 |
zetheroo | I'm in fdisk now | 18:52 |
EriC^^ | yup its pretty neat | 18:52 |
EriC^^ | zetheroo: ok, press 'p' does it list the boot partition starting at 2048 sector | 18:53 |
zetheroo | /dev/sda1 2048 1503231 1501184 733M 83 Linux | 18:53 |
EriC^^ | ok looks good, press 'n' | 18:53 |
EriC^^ | when it asks for type press 'e' for extended | 18:53 |
EriC^^ | then use default starting sector (keep it blank and press enter) and same for ending sector | 18:54 |
zetheroo | k | 18:54 |
zetheroo | Partition number (2-4, default 2): | 18:54 |
EriC^^ | press enter for default | 18:54 |
zetheroo | First sector (1503232-976773167, default 1503232): | 18:54 |
EriC^^ | also default | 18:55 |
zetheroo | k | 18:55 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (1503232-976773167, default 976773167): | 18:55 |
EriC^^ | same, keep the default one | 18:56 |
EriC^^ | that should create an extended partition encompassing the whole remaining disk, hopefully it's right where the actual luks one is | 18:56 |
zetheroo | Created a new partition 2 of type 'Extended' and of size 465 GiB. | 18:56 |
EriC^^ | ok, press 'n' again to create another partition, this time it should offer to make a logical one | 18:58 |
zetheroo | https://pastebin.ubuntu.com/p/hH4QjBt67H/ | 18:58 |
EriC^^ | looks good | 18:58 |
zetheroo | https://pastebin.ubuntu.com/p/dXPGQRCjV5/ | 18:58 |
EriC^^ | zetheroo: use the default one again | 18:59 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (1505280-976773167, default 976773167): | 19:00 |
EriC^^ | also default, that way it uses the whole space | 19:00 |
zetheroo | Created a new partition 5 of type 'Linux' and of size 465 GiB. | 19:00 |
EriC^^ | zetheroo: great, press 'w' to write the new partition table | 19:01 |
zetheroo | https://pastebin.ubuntu.com/p/4kDzktmF9p/ | 19:02 |
EriC^^ | zetheroo: ok, i guess we have to see what happens on the reboot, if incase it didnt add the logical partition and stuff do you have a live usb you could boot just to add them and see if it works after that? | 19:04 |
zetheroo | I'll make one | 19:04 |
EriC^^ | zetheroo: alright, im curious what does 'sudo partprobe && sudo parted /dev/sda print' give? | 19:05 |
zetheroo | Error: Partition(s) 1, 2, 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. | 19:06 |
EriC^^ | alright, it sounds better i guess | 19:06 |
EriC^^ | zetheroo: anyways, give it a reboot, see what happens | 19:06 |
bol | summonner: ok, not familiar with that. But it happens while the device is active, like when I'm playing a game. | 19:06 |
zetheroo | ok thanks ;) | 19:07 |
zetheroo | so grub doesn't need to be installed to the boot partition? | 19:07 |
EriC^^ | zetheroo: nope it should already be there | 19:08 |
zetheroo | ok | 19:08 |
EriC^^ | zetheroo: no problem | 19:08 |
mustmodify | can I combine something like `du -h` with `find . -name saw_*_dump*.sql.bz2` ? | 19:20 |
mustmodify | to get a total size for all those files? | 19:21 |
mgedmin | find -name 'saw_*_dump*.sql.bz2' -exec du -ch {} + | 19:22 |
mustmodify | mgedmin: why are people switching away from | xargs to -exec? I see that frequently and it seems like it requires all those components to implement an API that was more elegantly handled the other way... | 19:28 |
ash_1 | Hi all! How may I know why my system frooze after a hard reboot? | 19:28 |
mgedmin | mustmodify: -exec ... {} + is shorter to type and handles all filenames correctly without using -print0 | xargs -0 | 19:29 |
ash_1 | I am facing frequent system freeze issue on my laptop (hp envy x360, ryzen 5). As suggested earlier, I changed my kernel version 5.9.6 and my system did not have issue for long time but, it has hanged once. | 19:31 |
mustmodify | mgedmin: thanks, that helped me get through this process much more quickly. | 19:42 |
mustmodify | I appreciate your help. | 19:42 |
ash_1 | anyone knows what does this mean and can it be cause of freezing the system? pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter. | 20:00 |
bol | Reinstalled ubuntu and the issue with the mouse still persists :((( | 20:01 |
zetheroo | EriC^^ : well that didn't work .. I am in a Live session but don't know what to do | 20:05 |
mgedmin | zetheroo: can you mount the partitions and see files in them? | 20:07 |
mgedmin | (just to be sure there's no problem _there_) | 20:08 |
gordonjcp | bol: have you tried a different mouse? | 20:08 |
mgedmin | zetheroo: also, how exactly did "didn't work" look like? | 20:08 |
mgedmin | did you get the grub menu? BIOS/UEFI error? something else? | 20:08 |
zetheroo | mgedmin: the ubuntu logo showed up with text saying something about trying to find crypt source and then it went to initramfs | 20:11 |
zetheroo | and no, nothing is mounting | 20:12 |
zetheroo | /dev/sda5 is 'unknown' .. it was LUKS | 20:14 |
EriC^^ | zetheroo: what's the output of 'sudo parted /dev/sda unit s print' ? | 20:15 |
mgedmin | zetheroo: so grub is fine, but possibly the partition type of the LUKS partition is wrong | 20:15 |
mgedmin | should be easy to fix! | 20:16 |
skyliner_369 | for some reason the software center isn't showing anything when browsing | 20:16 |
skyliner_369 | wait it's back | 20:16 |
skyliner_369 | nevermind it's not. single square with 3 dots in the middle | 20:17 |
skyliner_369 | nevermind it's just slow | 20:17 |
zetheroo | EriC^^: https://pastebin.ubuntu.com/p/SV7pNDn7WW/ | 20:17 |
EriC^^ | zetheroo: try sudo cryptsetup luksOpen /dev/sda5 sda5_crypt | 20:18 |
zetheroo | Device /dev/sda5 is not a valid LUKS device. | 20:20 |
bol | gordonjcp: yes. I've tried a cordless m705 which doesn't show the behaviour that my G400 is showing, but I don't want to use that mouse because it has worse DPI and response time. | 20:20 |
EriC^^ | maybe we're supposed to set the partition type to luks zetheroo ? | 20:20 |
zetheroo | EriC^^: isn't it supposed to be LVM? | 20:21 |
EriC^^ | no i think its supposed to be luks | 20:22 |
EriC^^ | not sure really | 20:22 |
zetheroo | comparing it to my other laptop which also has a LUKS partition there is an LVM2 PV | 20:22 |
zetheroo | and then there is LUKS in that | 20:23 |
zetheroo | Device: /dev/mapper/sda5_crypt | 20:23 |
zetheroo | Contents: LVM2 Physical Volume (LVM2 001) | 20:24 |
EriC^^ | zetheroo: what does 'sudo fdisk -l' show for the code of the partition of sda5 | 20:24 |
EriC^^ | sudo fdisk -l /dev/sda | 20:24 |
zetheroo | /dev/sda5 1505280 976773167 975267888 465G 83 Linux | 20:24 |
EriC^^ | i mean on the other laptop that has the working luks | 20:25 |
zetheroo | oh sorry | 20:25 |
mgedmin | hmmm it's 83 on my laptop with luks | 20:25 |
zetheroo | it's 83 as well | 20:26 |
mgedmin | the lvm is inside the dm-crypt | 20:26 |
zetheroo | it's 1. extended partition 2. LUKS 3. LVM PV | 20:27 |
EriC^^ | the lvm stuff isnt showing right now, right? | 20:28 |
zetheroo | right | 20:29 |
mgedmin | zetheroo: hey remember your pastebin from the other day? https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ | 20:29 |
mgedmin | before you rebooted, you recovered the partition location and size from /sys/block/* using that stackoverflow script | 20:29 |
mgedmin | it says /dev/sda5 starts on sector 1501184 | 20:29 |
mgedmin | now you say you created a new /dev/sda5 that starts on sector 1505280? | 20:29 |
mgedmin | this is why cryptsetup fails | 20:30 |
mgedmin | delete the partition and create it again, in the right location | 20:30 |
zetheroo | you referring to this? /dev/sda5 1505280 976773167 975267888 465G 83 Linux | 20:30 |
EriC^^ | there was a boot partition already in the table at 2048sector | 20:31 |
mgedmin | I think so? | 20:31 |
EriC^^ | but it overlaps the starting sector of 1501184 | 20:31 |
mgedmin | then it's too big | 20:31 |
mgedmin | figure out the filesystem size | 20:31 |
EriC^^ | let's try to shorten it and recreate the extended/logical so it matches the stuff from the script | 20:31 |
mgedmin | shrink the boot partition to match the filesystem size | 20:32 |
zetheroo | https://pastebin.ubuntu.com/p/GXMPQx82VK/ | 20:32 |
mgedmin | you didn't recover the boot partition extents before rebooting? | 20:32 |
zetheroo | : | 20:32 |
mgedmin | now, how does one figure out the size of a filesystem? dumpe2fs? | 20:33 |
zetheroo | do you use gparted to resize the partition? | 20:34 |
EriC^^ | no | 20:34 |
mgedmin | https://askubuntu.com/questions/622489/how-to-find-the-size-of-a-filesystem | 20:34 |
zetheroo | ok :/ | 20:34 |
EriC^^ | zetheroo: this is where we need /boot to end 1497088sectors | 20:34 |
EriC^^ | if it ends there, the logical one of luks will be at 1501184, since it seems to take 4096sectors to make the whole extended one | 20:35 |
EriC^^ | that gives /boot around 765mb | 20:35 |
zetheroo | ok, I don't know how to do that and I don't have any of the commands you sent me before | 20:36 |
EriC^^ | ok get the size of /boot just to make sure it fits | 20:36 |
zetheroo | /dev/sda1 * 2048 1503231 1501184 733M 83 Linux | 20:37 |
zetheroo | that? | 20:37 |
EriC^^ | no that's the partition, you want the fs | 20:38 |
EriC^^ | zetheroo: try sudo dumpe2fs -h /dev/sda1| grep '^Block' | 20:38 |
zetheroo | https://pastebin.ubuntu.com/p/dFXK5m7yCf/ | 20:39 |
EriC^^ | odd, that's 766.5mb | 20:42 |
mgedmin | that's 748544 sectors | 20:43 |
zetheroo | on my other laptop the boot partition (Ext2) is 511MB | 20:44 |
EriC^^ | i think something else is up, if you take the size from the screenshot of luks | 20:44 |
mgedmin | no, sorry, 1K blocks | 20:44 |
mgedmin | 1497088 sectors | 20:44 |
EriC^^ | here https://ibb.co/z7zWgh6 | 20:44 |
mgedmin | parted shows the partition size to be 1503231 sectors, which is larger than the filesystem inside it | 20:45 |
zetheroo | I noticed as well that /dev/sda1 is Ext4 now instead of Ext2 like it was before | 20:45 |
EriC^^ | and divide by 512bytes to get the sectors, then you get the size of luks in sectors, if you take the parted sectors of the whole disk and subtract luks from it you get 1505280 | 20:45 |
EriC^^ | which coincides with where it is right now | 20:46 |
EriC^^ | ( 499337158656÷512 = 975267888, and 976773168−975267888 = 1505280 ) | 20:46 |
skyliner_369 | okay installed apps in software center is blank for like 20 min | 20:47 |
EriC^^ | i mean, in the end it's just partitioning and stuff, we can save the current partition table, and then just remove /boot's partition and create luks at where the script said and see if you can do the cryptsetup command on it, zetheroo | 20:48 |
EriC^^ | if that doesn't seem to work then you still have the current partition table saved, in the end we're not touching any filesystems just the table | 20:48 |
zetheroo | EriC^^: I'm sorry I am not of much help .. it's a bit over my head :P | 20:49 |
EriC^^ | but i think 1505280 seems right, cause it matches with disk's output and since /boot was already there | 20:49 |
EriC^^ | but it's worth a try i guess | 20:49 |
EriC^^ | zetheroo: type 'sudo fdisk /dev/sda' | 20:50 |
EriC^^ | zetheroo: actually first, | 20:50 |
EriC^^ | type 'sudo dd if=/dev/sda of=/mymbr bs=512 count=1' | 20:50 |
zetheroo | https://pastebin.ubuntu.com/p/HC8J3R4qp2/ | 20:51 |
EriC^^ | zetheroo: ok, type 'sudo fdisk /dev/sda' | 20:53 |
zetheroo | k | 20:53 |
EriC^^ | press 'd' to delete the partitions | 20:53 |
EriC^^ | remove them all one after another including the primary /boot one | 20:54 |
zetheroo | Partition number (1,2,5, default 5): | 20:54 |
zetheroo | ok | 20:54 |
zetheroo | so delete 1, 2 and 5? | 20:54 |
EriC^^ | yup | 20:54 |
zetheroo | https://pastebin.ubuntu.com/p/d2Kd65JWj5/ | 20:55 |
EriC^^ | zetheroo: great, ok, type 'n' | 20:56 |
zetheroo | k | 20:56 |
EriC^^ | starting sector 2048? | 20:56 |
zetheroo | p or e? | 20:56 |
EriC^^ | p | 20:56 |
zetheroo | Partition number (1-4, default 1): | 20:57 |
EriC^^ | default | 20:57 |
zetheroo | First sector (2048-976773167, default 2048): | 20:57 |
EriC^^ | actually, let's just slap that sucker right in, shall we? | 20:57 |
EriC^^ | why do the boot, we just want to do a quick test anyways | 20:58 |
EriC^^ | zetheroo: use "1501184" as the starting sector | 20:58 |
mgedmin | "1505280 seems right" but it doesn't, if /dev/sdb5 is to start at 1501184! | 20:58 |
EriC^^ | mgedmin: yeah but what if the script isnt right | 20:58 |
zetheroo | so 1501184 ? | 20:58 |
mgedmin | the script just echoe's numbers directly from the kernel, how can it be wrong? but yeah, great idea to verify first | 20:59 |
mgedmin | luks doesn't need to be in a logical partition, a primary will do | 20:59 |
EriC^^ | 1) /boot was already there, if we create after it the extended/logical naturally it hits 1505280, plus from the size from his screenshot if we subtract from the end of the disk it ends up starting at 1505280 | 20:59 |
EriC^^ | zetheroo: yes | 20:59 |
mgedmin | (didn't zetheroo re-create /boot with testdisk?) | 20:59 |
EriC^^ | no, he only looked at the files using 'p' | 20:59 |
EriC^^ | and it thought it started at sector 3233 too | 21:00 |
EriC^^ | /boot was already there | 21:00 |
EriC^^ | also if we use this 1501184, /boot is too small for its actual fs | 21:00 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (1501184-976773167, default 976773167): | 21:00 |
EriC^^ | my money's on 1505280 + something else is amiss | 21:00 |
EriC^^ | zetheroo: hit enter for default | 21:00 |
EriC^^ | anyways i might be wrong, and it's worth a shot, so let's hope for the best | 21:01 |
zetheroo | Created a new partition 1 of type 'Linux' and of size 465 GiB. | 21:01 |
zetheroo | Partition #1 contains a crypto_LUKS signature. | 21:01 |
zetheroo | Do you want to remove the signature? [Y]es/[N]o: | 21:01 |
=== PsillyCybin is now known as THC | ||
EriC^^ | seems it *is* there :D | 21:01 |
EriC^^ | zetheroo: press "N" to leave the signature | 21:02 |
EriC^^ | we definitely want it there i'd guess :D | 21:02 |
mgedmin | does anyone remember if luks puts the signature at the start or at the end? | 21:02 |
zetheroo | ok https://pastebin.ubuntu.com/p/qdpMDS5pFH/ | 21:02 |
EriC^^ | zetheroo: press 'w' to write it | 21:03 |
EriC^^ | mgedmin: i think at the start cause earlier zetheroo didn't mention that message and we also used the whole disk for it | 21:03 |
mgedmin | at the start, woohoo, you found it! | 21:04 |
mgedmin | also my faith in stackoverflow is shaken | 21:04 |
EriC^^ | how come? | 21:04 |
mgedmin | 1501184 != 1505280 | 21:04 |
mgedmin | https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ was wrong | 21:05 |
EriC^^ | yeah it doesnt make sense given the other stuff, but happy ending all good | 21:05 |
zetheroo | EriC^^: ok done | 21:05 |
EriC^^ | mgedmin: no we actually used 1501184 this time | 21:05 |
mgedmin | ah! | 21:05 |
EriC^^ | zetheroo: ok, did it quit fdisk? | 21:05 |
zetheroo | yes | 21:05 |
EriC^^ | zetheroo: type 'sudo partprobe /dev/sda' | 21:05 |
mgedmin | so how big did you make /dev/sda1? | 21:05 |
mgedmin | so it's not overlapping | 21:06 |
EriC^^ | we didnt | 21:06 |
zetheroo | done | 21:06 |
zetheroo | no output | 21:06 |
EriC^^ | zetheroo: try sudo cryptsetup luksOpen /dev/sda1 sda5_crypt | 21:06 |
zetheroo | Enter passphrase for /dev/sda1: | 21:07 |
EriC^^ | awesome | 21:07 |
zetheroo | I guess that's my cue | 21:07 |
zetheroo | should I enter my passphrase? | 21:07 |
EriC^^ | sure if you want, no harm | 21:07 |
zetheroo | done | 21:08 |
zetheroo | no output | 21:08 |
EriC^^ | hmm, it just occured to me, if we create boot a primary and leave the luks a primary it just might not overlap according to its fs size from that dump command | 21:08 |
EriC^^ | zetheroo: ok | 21:08 |
EriC^^ | /boot was 766509056bytes according to the dump command | 21:09 |
EriC^^ | which is 1497088sectors | 21:09 |
EriC^^ | if we dont use the extended stuff the boot partition would have 1499136sectors, so all good | 21:10 |
mgedmin | so it ends at 1499136 which is before 1501184 | 21:10 |
mgedmin | there's a gap of 2048 | 21:11 |
EriC^^ | yeah | 21:11 |
mgedmin | enough space for the extended partition if you still want one | 21:11 |
EriC^^ | if it starts at 2048 it'll have 1499136 to enjoy | 21:11 |
EriC^^ | nah | 21:11 |
EriC^^ | 2048+1499136+4096 (for the extended) it'll end at 1505280 again | 21:12 |
EriC^^ | let's just leave both as primary since everything is happy that way | 21:13 |
EriC^^ | sorry 1 sec | 21:13 |
mgedmin | extended should't neet 4096 bytes? let me check... | 21:14 |
EriC^^ | sorry its 2048 + 1497088 + 4096 = 1503232 | 21:14 |
EriC^^ | alright | 21:14 |
EriC^^ | i used this to get the 4096 https://pastebin.ubuntu.com/p/SV7pNDn7WW/ | 21:14 |
EriC^^ | 1505280−1501184 = 4096 | 21:15 |
mgedmin | an extended partition needs 2 sectors? | 21:15 |
mgedmin | https://termbin.com/nvzd | 21:16 |
EriC^^ | dunno the /boot ended at 1505280 and the logical started at 1501184, we used the default values when creating them | 21:16 |
mgedmin | (that was my sfdisk -l /dev/sda) | 21:16 |
EriC^^ | i think i screwed the calc using size instead of end | 21:17 |
mgedmin | well fdisk/parted is supposed to align partition starts to larger units (like 1 MB) so they will align with SSD erase block sizes etc | 21:17 |
EriC^^ | yeah i did, seems it only needed 2048 | 21:17 |
mgedmin | 2048 is a thousand times too many :) | 21:18 |
mgedmin | maybe /boot was a little bigger than we computed? | 21:18 |
mgedmin | or maybe I'm getting lost between the units | 21:19 |
mgedmin | 2 sectors is the _size_ of the extended partition, but there's a 2047 sector gap between the end of my /dev/sda1 and the start of /dev/sda2 | 21:19 |
mgedmin | so about the same | 21:20 |
mgedmin | also my /boot is tiny | 21:20 |
EriC^^ | our luks sector was 1501184 i think we end make /boot end at 1501184 - 2049 = 1499135 we should be good | 21:21 |
EriC^^ | *i think if we make /boot end at... | 21:21 |
EriC^^ | seems to all add up, must have been that way out of the box i guess | 21:22 |
EriC^^ | zetheroo: mgedmin shall we make boot 2048 -> 1499135 ? | 21:23 |
zetheroo | I'll go with whatever you both advise :) | 21:23 |
EriC^^ | it seems that if boot is 1499135 it'll add 2049 and the logical partition will be at 1501184 where we want it *shrug* | 21:24 |
EriC^^ | zetheroo: alright type 'sudo fdisk /dev/sda' | 21:26 |
zetheroo | k | 21:26 |
EriC^^ | zetheroo: press 'd' again to delete the primary luks partition we made earlier | 21:26 |
zetheroo | Partition 1 has been deleted. | 21:26 |
EriC^^ | zetheroo: ok, press 'n' to create a new one | 21:27 |
EriC^^ | choose 'p' for primary, starting sector 2048 default | 21:27 |
zetheroo | partition number 1? | 21:27 |
EriC^^ | yup | 21:27 |
zetheroo | First sector (2048-976773167, default 2048): | 21:28 |
zetheroo | going with default? | 21:28 |
EriC^^ | yeah | 21:28 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-976773167, default 976773167): | 21:28 |
EriC^^ | zetheroo: type in 1499135 | 21:29 |
zetheroo | Created a new partition 1 of type 'Linux' and of size 731 MiB. | 21:29 |
zetheroo | Partition #1 contains a ext4 signature. | 21:29 |
zetheroo | Do you want to remove the signature? [Y]es/[N]o: | 21:29 |
EriC^^ | zetheroo: choose no | 21:29 |
zetheroo | ok | 21:29 |
zetheroo | back to fdisk prompt | 21:30 |
EriC^^ | zetheroo: ok, press 'n' again, this time choose extended | 21:30 |
zetheroo | ok | 21:30 |
zetheroo | partition number 2? | 21:30 |
EriC^^ | yes | 21:30 |
zetheroo | First sector (1499136-976773167, default 1499136): | 21:30 |
EriC^^ | keep default | 21:31 |
zetheroo | k | 21:31 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (1499136-976773167, default 976773167): | 21:31 |
EriC^^ | also default | 21:31 |
zetheroo | Created a new partition 2 of type 'Extended' and of size 465 GiB. | 21:31 |
zetheroo | back to fdisk prompt | 21:32 |
EriC^^ | alright, press 'n' again | 21:32 |
zetheroo | All space for primary partitions is in use. | 21:32 |
zetheroo | Adding logical partition 5 | 21:32 |
zetheroo | First sector (1501184-976773167, default 1501184): | 21:32 |
EriC^^ | keep default | 21:32 |
zetheroo | Last sector, +/-sectors or +/-size{K,M,G,T,P} (1501184-976773167, default 976773167): | 21:32 |
EriC^^ | also default | 21:32 |
zetheroo | Created a new partition 5 of type 'Linux' and of size 465 GiB. | 21:33 |
zetheroo | Partition #5 contains a crypto_LUKS signature. | 21:33 |
zetheroo | Do you want to remove the signature? [Y]es/[N]o: | 21:33 |
EriC^^ | no | 21:33 |
zetheroo | ok, back to fdisk prompt | 21:33 |
EriC^^ | ok press 'w' to write it | 21:33 |
EriC^^ | then type 'sudo partprobe /dev/sda' at the command prompt | 21:34 |
zetheroo | https://pastebin.ubuntu.com/p/KhbhWZ9npW/ | 21:34 |
zetheroo | is this because I entered the LUKS passphrase before? | 21:34 |
EriC^^ | yeah i think so | 21:35 |
EriC^^ | how did the sudo partprobe /dev/sda command go? | 21:35 |
zetheroo | I didn't do it yet | 21:35 |
EriC^^ | i think we're good though, as it said this before but it still wrote everything | 21:35 |
zetheroo | ubuntu@ubuntu:~$ sudo partprobe /dev/sda | 21:35 |
zetheroo | Error: Partition(s) 1, 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. | 21:35 |
EriC^^ | zetheroo: ok, try just 'sudo parted /dev/sda print' does it have /boot, extended, logical? | 21:36 |
zetheroo | https://pastebin.ubuntu.com/p/qZ2bfzyFHy/ | 21:37 |
zetheroo | why no boot flags? | 21:37 |
EriC^^ | yeah we should add that in case the bios wants it | 21:38 |
EriC^^ | linux really doesnt need it but some bios could be picky | 21:38 |
zetheroo | hmm ok | 21:38 |
EriC^^ | zetheroo: first though, try sudo mount /dev/sda1 /mnt && ls /mnt | 21:38 |
EriC^^ | does it list the contents of the /boot partition? | 21:38 |
zetheroo | mount: /mnt: unknown filesystem type 'crypto_LUKS'. | 21:38 |
zetheroo | can I undo the passphrase action from before? | 21:39 |
EriC^^ | ah i think it still has the old partition table then | 21:39 |
EriC^^ | ok | 21:39 |
EriC^^ | zetheroo: try to reboot, see how it goes | 21:39 |
zetheroo | hehe ... gulp ... ok | 21:39 |
EriC^^ | zetheroo: or 1 sec lets add the boot flat first? | 21:39 |
zetheroo | be back soon ... hopefully from the booted systems ;) | 21:39 |
EriC^^ | *flag | 21:39 |
zetheroo | ah ok | 21:39 |
EriC^^ | type 'sudo cfdisk /dev/sda' | 21:40 |
zetheroo | k | 21:40 |
EriC^^ | zetheroo: highlight the boot partition, and at the bottom go to 'bootable' and press on it | 21:41 |
zetheroo | and sda1 is the boot partition, right? | 21:41 |
EriC^^ | yeah | 21:41 |
zetheroo | ok done | 21:41 |
EriC^^ | go to "write" | 21:41 |
zetheroo | The partition table has been altered. | 21:42 |
zetheroo | Quit? | 21:42 |
EriC^^ | awesome, quit cfdisk then try to reboot | 21:42 |
zetheroo | ok | 21:42 |
zetheroo | be back soon .... | 21:42 |
zetheroo | EriC^^: That worked!! :D | 21:45 |
EriC^^ | zetheroo: any luck? | 21:46 |
zetheroo | EriC^^: yes, all good!! Can't believe it! :D | 21:47 |
EriC^^ | zetheroo: awesome! | 21:47 |
EriC^^ | :D | 21:47 |
zetheroo | I thought for sure I was going to have to install from scratch OMG | 21:47 |
zetheroo | Thank you sooo much!! | 21:47 |
zetheroo | Can I send you some Bier money? :P | 21:48 |
EriC^^ | no problem | 21:48 |
EriC^^ | no need enjoy buddy | 21:49 |
zetheroo | amazing the stuff you guys know and how you can figure this stuff out | 21:49 |
zetheroo | I always thought that once a partition is deleted that that meant good bye data | 21:50 |
EriC^^ | yup same here | 21:50 |
EriC^^ | it's pretty awesome that it's not like that | 21:51 |
zetheroo | I'll say | 21:51 |
mgedmin | well it's been educational! | 21:51 |
zetheroo | mgedmin: hey, thanks a ton for your help too! | 21:51 |
mgedmin | here's an old historical story that was an inspiration to me: https://www.ee.ryerson.ca/~elf/hack/recovery.html | 21:52 |
zetheroo | I was expecting you guys to give up at any moment and just tell me it was hopeless | 21:52 |
* mgedmin once did a dd if=/dev/zero of=/dev/sda1 intending to wipe a USB disk, but wiped his /root | 21:52 | |
* mgedmin managed to recover | 21:52 | |
mgedmin | uh /, not /root | 21:53 |
* mgedmin had a second machine with the same ubuntu version and same partition scheme, so he could copy the contents of / using tar over ssh | 21:53 | |
EriC^^ | yikes | 21:53 |
mgedmin | luckily /usr, /var, /home, /tmp were on separate partitions | 21:54 |
zetheroo | sheesh | 21:54 |
mgedmin | this was around the time linux drivers were updated so IDE hard disks switched from /dev/hda to /dev/sda naming | 21:54 |
mgedmin | which is why I made the mistake | 21:54 |
mgedmin | anyway one day you'll be the one helping other people recover! | 21:56 |
gordonjcp | mgedmin: I have done dd if=/dev/hda | ssh <host> dd of=/dev/hda | 21:58 |
gordonjcp | mgedmin: this is as hairy and terrifying as it looks at first glance, yes | 21:58 |
gordonjcp | note to the channel - never ever do that, unless you're at a stage where stupid and dangerous things are the only recourse left to you | 22:00 |
mgedmin | I'm too impatient to wait while dd copies all the unused blocks, so I usually use tar -c /foo -xdev -cf - | ssh tar -C /foo -xf - | 22:01 |
mgedmin | but I wonder if that would work today with all the extended attributes and stuff | 22:01 |
mgedmin | (also -xdev is not a tar option, I forgot the tar option) | 22:01 |
mgedmin | https://xkcd.com/1168/ | 22:02 |
onio | Hi I am trying to create a symlink for my logitech c920 webcam using udev rule. When camera is plug in it shows up as /dev/video2 and /dev/vide3 | 22:59 |
onio | issuing sudo udevadm info /dev/videox shows that they are identical with the exception of the index and one entry showing as "E: ID_V4L_CAPABILITIES=:capture:" while the | 23:01 |
onio | other one shows E: ID_V4L_CAPABILITIES=: | 23:01 |
onio | what command can I put in the udev rule to help create a symlink? | 23:02 |
onio | I tried ATTRS{ID_V4L_CAPABILITIES}==":capture:" and it does not work | 23:03 |
onio | I have also tried ENV{ID_V4L_CAPABILITIES}==":capture:" | 23:04 |
wolfzrat | hello is there a chat channel for ubuntu? | 23:07 |
onio | wolfzrat, this is the chat channel for ubuntu | 23:11 |
Guest3901 | there's also #ubuntu-discuss and #ubuntu-offtopic - maybe that's what you're looking for | 23:11 |
wolfzrat | ok great thank you for confirming that, I just realized i was not in ubunt-help lol | 23:11 |
wolfzrat | You know that was what was looking for (Ubuntu-offtopic) lol | 23:14 |
Emrys | so i was watching YouTube and the sound was crackling and then full system crash, any ideas why> firefox and discord were the only apps running. (16gbs RAM) | 23:18 |
wolfzrat | did you try to see if it happened again | 23:22 |
Emrys | i just rebooted and everything is fine now, after 10hr up time it did that | 23:22 |
wolfzrat | is it a desktop of laptop | 23:23 |
Emrys | PC | 23:23 |
wolfzrat | hmm keep an eye on and make sure that the pc is not congested wit h dust, that can cause the machine to do things like that, amoung other things | 23:25 |
Emrys | ill get the air duster out i suppose | 23:25 |
wolfzrat | OK, you can always come back and we can see what else we can do to assist you and troubleshoot the problem :) | 23:27 |
onio | can anyone here help with udev rules? | 23:37 |
onio | looking for how to filter for ID_V4L_CAPABILITIES | 23:38 |
=== futurile_ is now known as futurile |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!