libera/#devuan/ Wednesday, 2023-11-15

awillhello, i'm having some issues with apt on my devuan install. is this the right place to ask?03:29
fluffywolfyep!03:30
awillgreat, what could help with diagnosing my issue?03:30
fluffywolfwell, first, saying what the issue is...03:30
awillright, derp :p03:31
awillany time i try to perform any actions that request deb.devuan.org, there's a 75% chance it will error out and fail to connect to the server. be it update or installing a package, it fails most of the time03:31
awillboth apt and apt-get experience the same issue03:31
onefangIs there a specific IP for deb.devuan.org when you get that error out?03:32
fluffywolfonefang can probably help with that a lot better than I can.03:33
onefangdeb.devuan.org is a DNS round robin, you'll get a different IP pointing to a different server each time.03:33
awillof course when i try to replicate the problem it works fine, ugh03:33
fluffywolfmy first thought would be you have non-apt-related network isues...03:33
onefangOr that.03:33
awillpotentially? i have two network cards in my pc and both have worked fine in other distros, this is the only instance where i'm having network issues03:34
onefangWe use https://sledjhamr.org/apt-panopticon/results/Report-web.html to monitor the package servers, you can check the IP you get against that to see if that particular server is having issues at that time.03:34
onefangYou can also use https://pkgmaster.devuan.org/mirror_list.txt to pick a particular server instead of deb.devuan.org if you prefer.03:35
onefangBut failing 75% of the time means the problem is likely closer to your end of the network.03:36
onefangCoz if the servers where failing that often, EVERYONE would be bitching at me to fix it.  lol03:36
awilltrue, i suppose i could try hotspotting to rule out my isp03:37
awillthings seem to be working after rebooting router, thanks for the help onefang and fluffywolf!03:43
fluffywolfwell that's an easy fix.  :)03:45
fluffywolfare you using bittorrent or other peer-to-peer applications?03:45
awillnot that i know of, no03:47
fluffywolfk.  some cheap routers often fail badly when you use such things, from all the connections.03:47
awillit's my isp provided router, can't use anything else sadly03:49
awillno idea what the quality is like03:49
fluffywolfterrible, I would assume.  lol03:49
onefangGone #devuan-offtopic now.03:51
gry< awill> it's my isp provided router, can't use anything else sadly04:41
grycan you buy your own?04:41
gnarfacein the US it's not illegal for the ISP to require you use the hardware they tell you to use04:44
gnarfaceit's not even illegal for them to charge you for it on the way in and the way out04:45
gnarfacethe best you can do is put another firewall behind it04:45
gnarface(that's still not illegal, yet, though it is also not illegal for them to tell you it's illegal so lots of people fall for this scam)04:45
gnarfacehe's already gone though, gry04:48
onefangNo idea if they was even in USA.05:14
gnarfacewell, it was just as an example, but it's a safe bet because it usually doesn't come up otherwise05:18
fluffywolfthe cable isp here recently changed ownership, now says you have to use their equipment...  I should hopefully be getting them next year...  will probaly put their modem/router in a wifi-proof box, then plug my own router into it.05:29
systemdleteI have 2 brand new 2TB SATA hard disks (mechanical, not ssd) which are connected to a brand new mainboard.  Booting from the daedalus live iso, fdisk -l shows that there are no partitions on either drive.09:41
systemdleteBut /dev/sda[1-4] and /dev/sdb[1-4] exist.   Forgive me if this is some elementary thing I have forgotten about.09:42
systemdleteIn most cases I've ever encountered, those device files do not get created until there are partitions on those disks recorded with the kernel.09:43
systemdleteHere, the kernel seems to think these partitions already exist, yet fdisk -l shows no partitions on either drive, and even blkid does not know of them either.09:44
systemdleteSo take me back to school if this is something I should already know.09:44
systemdleteMB is Asrock 970M with an FX8350 and 32GB DDR3.09:45
n4dirwhere does daedalus live iso show the 4 partitions? You seem to say fdisk -l doesn't show them.09:46
systemdlete<systemdlete> But /dev/sda[1-4] and /dev/sdb[1-4] exist.09:46
systemdletei.e., ls /dev/sd[ab]*09:47
n4diri see, they do exist, but on the live iso, at least fdisk -l doesn't know about them?09:48
n4diri'd have a quick look at gparted too, without expecting much insight from it, but it won't hurt09:48
systemdleten4dir, are you saying it is just getting the info from the iso image?09:48
n4dirsystemdlete: no, i am saying it is confusing, i wouldn't expect that either09:49
n4dirbut first i didn't fully understand the facts, that is why i asked09:49
systemdletegparted is not in the path, but parted is.  Parted print shows no partitions09:49
n4diryeah, no need to install gparted, as said it probably won't help much anyway09:50
n4direxternal or internal disks? If exernal you could unplug them, plug them back, then look at dmesg09:50
systemdleten4dir, but you brought up an interesting point.  So that got me to thinking that maybe the /dev/sd* files are from the image09:50
n4diri for one don't know too sure what happens to /dev/* when. I usually just use fdisk09:51
systemdletethey are internal.  Sadly, my multi-bay unit came in missing a piece, so I am waiting for it (Newegg switched product on me).   So to remove the drive and re-attach it means opening the box (front AND back panels, etc)09:52
n4diryeah, that is a bit too much09:52
systemdleteI am so pissed, too!09:52
n4diri can relate09:52
rrqif "brand new" they might be single partition with ntfs or not partitioned at all09:52
systemdleteThat they swapped the product on me is one thing.  That it came incomplete is another.09:53
n4dirif you have other live isos around, i'd have a look what they say09:53
n4dirgot a link for the live iso you used? I could quickly start it in qemu09:53
systemdleteI do have daedalus install iso...09:53
n4diri wouldn't expect much insight from that either09:53
systemdletedevuan_daedalus_5.0.0_amd64_minimal-live.iso09:54
n4diroh, i meant the link. I am not too good with devuan website and web pathes09:54
systemdletewell, no, actually you have a good idea.  Maybe other iso images are configured differently.09:54
systemdleteoh09:54
systemdletehold on09:54
n4dirwould take a bit of time, first download it, then boot, but it may (or may not) help09:55
systemdletehttps://mirror.leaseweb.com/devuan/devuan_daedalus/minimal-live/devuan_daedalus_5.0.0_amd64_minimal-live.iso09:55
systemdlete(I appreciate your help!)09:55
n4dirok, give me a few09:55
n4dirnot much help, sorry, but as long no one with a clue has a say ....09:56
systemdletebut you can download from any of the mirrors.  I just picked the first one09:56
systemdleteI'll try booting other images, just for comparison.09:56
rrqyou can run installer-iso and inspect drives instead of installing09:58
fsmithredsystemdlete, did you just create the partitions that fdisk can10:00
n4dirsystemdlete: login username and password are?10:00
fsmithredcan't see?10:00
fsmithredif so, run partprobe10:00
fsmithreddevuan:devuan root;toor10:01
n4dirthanks10:01
systemdletegeez, I didn't have to enter a user or password.10:02
systemdletefsmithred, I haven't done ANY partitioning on either disk.10:02
n4dirsystemdlete: at least here, in qemu, it does see the partitions with fdisk10:02
systemdleteI boot up, obtain root permissions if I don't already have them, and run fdisk -l10:02
systemdleten4dir, huh.10:02
systemdletebut are those blank drives?10:03
systemdleteWell...10:03
systemdleteI guess what I mean is, you know that the disk images you passed to qemu are essentially virgin?10:03
n4dirno, they have a partition, and they get seen. Looks like i still didn't understand the facts of your situation10:03
systemdlete(no partitions etc)10:04
systemdleteI did say these were brand new disks.10:04
systemdleteAlso, I wonder if running under qemu vs physical hardware might give different outcomes.10:04
systemdleten4dir, can you re-try your experiment with completely empty new disk images?10:05
systemdlete(they don't have to be huge, just enough to test)10:05
n4diri just created it10:05
systemdletedid you partition it?10:05
rrqnote that one can create device nodes like /dev/sda1 etc without actuallly having partitions10:06
n4diryup, the just created new "disk" without being partitioned only gets shown as "/dev/sdb" with fdisk -l10:06
systemdleterrq, right.10:06
n4dirthe already exisiting and partitioned one gets shown as /dev/sda and /dev/sda110:06
systemdleten4dir, which is what I see also10:07
systemdletewhich we would expect also for a previously partitioned disk10:07
systemdletethanks, n4dir10:07
n4dirsame for /dev/*10:07
systemdleteat least the results are consistent, even if confusing.10:07
systemdleterrq, why would those nodes be created if there are no partitions?10:07
n4dirwell, the hardest part was switching between german and english keyboard layout. not hard, confusing.10:07
systemdleteoh, sorry about that.10:07
systemdleteI sometimes forget about the language barriers10:08
rrqit's possible (in tehory) that the live iso comes with prepolated /dev/sdaN10:08
systemdleterrq, that was one of the scenarios I considered also.  But again, that really shouldn't be the case, should it?10:08
n4dirbeen ages i ran in that problem, if a GUI is involved, i just setxkbmap de. On a TTY it is a bit strange :-) Anyway, back to topic10:08
n4dirrrq: yeah, but the same iso for me it doesn't have it10:09
systemdleten4dir, np.  I appreciate your assistance10:09
rrqtry "mount -t devtmpfs xxx /dev" to see what the kernel thinks10:09
systemdletewait n4dir didn't you just tell me you are seeing those nodes?10:09
systemdlete(now I'm wondering if we are saying/seeing the same things)10:09
n4dirI see it the way it really is: /dev/sda ; /dev/sda1 and /dev/sdb (no /dev/sdb1 )10:10
systemdleterrq, great idea, thanks.  HOld on10:10
systemdleten4dir, and sdb is the "new" disk, right?10:10
n4dircorrcect, sir10:10
systemdleteok10:10
systemdleteso what did you mean by your remark to rrq then?  That confused me.10:11
n4dirhe said at least in theory those "nodes" might already be in /dev on certain live isos10:11
systemdleterrq, wrong fstype, bad superblock, etc message (can't copy-paste it, something like that though)10:12
systemdleterrq, I am nearly 100% certain that the partitions really don't exist.  It is just the /dev file system that seems to think they do10:12
n4diron a side note i got those USB sticks which i always see as /dev/sdb, no partitions no nothing, but if i boot them "mount /dev/sdb /media/stick", they work just fine. Also weird10:12
systemdleteand like you suggested, probably these are "burnt" into the iso image10:12
rrqmmm are proc and sysfs mounted... yes I would trust fdisk more then device nodes10:13
systemdleten4dir, not too weird, actually.  I have that scenario sometimes also.  If the entire device is formatted with a file system, you can still mount it.  file systems don't HAVE to be in partitions10:13
n4diri recreated it several times. The stick is 10 years or older, so i don't really think much about it. Only use it to move config files from one machine to the other10:14
fsmithredI don't think those nodes are populated by the live iso. Some are, but not /dev/sd*10:16
systemdletefsmithred, then where are they coming from?10:16
systemdleteany idea?10:16
rrqdev creates them from /sys10:16
fsmithredI don't know. I didn't see them in a refracta no-X iso. I don't have a devuan minimal-live available to test right now.10:16
fsmithredI need to go back to sleep. It's 4am here.10:17
systemdletefsmithred, btw, I just tried partprobe (booted under chimaera desktop live) and it made no difference.  The nodes are still there, and fdisk -l is still reporting no partitions10:18
rrq*udev*10:18
systemdletefsmithred, night.  thanks10:18
systemdleterrq, so /sys might be hardcoded into the iso?10:18
rrqwell, /sys will hold sysfs from the kernel, and /sys/block/* are the block devices it sees10:19
systemdlete(sorry if my questions are dumb)10:19
systemdletethen it is sounding like /sys is not being built dynamically, but is hardcoded somehow and the kernel is pulling that info?10:20
rrqthen you would have a /sys/block/sda/sda1 "derectiory" if the kernel sees such a partition10:20
rrq"directory"10:20
systemdleteok, let me look...10:20
rrqyou need to have it mounted... mount -t sysfs sysfs /sys10:21
systemdleteyep.  They are there under /sys/block/sda, all 4 partitions10:21
rrqand to mount, you need proc mounted10:21
rrqinteresting10:21
systemdleteI'm pretty sure they are, but I'll double check.10:21
systemdleteindeed, they are mounted...10:23
rrqand right now you have 3 drives ? (including the live iso)10:23
systemdleteatm, I have booted from a usb stick, and it gets assigned drive sdc10:24
systemdletethe other 2 are the 2TB sata drives, unpartitioned (to the best of my knowledge)10:24
systemdleteblkid and fdisk report null results (no partitions) for those drives10:24
rrqright; .. fdisk -l says so as well.. hmm10:25
systemdletedo you agree this is a bit weird?10:25
systemdleteor at least, inconsistent?10:25
rrqyes.10:25
systemdleteAnd I've installed other distros (included earlier devuans going back to ascii) and never noticed this before, but perhaps I've never installed to virgin disk drives before, idr.10:26
rrqfdisk recognises a fair few partition formats... is this one it doesn't recognize? ... which kernel version do you have10:26
systemdleterrq, whatever comes on the iso.10:26
systemdletebut there shouldn't be any format at this point.10:27
rrqis there a "gdisk -l" on the iso?10:27
systemdletethese are new drives.  The only thing I've done with them is run badblocks to make sure Newegg didn't send me duds10:27
systemdletehold on10:27
systemdletegdisk says it did not find any partition tables on the disk (I only tried one)10:28
rrqok. I'd suggest you run fdisk to define a partition, then reboot to see if the oddity vanishes10:29
systemdleteI am 100% sure that will work.10:29
systemdletebut I can do that.10:30
rrqand then put this story into the "never happened" pile :)10:30
systemdleteI will do it to ONE drive10:30
systemdleterrq, why would I do that?10:30
systemdleteIt DID happen.10:30
systemdleteIt is Happening.10:30
systemdleterrq:  I think maybe the ISO spinners need to know about this so it can be fixed.  It's minor, I know, but incorrect.   We should not be shipping ISOs with these sorts of issues.10:31
rrqright. before "fixing it" could you run an installer-iso to see if it gets confused as well?10:32
rrqrun "Install" (not expert) and then use Alt-F2 at the first dialog10:33
rrqthen check /dev10:33
systemdleteI haven't actually created a partition yet, but get this.  I run fdisk /dev/sda  and it started to run.10:33
rrq?10:34
systemdleteIt printed the first paragraph about changes remaining in memory etc.  But it did not get to the 2nd paragraph, instead it errored out10:34
systemdletesaid it couldn't open /dev/sda !!!10:34
systemdleteBUT10:34
systemdleteI ran it a second time, and it is prompting me for a command.10:34
systemdletewtf?10:34
systemdleteOK, let me try installer iso as you suggest...10:35
systemdlete(have to switch back and forth between machines tied to the same kb and video)10:35
systemdleteis netinstall ok for this?10:37
n4dirsure10:37
n4diras far i can tell, and i am rather sure, the installer really is the same, not matter which installation iso10:37
rrq(yes)10:38
systemdleterrq: same thing10:39
systemdletestill seeing /dev/sd[ab][1234] but fdisk -l shows no partitions10:40
rrqok; I'll try to chase it... sometimes a "destructive" badblocks can do things to MBR which might confuse the kernel... we'll see if I can recreate it10:41
systemdletehmm.  do brand new disks come with an MBR?10:42
rrqwell the bytes are there10:42
systemdleteok...10:42
systemdleteand that would explain the 4 partitions!  DOS mbr.  right...10:43
systemdleteand badblocks scrambled that10:43
systemdleteI think we have found the enemy, and it is us.  I mean, me.10:43
systemdletebut still...10:44
systemdleteudev finds 4 partitions in an MBR, even though fdisk can't seem to do the same.  Of course fdisk and friends are utilities, not kernel, so10:45
rrqdoes "blkid" enumerate the pertitions?10:45
systemdleteno, it shows nothing about them10:45
systemdletethe grand irony of all of this is, I think, the fact that in my first professional job, my first task was to work on the dos disk partitioner for an operating system.10:46
systemdleteSo I should have remembered that... but that was in... uh... 1985?10:47
systemdleteThe engrams in my brain have clearly deteriorated over time.10:47
n4dir tell me about it10:48
rrqhmm "hidden partitions"10:48
systemdleteso udev detects them, but all these utilities do not ( all the ?disk utils and blkid)10:53
systemdletewell, I think I've taken up enough space and time here tonight.  Time for bed.  I'll work on this tomorrow.10:53
systemdletethanks to n4dir  and rrq and fsmithred for your help.  Always appreciate it.10:54
systemdlete(I have a dr appt in the morning, need to get sleep)10:54
rrqnight10:55
systemdletegn10:55
n4dir:-)10:56
al1r4dGe!12:25
ted-ioussystemdlete: Did you figure out why your disks had partitions on them?23:23
ted-iousI wonder what the smart data says for how long the disks have been powered on?23:24
ted-iousMaybe they were used by something else before you got them.23:24
fsmithredted-ious, he said that badblocks messed with the MBR23:30

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