[00:00] Checking. [00:04] With a new user the experience is the same. [00:04] tomreyn: what if I just want to remove a package that has no PPA file in sources.d [00:05] davido_: so looks to be a system-wide default then [00:06] fuzzypixelz: you apt remove / purge (or dpkg -r / -P) it === Euph0ria is now known as FelixUnger [00:16] tomreyn: since I deleted the .list file in sources.d apt doesn't recognize it [00:16] dpkg --purge will [00:18] 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] Option 2 works for 20.10, for example. === FelixUnger is now known as Quincy [00:20] davido_: aha, cool [00:20] davido_: not all extensions work well together, if you find sudden stability changes, remember this moment :) [00:21] 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] 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:22] davido_: aha, cool [00:22] well, it's not *cool*, but it's good to know how to cope [00:23] 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:26] exit [00:26] (sorry) === VileGent is now known as kk4ewt === johuck8 is now known as johuck === beaver is now known as naive`user [02:02] say, why is the a file "core" in / ? I dont think i ever saw that there. [02:02] *there [02:05] 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:07] So it is a crash report? [02:08] well, coredump; you can learn more about the process and format in the core(5) manpage [02:08] you could feed it to gdb to learn more about it [02:09] 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] [5534396.857506] tmux: server[79373]: segfault at 555555633490 ip 0000555555633490 sp 00007fffffffdda0 error 15 === johuck0 is now known as johuck [02:10] I guess ill just delete it then, too much to work on anyway. Thanks for the info anyway. [02:11] heh, makes sense === 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 [04:17] 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] 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:18] in the /etc/default/openvpn file [04:21] brb [05:12] 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:13] also with system service names (making your own) whats the difference between .service and .service.wants [05:13] or .target.wants [05:18] 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:35] hello anyone? === devilnull is now known as pizza === pizza is now known as lapag [06:41] I configured the ethernet port to work with pppoe and now it does't work with the cable from the router [06:41] any idea how I can reset the settings? [06:41] I am on 20.04 [06:46] I only see network and vpn proxy in sdettings [06:47] no wired connection [07:12] i have a firestick, and ubuntu box, i would like to stream to vlc player from my ubuntu box [07:13] any recs on the best option for this [07:19] 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:37] 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:40] MWM: /sys is a pseudo-filesystem, not real files you can copy [07:41] MWM: see the output of 'mount' [07:42] Ive copied the files I need and verified them on usb. The borked install is pitching fits about pushing them however. [07:43] permission issues it says [07:43] it doesn't make sense to copy them, stuff in /sys is system-specific [07:44] just try a reboot [07:44] 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:45] I kept the old install for forensic purposes only. [07:47] 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] you're trying to copy memory [07:48] if you reboot you should get a fresh sys [07:49] sorry, /sys [07:50] 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:51] MWM: can't you just reboot? [07:51] Since there was a difference in the /sys between working and non working installs I thought that might correct the issue [07:51] reboot does not correct the issue [07:52] what is missing? [07:53] there are several directories missing from /sys/bus/i2c/drivers amongst others [07:53] are those modules loaded? [07:54] if they aren't, those would be missing [07:55] That is good to know. I had thought that it worked the other way around... directory exists so module gets loaded [07:55] no, the drivers create those 'files' as interfaces to the running driver [07:56] check your dmesg for problems [07:56] well then I see that I am going about this backwards for one thing. Thanks for all the fish :D [07:56] you're welcome :) === guiverc2 is now known as guiverc [08:39] soxfoxrox: try #ubuntu-server if you like where more server experts gather [08:45] guys how come I get unknown filesystem type 'efivarfs'. [08:45] what package should I install [08:45] this is on mount [08:45] 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:48] Xorg: where exactly do you get this message? [08:48] on mount [08:48] mount: /mnt: unknown filesystem type 'efivarfs'. [08:51] Xorg: what do you mean? are you typing a command? [08:51] mount -t efivarfs firmware.img /mnt/ [08:51] i'm tryna mount a firmware [08:54] Xorg: what happens if you just do 'mount firmware.img /mnt' ? [08:57] Xorg: try 'sudo modprobe efivarfs' [08:58] tried no luck [09:03] Xorg: i got disconnected, did you try modprobe? [09:04] yep same thing [09:05] where did you get the mount command from? [09:05] Xorg: try 'file firmware.img' [09:05] dsl device [09:05] its a binary [09:05] Xorg: and does 'grep efivarfs /proc/filesystems' list efivarfs ? [09:05] my mount works fine on arch with -t efivarfs [09:05] but not on ubuntu for some reason [09:05] Xorg: maybe you have to boot the session in uefi mode to get efivarfs loaded [09:06] hmm [09:06] weird [09:06] usually that's the case [09:06] you could boot a live usb in uefi mode if your install is in legacy mode [09:11] 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] How can I undo it? [09:13] zetheroo: have you got a backup of the partition table? [09:14] In Disks I see 769MB of Free Space (should be boot partition), and then 499GB LUKS on top and 499GB LVM2 PV [09:14] ducasse: no [09:14] :( [09:14] zetheroo: can you paste 'sudo parted -ls | nc termbin.com 9999' [09:14] zetheroo: easy fix [09:15] https://termbin.com/iahw [09:15] ducasse: ^ [09:15] zetheroo: you deleted the whole partitions, not just boot [09:16] ah you mentioned extended, thought you just said boot [09:16] EriC^^: yeah [09:16] zetheroo: sudo apt-get install testdisk [09:16] try 'sudo testdisk' [09:18] ok, do I select the first one? https://pastebin.ubuntu.com/p/Zfv27t4V6V/ [09:18] yeah [09:19] 'partition table type' ... [09:19] intel [09:19] ok [09:20] Analyse? or another option? [09:20] yes analyse [09:20] https://pastebin.ubuntu.com/p/hqQT9DxzX5/ [09:21] quick search [09:21] (press enter) [09:21] ah ok [09:21] Analyse cylinder count is ticking ... [09:22] 03% .... could take a while [09:22] zetheroo: has it listed the luks and boot partitions yet? [09:23] Linux 0 32 33 93 80 51 1497088 [09:23] Linux 93 113 21 93 178 21 4096 [09:23] https://pastebin.ubuntu.com/p/7fpmmxgffM/ [09:23] give it some time [09:24] zetheroo: you mentioned luks in the disks utity still showing, can anything be done from there? any relevant info perhaps? [09:27] I can't seem to make the first partition a boot partition again [09:27] and I cannot seem to recreate the extended partition layer either [09:27] https://ibb.co/18Pz8xz [09:27] https://ibb.co/9qgjmSH [09:27] https://ibb.co/z7zWgh6 [09:32] 78% .. [09:33] zetheroo: https://unix.stackexchange.com/questions/335690/recovering-partitioning-information-from-block-devices [09:34] for the boot partition, can't I just do something like sudo grub-install /dev/sda ? [09:35] EriC^^: scan finished https://pastebin.ubuntu.com/p/9TbrbTCmK2/ [09:37] EriC^^: is the first one the boot partition? [09:37] 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:38] how do you get to connect the two together? [09:38] 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:39] Please help with strongswan.conf, mainly networkmanager-strongswan mschapv2 support [09:40] zetheroo: try pressing 'p' over the partition to list its files [09:40] zetheroo: seriously, take the current partition boundaries from files in /sys rather than letting testdisk guess them, if you haven't rebooted yet [09:41] EriC^^: https://pastebin.ubuntu.com/p/6F3V5C4hwY/ [09:41] SupaYoshi: it's not magic, the application that uses the database has to do the caching manually [09:41] mgedmin: ah okay ;) so right, the application needs both redis server and mysql server details if it [09:41] EriC^^: second partition https://pastebin.ubuntu.com/p/72VhP3JmPZ/ [09:42] is capable of using redis at all [09:43] 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] thoughts? [09:43] 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:44] zetheroo: copy & paste the print_partitions there and add the command, it should look like this format https://termbin.com/53ul [09:44] then try to chmod +x script.sh and running ./script.sh [09:45] ok [09:46] EriC^^: https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ [09:47] mgedmin: ^ [09:47] or should I just copy all my data off and reinstall .... :/ [09:48] zetheroo: the sector size in bytes is 499339255808 so that matches the disks output [09:48] so i'd guess that's the luks partition [09:48] ok [09:52] what now? [09:53] 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] but that didn't work [09:54] zetheroo: ok type 'sudo fdisk /dev/sda' [09:54] yep [09:55] 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] https://pastebin.ubuntu.com/p/yqqNsQCG5r/ [09:55] zetheroo: the boot one starts at sector 3233 [09:56] is that the boot? ^ [09:56] 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:57] it ends at 1503231 and luks starts at 1501184 [09:58] the size matches though, 733MiB is 768mb [09:58] *768.something [09:59] ok, well I am copying all my data to an external disk to be safe [09:59] yeah i was about to suggest [09:59] 5hrs to go :P [10:00] 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] zetheroo: how did the 2048sector boot pop up in fdisk? did you add it somehow or it was just there? [10:01] I pressed 'p' and it was there [10:04] zetheroo: aha, if you type 'sudo mount -o offset=$((2048 * 512)) /dev/sda /cdrom' [10:04] does 'ls /cdrom' list the boot partition? [10:15] EriC^^: https://pastebin.ubuntu.com/p/bdXB8YGxz3/ [10:15] EriC^^: I gotta go out for a bit ... but will be back in about an hour [10:18] zetheroo: alright [10:19] cxl: it's not a PPA [10:22] ppa archiove urls start with ppa.launchpad.net. the urls which point to the web pages describing those PPAs contain "/+archive/". [11:08] 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] or is there any way to disable touch screen? [11:10] 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:29] EriC^^: ok I'm back for an hour and then I got to go out again ... anything new for me to do? === johuck8 is now known as johuck [11:46] 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:48] 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:50] 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] !mainline [11:50] 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:52] yeah good idea for ryzen machines ThinkT510 ash_1 higher kernels [11:55] 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:56] 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:57] 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. [12:06] ThinkT510 which kernel version should I try? My laptop currently has `5.4.0-52-generic`. [12:07] ash_1: i would at least got for 5.6 and higher as a test [12:07] *go [12:08] 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:16] 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:17] 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:19] ash_1: yes, all 4 of them [12:20] thanks! [12:20] ash_1: dont forget to sudo update-grub after you installed them [12:21] ok! Thanks lotuspsychje! [12:21] 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] lotuspsychje: i certainly do. hold on [12:22] also, i just tried apt --with-new-pkgs upgrade to no effect [12:22] apt upgrade: https://termbin.com/29d8v [12:23] 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:24] signofzeta: and no external ppa's? [12:24] lotuspsychje: i have a ton of external ppa's. [12:24] is there a way to see which package has marked libodbc1? [12:26] 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:27] 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:28] unrelated back-to-basics question: is apt just an alias for apt-get? they seem to function identically, the best i can tell. [12:29] signofzeta: apt is improved, has progress bar [12:30] thanks, jeremy31 :-) [12:38] 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:41] 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:42] zetheroo: still there? let me know once the copying is done [13:04] signofzeta, fyi; there are still some apt-get functions (rarely used) that mean it can't be removed (yet; why it still exists) [13:06] thank you, guiverc. thumbs-up emoji. [13:21] Hi folks [13:35] 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:37] just running "gpg" should never ask for a password [13:38] but gpg -d file should, right? [13:38] are you maybe mixing gpg up with something else? [13:38] efwe: did you check the 'save password in keyring' once? [13:39] tomreyn: no, i'm pretty sure i want to decrypt an encrypted file. [13:39] mgedmin: never. [13:39] efwe: the dialog is shown by gnome-shell, by request from gnome-keyring, which acts as the gpg agent [13:39] -d would ask for a password if the file was encrypted with --symmetric [13:40] efwe: do you have 'use-agent' in your ~/.gnupg/gpg.conf? [13:40] tomreyn: https://pastebin.com/TYFQ9CHP - this worked for the last couple of years. [13:40] mgedmin: i'll check. [13:41] for the record, when I sign git commits or debian packages in groovy, I get the gnome-shell passphrase dialog [13:41] mgedmin: gnome-shell passphrase dialog - that is missing right now. [13:41] mgedmin: thanks. that was the answer to question 2 i guess.. [13:42] mgedmin: i do not have 'use-agent' in my gpg.conf. [13:42] what does gpg do? fail? ask in an ncurses window? something else? [13:43] mgedmin: nothing. just blocks. 'strace' shows tha it is 'read'-ing.. but not at the console i invoke it. [13:44] gpg-agent has a --log-file option, can run in foreground with --no-detach, other pinentry programs can be specified with --pinentry-program [13:46] and there's --verbose to gpg [13:48] efwe: do you have /usr/bin/gnome-keyring-daemon running? [13:52] 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:53] 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] now i have to run for the daughter.. so really thanks a lot and see you later. :-) === Hash is now known as PsillyCybin [14:10] 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] no response from keyboard or mouse, any ideas? [14:12] spottyted: did you skip the integrity test? [14:14] spottyted: by default it scans your install medium [14:14] also: how much ram? integrated graphics? [14:16] 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] the dvd doesn't spin around constantly as if it's scanning it, it idles most of the time [14:17] 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:18] spottyted: 1GB ram will be very narrow for ubuntu desktop with gnome, we wouldnt reccomend it try lubuntu/xubuntu or another lighter !flavours [14:21] ah good suggestion, thanks [14:22] i miss gnome 2 :) [14:22] spottyted: that can still be installed, its still a thing [14:22] is there much of a difference between the two other than the window manager? [14:23] yeah i know about mate and if i could get away with using linux daily, i'd probably rock mate! [14:23] minimum recommendation for ubuntu is 4 gb ram btw. [14:24] well xubuntu is 2gb [14:24] https://docs.lubuntu.net/ gives an interesting error [14:24] the official website is lubuntu.me [14:24] spottyted: no i meant gnome flashback can still be installed via the repos [14:25] ah nice [14:25] 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:26] 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:27] I see I have gpg-agent running here, started by a systemd user unit [14:28] and it uses pinentry-gnome3 to ask for passphrases [14:29] ... maybe? [14:29] lol I don't remember how the dialog looks [14:30] mgedmin: thanks for the update. recently it was black and modal and not so big :-) [14:30] mgedmin: it had a password-input-field and that checkbox as far as i can remember. [14:30] efwe: do you have pinentry-gnome3 installed? [14:31] mgedmin: yep. 1.1.0 [14:31] what's the difference between desktop and alternate? [14:32] 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:35] mgedmin: is your gpg-agent started with '--supervised'? i guess so as it states it is meant for systemd usage. [14:36] ps $(pgrep gpg-agent) says yes [14:37] mgedmin: ok. after reboot it works again. pfff... sorry for bothering you all. 'hello IT, have you tried...' haha [14:37] yep, its pinentry showing the gui thing here [14:37] eh, rebooting erases all evidence of the cri^H^H^H bug [14:38] sometimes it pays to figure out why things broke [14:38] 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:39] if you understand how gpg works, I think you'll be the first person in the world to do so [14:39] maybe the second [14:41] 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:42] 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] mgedmin: i learned about https://github.com/FiloSottile/age only a few days ago. this would be totally enough for my usecase i guess. [15:17] 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:21] cybrNaut: its fixed in 20.10 [15:22] cybrNaut: bug #1900339 [15:22] bug 1900339 in gnome-shell (Ubuntu) "[Wishlist] Add a quick reboot/shutdown option" [Undecided,Fix released] https://launchpad.net/bugs/1900339 [15:25] 'reboot' in CLI doesn't require sudo if you're the only logged in user [15:29] lotuspsychje: cool.. glad to hear it [15:30] mgedmin: thanks for the tip! [15:30] cybrNaut: thank you for your notice though === 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 [17:24] how optimize ubuntu without input lag? === jeddo- is now known as jeddo [18:00] Hi [18:01] hi [18:01] I have this issue with a USB mouse is removed and added again by UDEV and/or GDM. [18:01] https://askubuntu.com/questions/1286301/ubuntu-20-04-1-lts-mouse-removed-and-added-intermittently [18:02] I haven't got any traction on the site, so I thought asking here might prove more futile. [18:03] 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:22] bol, sounds like an autosuspend on USB devices? === grumble is now known as \x2D [18:43] hey EriC^^ I am back ... copy of data is done === spinningCat is now known as biden === biden is now known as pinningCat [18:51] zetheroo: wb [18:51] zetheroo: type 'sudo cfdisk /dev/sda' [18:51] zetheroo: actualy run 'sudo fdisk /dev/sda' [18:52] ok [18:52] cfdisk looked pretty cool ;) [18:52] never heard of it before [18:52] I'm in fdisk now [18:52] yup its pretty neat [18:53] zetheroo: ok, press 'p' does it list the boot partition starting at 2048 sector [18:53] /dev/sda1 2048 1503231 1501184 733M 83 Linux [18:53] ok looks good, press 'n' [18:53] when it asks for type press 'e' for extended [18:54] then use default starting sector (keep it blank and press enter) and same for ending sector [18:54] k [18:54] Partition number (2-4, default 2): [18:54] press enter for default [18:54] First sector (1503232-976773167, default 1503232): [18:55] also default [18:55] k [18:55] Last sector, +/-sectors or +/-size{K,M,G,T,P} (1503232-976773167, default 976773167): [18:56] same, keep the default one [18:56] that should create an extended partition encompassing the whole remaining disk, hopefully it's right where the actual luks one is [18:56] Created a new partition 2 of type 'Extended' and of size 465 GiB. [18:58] ok, press 'n' again to create another partition, this time it should offer to make a logical one [18:58] https://pastebin.ubuntu.com/p/hH4QjBt67H/ [18:58] looks good [18:58] https://pastebin.ubuntu.com/p/dXPGQRCjV5/ [18:59] zetheroo: use the default one again [19:00] Last sector, +/-sectors or +/-size{K,M,G,T,P} (1505280-976773167, default 976773167): [19:00] also default, that way it uses the whole space [19:00] Created a new partition 5 of type 'Linux' and of size 465 GiB. [19:01] zetheroo: great, press 'w' to write the new partition table [19:02] https://pastebin.ubuntu.com/p/4kDzktmF9p/ [19:04] 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] I'll make one [19:05] zetheroo: alright, im curious what does 'sudo partprobe && sudo parted /dev/sda print' give? [19:06] 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] alright, it sounds better i guess [19:06] zetheroo: anyways, give it a reboot, see what happens [19:06] summonner: ok, not familiar with that. But it happens while the device is active, like when I'm playing a game. [19:07] ok thanks ;) [19:07] so grub doesn't need to be installed to the boot partition? [19:08] zetheroo: nope it should already be there [19:08] ok [19:08] zetheroo: no problem [19:20] can I combine something like `du -h` with `find . -name saw_*_dump*.sql.bz2` ? [19:21] to get a total size for all those files? [19:22] find -name 'saw_*_dump*.sql.bz2' -exec du -ch {} + [19:28] 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] Hi all! How may I know why my system frooze after a hard reboot? [19:29] mustmodify: -exec ... {} + is shorter to type and handles all filenames correctly without using -print0 | xargs -0 [19:31] 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:42] mgedmin: thanks, that helped me get through this process much more quickly. [19:42] I appreciate your help. [20:00] 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:01] Reinstalled ubuntu and the issue with the mouse still persists :((( [20:05] EriC^^ : well that didn't work .. I am in a Live session but don't know what to do [20:07] zetheroo: can you mount the partitions and see files in them? [20:08] (just to be sure there's no problem _there_) [20:08] bol: have you tried a different mouse? [20:08] zetheroo: also, how exactly did "didn't work" look like? [20:08] did you get the grub menu? BIOS/UEFI error? something else? [20:11] mgedmin: the ubuntu logo showed up with text saying something about trying to find crypt source and then it went to initramfs [20:12] and no, nothing is mounting [20:14] /dev/sda5 is 'unknown' .. it was LUKS [20:15] zetheroo: what's the output of 'sudo parted /dev/sda unit s print' ? [20:15] zetheroo: so grub is fine, but possibly the partition type of the LUKS partition is wrong [20:16] should be easy to fix! [20:16] for some reason the software center isn't showing anything when browsing [20:16] wait it's back [20:17] nevermind it's not. single square with 3 dots in the middle [20:17] nevermind it's just slow [20:17] EriC^^: https://pastebin.ubuntu.com/p/SV7pNDn7WW/ [20:18] zetheroo: try sudo cryptsetup luksOpen /dev/sda5 sda5_crypt [20:20] Device /dev/sda5 is not a valid LUKS device. [20:20] 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] maybe we're supposed to set the partition type to luks zetheroo ? [20:21] EriC^^: isn't it supposed to be LVM? [20:22] no i think its supposed to be luks [20:22] not sure really [20:22] comparing it to my other laptop which also has a LUKS partition there is an LVM2 PV [20:23] and then there is LUKS in that [20:23] Device: /dev/mapper/sda5_crypt [20:24] Contents: LVM2 Physical Volume (LVM2 001) [20:24] zetheroo: what does 'sudo fdisk -l' show for the code of the partition of sda5 [20:24] sudo fdisk -l /dev/sda [20:24] /dev/sda5 1505280 976773167 975267888 465G 83 Linux [20:25] i mean on the other laptop that has the working luks [20:25] oh sorry [20:25] hmmm it's 83 on my laptop with luks [20:26] it's 83 as well [20:26] the lvm is inside the dm-crypt [20:27] it's 1. extended partition 2. LUKS 3. LVM PV [20:28] the lvm stuff isnt showing right now, right? [20:29] right [20:29] zetheroo: hey remember your pastebin from the other day? https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ [20:29] before you rebooted, you recovered the partition location and size from /sys/block/* using that stackoverflow script [20:29] it says /dev/sda5 starts on sector 1501184 [20:29] now you say you created a new /dev/sda5 that starts on sector 1505280? [20:30] this is why cryptsetup fails [20:30] delete the partition and create it again, in the right location [20:30] you referring to this? /dev/sda5 1505280 976773167 975267888 465G 83 Linux [20:31] there was a boot partition already in the table at 2048sector [20:31] I think so? [20:31] but it overlaps the starting sector of 1501184 [20:31] then it's too big [20:31] figure out the filesystem size [20:31] let's try to shorten it and recreate the extended/logical so it matches the stuff from the script [20:32] shrink the boot partition to match the filesystem size [20:32] https://pastebin.ubuntu.com/p/GXMPQx82VK/ [20:32] you didn't recover the boot partition extents before rebooting? [20:32] : [20:33] now, how does one figure out the size of a filesystem? dumpe2fs? [20:34] do you use gparted to resize the partition? [20:34] no [20:34] https://askubuntu.com/questions/622489/how-to-find-the-size-of-a-filesystem [20:34] ok :/ [20:34] zetheroo: this is where we need /boot to end 1497088sectors [20:35] 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] that gives /boot around 765mb [20:36] ok, I don't know how to do that and I don't have any of the commands you sent me before [20:36] ok get the size of /boot just to make sure it fits [20:37] /dev/sda1 * 2048 1503231 1501184 733M 83 Linux [20:37] that? [20:38] no that's the partition, you want the fs [20:38] zetheroo: try sudo dumpe2fs -h /dev/sda1| grep '^Block' [20:39] https://pastebin.ubuntu.com/p/dFXK5m7yCf/ [20:42] odd, that's 766.5mb [20:43] that's 748544 sectors [20:44] on my other laptop the boot partition (Ext2) is 511MB [20:44] i think something else is up, if you take the size from the screenshot of luks [20:44] no, sorry, 1K blocks [20:44] 1497088 sectors [20:44] here https://ibb.co/z7zWgh6 [20:45] parted shows the partition size to be 1503231 sectors, which is larger than the filesystem inside it [20:45] I noticed as well that /dev/sda1 is Ext4 now instead of Ext2 like it was before [20:45] 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:46] which coincides with where it is right now [20:46] ( 499337158656÷512 = 975267888, and 976773168−975267888 = 1505280 ) [20:47] okay installed apps in software center is blank for like 20 min [20:48] 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] 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:49] EriC^^: I'm sorry I am not of much help .. it's a bit over my head :P [20:49] but i think 1505280 seems right, cause it matches with disk's output and since /boot was already there [20:49] but it's worth a try i guess [20:50] zetheroo: type 'sudo fdisk /dev/sda' [20:50] zetheroo: actually first, [20:50] type 'sudo dd if=/dev/sda of=/mymbr bs=512 count=1' [20:51] https://pastebin.ubuntu.com/p/HC8J3R4qp2/ [20:53] zetheroo: ok, type 'sudo fdisk /dev/sda' [20:53] k [20:53] press 'd' to delete the partitions [20:54] remove them all one after another including the primary /boot one [20:54] Partition number (1,2,5, default 5): [20:54] ok [20:54] so delete 1, 2 and 5? [20:54] yup [20:55] https://pastebin.ubuntu.com/p/d2Kd65JWj5/ [20:56] zetheroo: great, ok, type 'n' [20:56] k [20:56] starting sector 2048? [20:56] p or e? [20:56] p [20:57] Partition number (1-4, default 1): [20:57] default [20:57] First sector (2048-976773167, default 2048): [20:57] actually, let's just slap that sucker right in, shall we? [20:58] why do the boot, we just want to do a quick test anyways [20:58] zetheroo: use "1501184" as the starting sector [20:58] "1505280 seems right" but it doesn't, if /dev/sdb5 is to start at 1501184! [20:58] mgedmin: yeah but what if the script isnt right [20:58] so 1501184 ? [20:59] the script just echoe's numbers directly from the kernel, how can it be wrong? but yeah, great idea to verify first [20:59] luks doesn't need to be in a logical partition, a primary will do [20:59] 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] zetheroo: yes [20:59] (didn't zetheroo re-create /boot with testdisk?) [20:59] no, he only looked at the files using 'p' [21:00] and it thought it started at sector 3233 too [21:00] /boot was already there [21:00] also if we use this 1501184, /boot is too small for its actual fs [21:00] Last sector, +/-sectors or +/-size{K,M,G,T,P} (1501184-976773167, default 976773167): [21:00] my money's on 1505280 + something else is amiss [21:00] zetheroo: hit enter for default [21:01] anyways i might be wrong, and it's worth a shot, so let's hope for the best [21:01] Created a new partition 1 of type 'Linux' and of size 465 GiB. [21:01] Partition #1 contains a crypto_LUKS signature. [21:01] Do you want to remove the signature? [Y]es/[N]o: === PsillyCybin is now known as THC [21:01] seems it *is* there :D [21:02] zetheroo: press "N" to leave the signature [21:02] we definitely want it there i'd guess :D [21:02] does anyone remember if luks puts the signature at the start or at the end? [21:02] ok https://pastebin.ubuntu.com/p/qdpMDS5pFH/ [21:03] zetheroo: press 'w' to write it [21:03] mgedmin: i think at the start cause earlier zetheroo didn't mention that message and we also used the whole disk for it [21:04] at the start, woohoo, you found it! [21:04] also my faith in stackoverflow is shaken [21:04] how come? [21:04] 1501184 != 1505280 [21:05] https://pastebin.ubuntu.com/p/8gFWCfJgJQ/ was wrong [21:05] yeah it doesnt make sense given the other stuff, but happy ending all good [21:05] EriC^^: ok done [21:05] mgedmin: no we actually used 1501184 this time [21:05] ah! [21:05] zetheroo: ok, did it quit fdisk? [21:05] yes [21:05] zetheroo: type 'sudo partprobe /dev/sda' [21:05] so how big did you make /dev/sda1? [21:06] so it's not overlapping [21:06] we didnt [21:06] done [21:06] no output [21:06] zetheroo: try sudo cryptsetup luksOpen /dev/sda1 sda5_crypt [21:07] Enter passphrase for /dev/sda1: [21:07] awesome [21:07] I guess that's my cue [21:07] should I enter my passphrase? [21:07] sure if you want, no harm [21:08] done [21:08] no output [21:08] 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] zetheroo: ok [21:09] /boot was 766509056bytes according to the dump command [21:09] which is 1497088sectors [21:10] if we dont use the extended stuff the boot partition would have 1499136sectors, so all good [21:10] so it ends at 1499136 which is before 1501184 [21:11] there's a gap of 2048 [21:11] yeah [21:11] enough space for the extended partition if you still want one [21:11] if it starts at 2048 it'll have 1499136 to enjoy [21:11] nah [21:12] 2048+1499136+4096 (for the extended) it'll end at 1505280 again [21:13] let's just leave both as primary since everything is happy that way [21:13] sorry 1 sec [21:14] extended should't neet 4096 bytes? let me check... [21:14] sorry its 2048 + 1497088 + 4096 = 1503232 [21:14] alright [21:14] i used this to get the 4096 https://pastebin.ubuntu.com/p/SV7pNDn7WW/ [21:15] 1505280−1501184 = 4096 [21:15] an extended partition needs 2 sectors? [21:16] https://termbin.com/nvzd [21:16] dunno the /boot ended at 1505280 and the logical started at 1501184, we used the default values when creating them [21:16] (that was my sfdisk -l /dev/sda) [21:17] i think i screwed the calc using size instead of end [21:17] 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] yeah i did, seems it only needed 2048 [21:18] 2048 is a thousand times too many :) [21:18] maybe /boot was a little bigger than we computed? [21:19] or maybe I'm getting lost between the units [21:19] 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:20] so about the same [21:20] also my /boot is tiny [21:21] our luks sector was 1501184 i think we end make /boot end at 1501184 - 2049 = 1499135 we should be good [21:21] *i think if we make /boot end at... [21:22] seems to all add up, must have been that way out of the box i guess [21:23] zetheroo: mgedmin shall we make boot 2048 -> 1499135 ? [21:23] I'll go with whatever you both advise :) [21:24] 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:26] zetheroo: alright type 'sudo fdisk /dev/sda' [21:26] k [21:26] zetheroo: press 'd' again to delete the primary luks partition we made earlier [21:26] Partition 1 has been deleted. [21:27] zetheroo: ok, press 'n' to create a new one [21:27] choose 'p' for primary, starting sector 2048 default [21:27] partition number 1? [21:27] yup [21:28] First sector (2048-976773167, default 2048): [21:28] going with default? [21:28] yeah [21:28] Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-976773167, default 976773167): [21:29] zetheroo: type in 1499135 [21:29] Created a new partition 1 of type 'Linux' and of size 731 MiB. [21:29] Partition #1 contains a ext4 signature. [21:29] Do you want to remove the signature? [Y]es/[N]o: [21:29] zetheroo: choose no [21:29] ok [21:30] back to fdisk prompt [21:30] zetheroo: ok, press 'n' again, this time choose extended [21:30] ok [21:30] partition number 2? [21:30] yes [21:30] First sector (1499136-976773167, default 1499136): [21:31] keep default [21:31] k [21:31] Last sector, +/-sectors or +/-size{K,M,G,T,P} (1499136-976773167, default 976773167): [21:31] also default [21:31] Created a new partition 2 of type 'Extended' and of size 465 GiB. [21:32] back to fdisk prompt [21:32] alright, press 'n' again [21:32] All space for primary partitions is in use. [21:32] Adding logical partition 5 [21:32] First sector (1501184-976773167, default 1501184): [21:32] keep default [21:32] Last sector, +/-sectors or +/-size{K,M,G,T,P} (1501184-976773167, default 976773167): [21:32] also default [21:33] Created a new partition 5 of type 'Linux' and of size 465 GiB. [21:33] Partition #5 contains a crypto_LUKS signature. [21:33] Do you want to remove the signature? [Y]es/[N]o: [21:33] no [21:33] ok, back to fdisk prompt [21:33] ok press 'w' to write it [21:34] then type 'sudo partprobe /dev/sda' at the command prompt [21:34] https://pastebin.ubuntu.com/p/KhbhWZ9npW/ [21:34] is this because I entered the LUKS passphrase before? [21:35] yeah i think so [21:35] how did the sudo partprobe /dev/sda command go? [21:35] I didn't do it yet [21:35] i think we're good though, as it said this before but it still wrote everything [21:35] ubuntu@ubuntu:~$ sudo partprobe /dev/sda [21:35] 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:36] zetheroo: ok, try just 'sudo parted /dev/sda print' does it have /boot, extended, logical? [21:37] https://pastebin.ubuntu.com/p/qZ2bfzyFHy/ [21:37] why no boot flags? [21:38] yeah we should add that in case the bios wants it [21:38] linux really doesnt need it but some bios could be picky [21:38] hmm ok [21:38] zetheroo: first though, try sudo mount /dev/sda1 /mnt && ls /mnt [21:38] does it list the contents of the /boot partition? [21:38] mount: /mnt: unknown filesystem type 'crypto_LUKS'. [21:39] can I undo the passphrase action from before? [21:39] ah i think it still has the old partition table then [21:39] ok [21:39] zetheroo: try to reboot, see how it goes [21:39] hehe ... gulp ... ok [21:39] zetheroo: or 1 sec lets add the boot flat first? [21:39] be back soon ... hopefully from the booted systems ;) [21:39] *flag [21:39] ah ok [21:40] type 'sudo cfdisk /dev/sda' [21:40] k [21:41] zetheroo: highlight the boot partition, and at the bottom go to 'bootable' and press on it [21:41] and sda1 is the boot partition, right? [21:41] yeah [21:41] ok done [21:41] go to "write" [21:42] The partition table has been altered. [21:42] Quit? [21:42] awesome, quit cfdisk then try to reboot [21:42] ok [21:42] be back soon .... [21:45] EriC^^: That worked!! :D [21:46] zetheroo: any luck? [21:47] EriC^^: yes, all good!! Can't believe it! :D [21:47] zetheroo: awesome! [21:47] :D [21:47] I thought for sure I was going to have to install from scratch OMG [21:47] Thank you sooo much!! [21:48] Can I send you some Bier money? :P [21:48] no problem [21:49] no need enjoy buddy [21:49] amazing the stuff you guys know and how you can figure this stuff out [21:50] I always thought that once a partition is deleted that that meant good bye data [21:50] yup same here [21:51] it's pretty awesome that it's not like that [21:51] I'll say [21:51] well it's been educational! [21:51] mgedmin: hey, thanks a ton for your help too! [21:52] here's an old historical story that was an inspiration to me: https://www.ee.ryerson.ca/~elf/hack/recovery.html [21:52] 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:53] 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] yikes [21:54] luckily /usr, /var, /home, /tmp were on separate partitions [21:54] sheesh [21:54] this was around the time linux drivers were updated so IDE hard disks switched from /dev/hda to /dev/sda naming [21:54] which is why I made the mistake [21:56] anyway one day you'll be the one helping other people recover! [21:58] mgedmin: I have done dd if=/dev/hda | ssh dd of=/dev/hda [21:58] mgedmin: this is as hairy and terrifying as it looks at first glance, yes [22:00] 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:01] 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] but I wonder if that would work today with all the extended attributes and stuff [22:01] (also -xdev is not a tar option, I forgot the tar option) [22:02] https://xkcd.com/1168/ [22:59] 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 [23:01] 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] other one shows E: ID_V4L_CAPABILITIES=: [23:02] what command can I put in the udev rule to help create a symlink? [23:03] I tried ATTRS{ID_V4L_CAPABILITIES}==":capture:" and it does not work [23:04] I have also tried ENV{ID_V4L_CAPABILITIES}==":capture:" [23:07] hello is there a chat channel for ubuntu? [23:11] wolfzrat, this is the chat channel for ubuntu [23:11] there's also #ubuntu-discuss and #ubuntu-offtopic - maybe that's what you're looking for [23:11] ok great thank you for confirming that, I just realized i was not in ubunt-help lol [23:14] You know that was what was looking for (Ubuntu-offtopic) lol [23:18] 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:22] did you try to see if it happened again [23:22] i just rebooted and everything is fine now, after 10hr up time it did that [23:23] is it a desktop of laptop [23:23] PC [23:25] 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] ill get the air duster out i suppose [23:27] OK, you can always come back and we can see what else we can do to assist you and troubleshoot the problem :) [23:37] can anyone here help with udev rules? [23:38] looking for how to filter for ID_V4L_CAPABILITIES === futurile_ is now known as futurile