-
StrixS0f
exit
-
rtprio
there is no exit
-
yourfate
welcome to the hotel california
-
Gedge
Your exits are (N)orth and (S)outh >
-
yourfate
eat exit
-
yourfate
having switched to pkgbase I kinda miss running the freebsd-update scripts :D
-
mfisher
haha
-
angry_vincent
anyone has very minimal base system that is enough for poudriere's jail? usually i do have base built from src for my laptop. i also make poudriere jail from /usr/src just verbatim as for the laptop but it might be too big. i do not need many things there ( in a poudriere's jail ), no mans, no docs. i just wonder if there is barebone minimal accepted jail which is enough to build packages
-
bsdrobert
not really but ive been working on a tool that can take an executable, find everything it depends on it, and launches a jail with it. it can also take files.txt and include those in the jail too. So its certainly possible, with a bit of work, and study.
-
eborisch
I ran into pam.d configs getting reset during a pkgbase upgrade to 15.1.
-
eborisch
-
lts
I just thought yesterday about 15.1 being the first bigger pkgbase upgrade and how it'll probably have a bug or two
-
John42
hello
-
rtprio
EHLO
-
CrtxReavr
NO CARRIER
-
spork_css
ATH0
-
spork_css
is there a preferred pastebin for the freebsd channels?
-
sbr
-
sbr
Sorry, I have no idea what that site is, I found it by typing "This paste bin kills cats" and it was the first link
-
sbr
catbin.sh Looks much better
-
rwp
spork_css, There used to be a preferred on in the /topic but the site failed off and now we just use whatever pastebin we happen to use.
bpa.st paste.debian.net are both popular. So are others.
-
rwp
I have a list of 18 pastebin sites in my notes file. Some are undesirable with lots of advertising.
-
spork_css
I'll go with this for now:
bpa.st/JOWQ
-
rwp
spork_css, Is there a question in there?
-
spork_css
my question: da0 and da2 are the exact same model ssd. da2, out of the box, was created by doing "gpart backup da0 > da0-part" and "gpart restore da2 < da0-part"...
-
spork_css
yet da2 for some reason has an extra empty 6 bytes in front of the EFI partition.
-
rwp
Hmm... I would also not expect there to be a difference.
-
spork_css
yeah, I was about to start swapping it in to a pool and didn't like that.
-
rwp
I expect the answer will be that da0 was created using an older version of gpart and da2 created with a newer version is refusing to recreate the original exactly due to some reason.
-
rwp
(Also it is possible to do that on one line. gpart backup da0 | gpart restore -l -F da2)
-
spork_css
nope, da0 setup with the 15.1 installer last week, da2 a few days ago - also I write it out so I can change the labels.
-
rwp
Less room for shenanigans. I would be inclined to do it again and verify there are no errors produced anywhere including /var/log/messages (in case the kernel logged something).
-
rtprio
rwp: i have exactly the same issue
-
rtprio
and i believe i created my mirror the same way
-
rtprio
-
rwp
Hmm... First, I don't know and will be brainstorming right along with you. Like suggesting that one could simply dd the partition table from one device to the other as that should result in an exact copy. Beware of UUID duplication.
-
rtprio
that said, it's in the pool and works fine
-
ek
I was going to mention that it should still work and be fine. But, that is curious that they differ.
-
spork_css
they absolutely should not differ...
-
spork_css
anyhow, here's the full sequence, that includes showing da2 is wiped:
bpa.st/UEMA
-
spork_css
lol, ok, now this is even more confusing:
bpa.st/NSIQ
-
spork_css
(gpart backup of da2 does not show the 6 byte hole)
-
rtprio
what is on 0-40 on the disk?
-
rtprio
anything?
-
spork_css
I assume something to align with the block size? When I manually do this I throw 1MB at the head for some cargo cult reason.
-
rtprio
i feel like that convention is long past needed
-
rtprio
my gpart backups look exactly the same
-
spork_css
but the installer is where da0 came from
-
rtprio
Because modern SSDs and "Advanced Format" HDDs use 4KB physical sectors, partitions must start on a multiple of 8 sectors (since 4096 รท 512 = 8). Sector 34 is not divisible by 8, so gpart rounds up to sector 40, which is the first available 4KB-aligned sector, to prevent severe performance degradation
-
spork_css
I one of these SSDs has like a 67% wear indicator, so that just gets me more agitated about wrong boundaries and write amplification.
-
rtprio
ok, so that _could_ account for your gap
-
ek
spork_css: If you toss in a "dd if=/dev/zero of=/dev/da2 bs=1M count=50" after the "gpart destroy -F da2", does it make any difference?
-
ek
I'd make sure the beginning of that drive was totally wiped before recreation.
-
spork_css
(of note, these drives, other than the new one, were all in a vmware box - so I have no idea of the wear is just me thrashing the thing for years or if vmware/Dell RAID setup did something improper)
-
spork_css
-
ek
spork_css: I'm guessing you're using smartctl to get the wear number(s)? Which wear ID did it give you? Depending on the drive, 67% could be either an indication of what it has done or what is left.
-
spork_css
yeah, very familiar with that. in this case, smartctl is here, but also the host is now running Sylve, which shows those stats in the UI.
-
ek
That is so strange. I just checked all my FBSD ZFS mirror setups on UEFI and I don't see anything like that anywhere. All disks are 100% identical.
-
rwp
I went looking too. All of mine are identical as well.
-
ek
Ah, yes. I am digging Sylve quite a bit. Been testing it out lately. Pretty spiffy.
-
spork_css
the other drives in the pool are all correct, it's just taking one out of the pool and futzing with it, then trying to put it back (long story, but I prefer all my drives in a small array to be bootable, Sylve does not).
-
spork_css
so: buy new smasnug 870 (for $200! - last one was half that), pop it in, do the "I'm just trying Sylve, let's see if I can do a drive swap without leaving the web UI" and while that worked, it also just used the entire disk.
-
ek
If it's supposed to be a bootable array, all drives in it should absolutely be bootable.
-
spork_css
So that new drive is in, working, but not what I want.
-
rtprio
ek: i never had set up an efi partition, i didn't notice that until i updated to 15.1
-
ek
Is it possible this is some kind of bug in 15.1?
-
ek
I'll create a VM with 15.1 and add a secondary, identical "disk" and see if I can reproduce this.
-
spork_css
So I figure I'll fix up da2 (the drive I was originally replacing) with an identical partition layout (hence the gpart backup/restore of da0), swap it back in the array, fix up da4, swap that in, and then I have my new drive in the pool with partitioning that matches the two others (this is raidz-1).
-
spork_css
this isn't in production or anything, really just wanted to get the hell off vmware for home use - all my vmdks and configs are backed up elsewhere.
-
spork_css
Maybe I should see if I can pass da2 as a raw device into a 14.x VM. :)
-
spork_css
But yeah, I just accidentally discovered that 6 byte hole when checking my results of the gpart restore against da0 and da1.
-
spork_css
I gotta run, but definitely checking back in when I come back...
-
glenny1
i am installing FreeBSD on an old laptop to learn and experiment with. i read the differences between ZFS and UFS and think UFS is best for my use case. am i correct?
-
CrtxReavr
Probably.
-
LXGHTNXNG
Both will work fine, but if you have under 2GB of RAM, ZFS is more poorly-behaved.
-
lts
ZFS benefits on a single disk system are few. Go with UFS
-
CrtxReavr
I see no point in using ZFS unless you're essentially doing software raid on a machine with multiple of the same sized hard drives.
-
glenny1
thanks everyone. that is what i thought
-
isley
compression? clones? error detection?
-
LXGHTNXNG
I use ZFS on my single-disk laptop where I dual boot with Linux (which I'm currently in because I had a breakup with FreeBSD at the edge, again)
-
CrtxReavr
Yeah, the rule of thumb for ZFS is 1 GB per TB of raw disk space, on top of what you're OS & applications require.
-
LXGHTNXNG
I heard that was only for deduplication
-
CrtxReavr
s/you\'re/your
-
lts
+1 for deduplication only
-
LXGHTNXNG
and that the minimum RAM was 2GB otherwise
-
nimaje
CrtxReavr: that rule of thumb applies to deduplication
-
nimaje
you can use zfs with 512MB of RAM for the system, but that requires a bit of tuning, not sure about between 512MB and 2GB
-
wavefunction
Probably overkill, but I run zfs on two single-disk pools and third pool of two external drives (mirrored). Makes it quite nice if I ever want snapshots or to move to a new disk relative to UFS
-
ek
Haha. Of course dvl already ran into the "3.0K before efi free" thingy:
dan.langille.org/2025/11/20/gpart-b…ot-alway-give-you-exact-replication
-
dvl
Yes. Yes, I did. I'm there for you.
-
dnp1
Slight typo in the article title
-
ek
dvl: As always!
-
ek
With the last mention of the "What gives?", did you ever get an answer?
-
ek
What is the actual explanation for this?
-
dvl
ek: What brought you there?
-
dvl
dnp1: And the correction?
-
dvl
ek: I think the PR is the only explanation I got.
-
dvl
always not alway
-
dvl
fixed. thanks.
-
ek
dvl: Not sure how far back your buffer goes, but spork_css was here earlier asking about the same thing and rtprio said he saw the same thing.
-
dvl
huh
-
ek
All mine match on my EFI systems so I started to poke around. Spun up a VM and then added a secondary disk to gpart restored it and also saw the same thing.
-
dvl
[Jun 29 14:31] <spork_css> yet da2 for some reason has an extra empty 6 bytes in front of the EFI partition.
-
ek
So, a quick online search pointed me to your page, of course.
-
ek
Yep. That same 6 bytes (3.0K) free buffer in from of EFI partition. Very strange.
-
ek
But, if I do a fresh install and mirror the disks then, they are the same. So, this is definitely a gpart backup/restore thing.
-
ek
And, it's fine, I guess. Everything still works. Just weird to not see an actual mirrored partition table.
-
ek
Kinda throws you off.
-
dnp1
dvl: Sorry, got distratcted, but see you found it.
-
spork_css
re: ZFS I run a number of VPS' that have 512MB and zfs and I have zero issues. I'd also hate to have a laptop where I have to wait on a lengthy fsck if it gets an unceremonious shutdown...
-
spork_css
I think that there's a lot of very old ZFS info floating around the internet (I did run it as far back as 8.x and, yes RAM was an issue then).
-
spork_css
So the folks in charge say this bug in gpart isn't a bug to worry about is that the gist?
-
spork_css
I don't like that because I feel like one of the most basic troubleshooting tools I have, esp. when wandering into something new is "comparing two things" and a tool that in some part of that comparison shows me they are not the same when they are... kind of hate that.
-
ek
-
ek
If you wiped da0 and restored from da2, they would then match with the 3K free before the EFI partition.
-
ek
So, I think what will need to happen is whatever gpart is doing when restoring needs to be done during the initial install as well.
-
ek
Not sure why that isn't the case right now.
-
spork_css
ek: that comment on the commit leaves me more confused, it sounds like they opt to *not* maintain the 512B/4K boundary which seems odd.
-
spork_css
Anyhow, I'll nuke it and then do partitions by hand one-by-one to see if that works correctly.
-
ek
spork_css: Yeah. That's what it sounds like to me.
-
ek
I'm quite certain a manual partition will work just fine.
-
spork_css
that backup/restore thing has been my go-to method whenever I add more drives to an array. :(
-
spork_css
I don't know who runs this site, but this page is nice - I never really touched EFI ("UEFI" now I guess?) and the handbook just never mentions how to create that - this kind of reminds me of a (now) outdated page from wblock that brought all the disk partitioning stuff together in one place:
freebsdsoftware.org/blog/freebsd-disk-management.html
-
spork_css
Even the most recent server haul, which I think was 2023-ish, all the supermicro boxes we bought obviously fully support UEFI, but I just stuck with old-timey BIOS as I didn't have the time to poke at UEFI (most importantly recovery should something go wrong).
-
spork_css
Kind of amazed that in 2026 we still gotta deal with FAT32, and on *nix machines no less! :)
-
rtprio
i don't think we'll ever not deal with it
-
rtprio
efi is here to stay
-
glenny1
i didn't add primary user to wheel group. useradd command doesn't seem to exist. logged in as root
-
glenny1
to wheel group at install*
-
glenny1
sorry usermod*
-
LXGHTNXNG
`pw usermod`
-
LXGHTNXNG
`man pw` for more info. no, idk why it's not split up.
-
rtprio
you can also yolo and add your username after `wheel:*:0:root,glenny` in /etc/group
-
glenny1
thanks
-
spork_css
rtprio: oh yeah, I know - I also had the misfortune of running some old IBM servers from the early days of EFI and the pre-boot time in EFI mode was like 10 minutes to the OS boot start (BIOS mode was a bit more normal), so I just kind of figured "I'll get back to this one day when this is less crazy". :)
-
rtprio
i was frustrated as i had several practice installs in efi mode / bios mode and bios settings on my new to me r730
-
spork_css
this old Dell R-720 I'm experimenting on though is about 3:30 pre-boot in either mode, so I guess boot time isn't an excuse.
-
rtprio
because several combos didn't work
-
rtprio
oh yes, those lifecycle controllers, whatever they do, are slow as balls
-
spork_css
Although that whole "EFI firmware crashes" thing from the other day is very annoying - and it leaves that sort of open question of "if the EFI firmware is crashing all the time, isn't something wrong somewhere?".
-
spork_css
I've been meaning to google the "Lifecycle Controller" bit because I suspect it does nothing for me, esp. for a home lab server and I noticed somewhere in the bios setup there's an option to disable it.
-
spork_css
ek: lol, rofl even...
bpa.st/LZWQ
-
rtprio
spork_css: something looks not quite right
-
spork_css
I'm guessing working off the "gpart backup" is my mistake (I hope).
-
glenny1
i don't know why but at boot the system is connecting to some other wifi network
-
spork_css
funny part is that doing a "gpart backup" on da0 and da2 with the above results spits out a *matching* backup. So yeah, I guess it's just fuzzying things up...
-
spork_css
glenny1: I'm just futzing around here, so I'll shut up while you work through an actual problem. :)
-
glenny1
the /etc/wpa_supplicant.conf is configured correctly as well
-
glenny1
spork_css: sorry :(
-
spork_css
no, no - I'm apologizing to you!
-
glenny1
ok, the interface went down...did ifconfig interfancename up and now it is connected properly...
-
glenny1
i don't think i did anything and the problem corrected itself???
-
glenny1
i still get an error message at boot but it's connecting to the correct wifi now