/srv/irclogs.ubuntu.com/2025/02/25/#ubuntu.txt

enohola00:55
neachdainnI'm creating a disk image for an Ubuntu 22.04 machine and I'm trying to use chroot to prep the image to autoconnect to a Wi-Fi network after the image is flashed. I've figured out how to do that prep using `nmcli` from a live machine but that doesn't work in the chroot because NetworkManager isn't running. Is there either a way around that or documentation on what configuration files need to exist01:15
neachdainnfor the autoconnect to work?01:15
neachdainnE.g., is copying `/etc/NetworkManager/system-connections/my-wifi.nmconnection` sufficient?01:18
erizo74wwww01:50
=== ajfriesen1645 is now known as ajfriesen164
=== linux is now known as Guest3085
Metro42i was looking for a n64 emu for my samsung galaxy.05:08
Metro42anybody know any good nmapping sites?06:01
=== rvalue- is now known as rvalue
redrohey guys07:31
redrohey07:32
yazmyrathi08:13
do_you_know_it_bok we got it08:51
do_you_know_it_b:>>08:51
ajpoHi,08:58
do_you_know_it_bhello i love you09:00
ajpott40Hi, me and several colleagues have problems with wi-fi disconnecting every 15 seconds or so on Ubuntu 24.04. We did not have this problem on Ubuntu 20.04. We disabled powersaving in NetworkManager and tried various different kernel versions (including mainline). This happens on multiple different computer models from fresh install (albeit they have09:11
ajpott40the same wi-fi chip). I also tried disabling Ipv6, changing Wi-Fi band and channel. Should we file a bug somewhere?09:11
mgedminI would absolutely file a bug10:17
=== blueyello is now known as blueyellow
omeroslightly offtopic question: does anyone knows about a pastebin-like that could work like termbin.com via commandline (with netcat/socat)11:15
omeroseems termbin.com went offline :|11:15
mgedminsudo apt install pastebinit; echo stuff | pastebinit11:16
mgedminpastebinit supports several sites, e.g. bpa.st11:16
omerothank you mgedmin11:18
mgedminoh hey I see this channel's /topic recommends bpa.st as the pastebin of choice11:18
omerowill check that one11:18
omeroyes, noticed .. but thought it would only work via a browser11:18
oerhekstermbin.com still down"?11:19
omeroin past always used something like 'echo test | socat - TCP4:termbin.com:9999'11:21
omerobummer, yes oerheks .. and no clues why ... dns record is there but nothing responds11:21
omerowas handy to share commands output on the fly .. no browsers and tricky copy/paste11:24
tomreynfwiw, termbin source code is at https://github.com/solusipse/fiche - and i think a regular here hosted a copy, too.11:33
ravageIt's me!11:33
omeroyes, did check github last night .. main problem being i dont have a static ip else would host it myself11:34
ravageYou can use ddns11:34
=== neocharles is now known as Guest3743
ravageBut a VPS is really cheap these days11:35
omeroi suppose some kind of storage would be necessary too .. meaning: huge hdd11:35
ravageFor some text?11:35
* mgedmin pays under $4/month for a cheap OVH VPS that rarely gets set on fire11:35
omeronot every countries are alike mgedmin :Þ11:36
omerohere providers dont even consider providing ... ipv611:36
omerowhich is silly11:37
ravageI think I clean up my pastes once a month or so11:37
ravageI don't think they take more than 1MB of space11:38
ravageIt's not like that paste service is meant as a permanent storage11:38
omerooh? mmm ... i would use it just for debugging stuff and sharing some minor stuff11:39
omerowill have a better look at the github tree (fiche)11:46
=== mativo_ is now known as mativo
=== SherlockCat is now known as spinningCat
ravageomero: https://git.buechner.me/nbuechner/fiche supports IPv6 and i added patches of some forks of the original github project13:03
ravage(if you are still here)13:03
POPEYE85if I copy (move) a file from one mounted partition to another (or from one folder on mounted partition to another folder on the same partition) as "usar a", is it enough to run sync command as the same "user a" or I must run sync as root?13:15
pragmaticenigmaPOPEYE85: what purpose are you needing to manually call sync?13:17
POPEYE85to prevent copied or moved data loss if there is power failure13:19
POPEYE85for example13:19
BluesKajHi all13:19
pragmaticenigmaPOPEYE85: unless you live in a very power limited region, there is no reason to manually call sync. The system does that on its own schedule13:20
ograPOPEYE85, sync operates in-kernel, so you dont need sudo or anything, it just triggers the sync/fsync syscalls and the kernel does the rest13:26
ograPOPEYE85, for more info see: info '(coreutils) sync invocation'13:27
POPEYE85running sync makes something according to drive light. But in many manuals is written to run sudo sync to sync everything13:28
ograit shouldnt make any difference to use sudo here13:28
pragmaticenigmaPOPEYE85: you should read up on what the command does and how it works. The kernel regularly calls sync when it determines it needs to. All data is written to the drive. Sync ensures anything remaining in caches (rare in modern computers and journaling file systems) is ensure to be flushed to the storage media13:30
ograyou can call sync with arguments to have it only sync specific filesystems (i.e. the target device you copied to) or even files ...13:32
pragmaticenigmaPOPEYE85: all the sync command does is request the kernel perform it's sync function. It does not actually happen when a user enters the command. The light blinking is coincidental, and not reflective of being triggered by your action.13:32
ograaqlso note that calling sync is part of the umount command, if you unmount the filesystem you copied to after copying the sync will happen in that step automatically, you don't need to call it separately13:34
POPEYE85I am sure that blinking the light on the drive that has it's own light (right after copying / moving files on it), at the same moment when the sync command is running (the terminal command line is inaccessible while command running) is not coincidental13:41
POPEYE85<ogra> I know about umount13:42
POPEYE85But I prefer to sync after every change of the user files to minimize the risk of data loss13:44
pragmaticenigmaPOPEYE85: the light blinks because the driver controller was accessed, it does not reflect data being written to or read from the device13:45
POPEYE85For example in one manual is written: "If you run the sync command without any arguments, it synchronizes all cached data for the current user to permanent storage"13:47
POPEYE85and: "Using the sync command without arguments will synchronize the current file system. To synchronize all mounted file systems, execute the command with sudo"13:47
leftyfbPOPEYE85: you asked for help about an application (sync) and were told your use case does not cover it's purpose. You can listen to the advice or continue wasting your efforts. It's your call.13:48
ahmedhello14:59
=== ahmed is now known as Guest8697
=== neocharles is now known as Guest9927
tomreyntermbin is back btw.16:54
mdmbkrI updated to 24.04.02 LTS (from 22) and now one of my nvme's is reporting a 4k sector size .. anyone seen something like that16:57
leftyfbmdmbkr: is there something wrong with that?16:57
mdmbkr'nvme list' shows it as an 8TB drive, but it's a 1TB drive (4k is 8x 512 bytes)16:57
mdmbkryes, it should be 512 bytes16:58
leftyfbmdmbkr: why?16:59
mdmbkrI failed to make that clear, the drive (like the other 3 nvme's in this system) has a 512 byte sector size ; after the update, the system thinks it's got a 4k sector size, which now makes the system see it as an 8TB drive16:59
mdmbkrwhy should it be 512 bytes? because that's how it was operating before, and now it doesn't work17:00
leftyfbmdmbkr: what is the model# of the drive? Modern drives use 4k17:00
mdmbkrWDS100T3X0C-00SJG017:00
leftyfbmdmbkr: I'm not sure how that's possible. Changing sector size destroys all the data17:02
mdmbkrall I've figured out so far is that it was working fine for about a year, then I updated to 24.x and it immediately stopped working, and 'nvme list' claims it's grown from 1TB to 8TB17:04
leftyfbmdmbkr: which kernel are you running?17:07
mdmbkr6.8.0-53-generic17:07
leftyfbmdmbkr: try the 6.11 hwe kernel17:07
tomreyncna you also discuss how "it is not working" now?17:09
tomreynis there an error message, does it fail to boot, to mount file systems, can you still read the partition table?17:10
tomreynis the system fully updated? is it using third party apt repositories?17:10
mdmbkrsure .. there are four nvme's in this system, 3 of them are on a pci-e x16 carrier designed to hold 4 drives, and one of them is on the motherboard17:11
mdmbkrI'd have to open the case to verify but I'd bet the one that seems abnormal would be the one on the motherboard17:12
mdmbkrthe reason it's not on the carrier is because this bios won't do 4x4 bifurcation, only x8+2x417:12
mdmbkrthe nvme's were all raided together using md to make a scratch area17:13
=== todi1 is now known as todi
tomreynthat's good contextual info. however, i don't think you answered any of the questions.17:14
mdmbkryeah sorry I'm working towards that =)17:15
mdmbkrblock nvme0n1: No UUID available providing old NGUID17:18
mdmbkrthat looks more like a sympton than a root cause17:21
leftyfbmdmbkr: did you try the 6.11 hwe kernel?17:21
mdmbkrI'm not really sure how to do that, a quick search shows it's part of 24.04.2?17:22
mdmbkr(which my system says it is currently running)17:23
leftyfbmdmbkr: sudo apt install linux-image-generic-hwe-22.04  # then reboot17:23
mdmbkrE: Unable to locate package linux-image-generic-hwe-22.0417:23
leftyfboh, sorry17:23
leftyfbmdmbkr: sudo apt install linux-image-generic-hwe-24.04  # then reboot17:24
mdmbkrI guess I ought to read things first heh17:24
tomreynhttps://gist.github.com/tomreyn/8d7675840d7bc7389b32e4d8887ca449 if you'd like to read up on this, might be for later.17:25
mdmbkrok thanks for that17:29
mdmbkrthere's not really any new hardware in this system .. again, everything was working fine prior to 'do-release-upgrade'17:29
mdmbkrbefore I reboot to try this newer kernel: Diagnostics: The currently running kernel version is not the expected kernel version 6.11.0-17-generic.17:30
mdmbkrseems like the various packages installed just fine, I guess that's just a notice?17:30
leftyfbprobably because that's the latest kernel installed now17:31
mdmbkrok 6.11.0-17-generic is booted17:35
mdmbkrthat nvme still showing 8TB instead of 1TB, and 4k sector size unlike the others which are 512 bytes17:36
mdmbkrsmartd[1472]: Device: /dev/nvme2, WDS100T3X0C-00SJG0, S/N:19117C801590, FW:102000WD, 1.00 TB17:43
mdmbkrsmartd sees it correctly as a 1TB drive ...17:43
tomreynwhat about    fdisk -l   ? which capacity does the kernel report during boot?17:48
mdmbkrfdisk -l shows the correct capacity, but shows all 4k sector sizes, where the other 3 nvme's are all showing 512 bytes17:51
mdmbkr(so maybe the capacity being wrong in nvme list is just an unrelated bug?)17:51
mdmbkrfdisk -l for two 1TB nvme's: https://bpa.st/7FAQ17:53
mdmbkrhow do I see what capacity the kernel reports during boot, my SAS/SATA devices show up in dmesg that way, but not the nvme's17:55
leftyfbmdmbkr: you said this drive was just part of a RAID array?17:56
mdmbkryes17:57
tomreynmdmbkr: maybe the capacity doesn't show for nvme's during boot, i lack experience with NVMe's17:57
leftyfbmdmbkr: so you don't care what's on it?17:58
mdmbkryes, in theory I won't really lose any sleep if it gets wiped, however, I would prefer to understand what's going on17:58
mdmbkrbecause I really doubt this one drive is actually 4k while the others are 512, the change in capacity in 'nvme list' reinforces that notion, and therefore in my imagination there's probably a config change, command option, bios setting, or something like that to get it 'fixed' back to 512 bytes17:59
=== tmroland_ is now known as tmroland
mdmbkrbut, supposing I'm wrong, and it's been 4k all along, and the capacity always showed 8TB and I just never noticed it, then perhaps an alternate theory is something during the do-release-upgrade process nuked the md superblock or something18:01
=== neocharles is now known as Guest9849
tomreyndoes this help? https://www.bjonnh.net/article/20210721_nvme4k/18:07
tomreynmake sure you remove the array member before you format, in case you want to18:08
mdmbkrok checking that18:10
mdmbkrLBA Format  1 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0x1 Better (in use)18:11
mdmbkrhmmm18:11
tomreynand the others, which are the same model (and same firmware?)?18:11
mdmbkrheh, of the four nvme's in this system, three support 4k sectors, three are using 512, and one is using 4k18:12
mdmbkrno they're all mixed up18:12
mdmbkrI will paste some stuff hang on18:12
pickanickmdmbkr: before you tear up your installation, please note, in many cases it might be smart to have the boot/OS drive have 512byte sectors and the /home partition have 4k sectors.18:12
leftyfbpickanick: why?18:13
pickanickbecause the OS has lots of small files. And the user data has lots of big files.18:13
mdmbkrhttps://bpa.st/LZDA18:15
pickanickIf you use 4k on mostly small files, more space goes wasted.18:15
mdmbkrit's more of a media server setup .. there's an mpt2sas controller with a bunch of drives storing media on xfs, then nvme's raided together for a scratch area, and a tape drive for backup18:18
pickanickhold on, does Sabrent manufacture NVMe's, or just the connector to another manufacturer's NVMe's ? because *maybe* that middle hardware is confusing the situation.18:19
mdmbkrthat nvme has a (physical) label on it that says sabrent, looks like any other m.218:20
mdmbkrlooks a lot like this: https://cdn.idealo.com/folder/Product/6556/5/6556532/s3_produktbild_max/sabrent-rocket-nvme-2tb-m-2.jpg18:21
mdmbkr(the drive that seems to be the issue here is the WD one though)18:22
pickanickbut is the WD a hard drive or NVME?18:23
tomreynwhat does it look like? https://shop.sandisk.com/en-gb/products/ssd/internal-ssd/wd-black-sn750-nvme-ssd?sku=WDS100T3X0C-00SJG018:24
mdmbkrthat's exactly what it looks like18:26
xless1tomreyn: what capacity are you after?18:29
xless14TB is a pretty euro18:29
xless1"553.99", i guess if you can make one under the sandisk brand, you can charge $$$18:30
leftyfbxless1: tomreyn is currently helping someone with an ubuntu issue18:31
pickanickfor serving media (ie large files) 4k sectors might be slightly faster and save memory / directory structures.18:31
leftyfbxless1: if you'd like to discuss storage products, feel free to /join #ubuntu-offtopic18:31
xless1leftyfb: oh ok, probably a dialog from before i joined18:32
=== tmroland_ is now known as tmroland
gordonjcp~.21:16
tomreynConnection closed.21:18
morgan-uI have only 3 g of swap space. should that make g chrome problems?22:27
morgan-u8g ram 22.0422:27
morgan-u2.5g ram used with only hexxchat.22:28
morgan-uerase that22:29
leftyfb2024 Nov 07 11:42:15 <leftyfb>morgan-u: add the 8GB of memory you said you have. Do not rely on swap. swap != memory22:30
bpromptmorgan-u: hmm well, keep in mind that hexchat doesn't use that much, the 2.5gbs used in ram is mostly the system load, plus some buffered ram and cached ram22:35
pragmaticenigmabprompt: they have repeated the same question (as lefty indicated) since November.22:40
=== travisghansen350 is now known as travisghansen35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!