-
markmcb
on the flip side, there's a few man pages that get into some scenario-based examples, e.g. geli(8), but don't quite go far enough on the full scenario (which would probably be too much for a man page)
-
meena
the thing with wikis is that they are everything for everyone, and so it ends up very cluttered and often outdated, because it might have been used only for prototyping
-
markmcb
meena, agreed. i could imagine a curated, limited scope wiki. or maybe not even a wiki, but something that's a little more fluid and less formal.
-
meena
markmcb: if something is worthy of a docs chapter, we try to put it there, but i agree that easily findable / searchable community docs that are less formal and more goal driven would be very beneficial
-
meena
(and i also have no idea how to achieve that)
-
markmcb
totally. sesutil is a great example. not worthy of a chapter, but it's a useful quick mention, and exposes a great simple tool that someone might find really handy. it's also a good way to point people in a direction and dispell bad info. i saw in a forum people talking about no equivalent to hdparm's secure erase in linux. i was really disappointed. then i found camcontrol secuity on my own by
-
markmcb
chance while looking for something else.
-
markmcb
maybe i'll hack on a prototype doc and get feedback. i took a bunch of notes when i was figuring things out.
-
meena
markmcb: that's fantastic. i hope you corrected that forum post!
-
-
VimDiesel
Title: confctl(1)
-
grahamperrin
Ah, the in-page link to sysctl(8) does not work because the URL is ports-specific
-
meena
what config files look like that?
-
grahamperrin
% confctl -a /usr/local/etc/pkg/repos/FreeBSD.conf
-
grahamperrin
FreeBSD:.url:="pkg+http://pkg0.fra.freebsd.org/${ABI}/latest",
-
grahamperrin
FreeBSD:.priority:=4
-
grahamperrin
%
-
grahamperrin
confctl -a /boot/loader.conf
-
grahamperrin
confctl -a /etc/sysctl.conf
-
grahamperrin
… and so on.
-
kevans
trasz/confctl e84c851 i feel like this overcomplicated the problem
-
VimDiesel
Title: Use asprintf(3) in a Linux-compatible way. · trasz/confctl@e84c851 · GitHub
-
kevans
pretty sure glibc's asprintf probably just doesn't modify `*newprefix`, so really probably just needed to initialize it to NULL in confctl.c
-
kevans
i'd be surprised if it trashes the pointer on failure
-
meena
kevans: maybe it did back then?
-
vhns
Does the FreeBSD installer not have a timeout configured for whenever it tries to fetch files from one of the mirrors? I think the
ftp://ftp2.br.FreeBSD.org/FreeBSD is down/not working, so I've been stuck on this screen for a while now:
upload.lurkmore.com/z/OjjvNSYL.png
-
vhns
I cancelled the install and switched to the default/first mirror in the list and it's working fine now.
-
markmcb
i noticed the default /etc/pkg/FreeBSD.conf shows pkg+http (vs. pkg+https). Any reason it doesn't default to a more secure transport? i didn't see any rationale in pkg.conf(5)
-
RhodiumToad
may have been related to the historical lack of certificate management in base
-
RhodiumToad
package signatures are checked regardless, I believe
-
kevans
yeah, the default repo's all signed
-
kevans
there's been some discussion about switching it to https
-
kevans
oh, he actually submitted a review for it, even:
reviews.freebsd.org/D40473
-
VimDiesel
Title: ⚙ D40473 pkg: use https by default
-
markmcb
nice, thanks
-
sozuba
Based on this ->
gnu.org/software/grub/manual/legacy/FreeBSD.html Grub can launch freebsd kernel, but not advised.and since grub can decrypt luks1, with limited luks2 support, is there any restritions for using a luks encrypted boot partition on freebsd?
-
VimDiesel
Title: FreeBSD - GNU GRUB Manual 0.97
-
tsoome
sozuba if it is what you need and it does work, no problem. Otherwise, I'd suggest to use native tools - just because the native tools have better support.
-
meena
sozuba: We have no LUKS in FreeBSD. maybe in ports, but not in Base
-
meena
-
VimDiesel
Title: FreshPorts -- devel/libluksde: Library and tools to access LUKS Disk Encryption encrypted volumes
-
sozuba
tsoome: i would love to use native tool, but due to my previous PR (271938) of excessive heating, I am not able to use Freebsd freeley yet. So I have planned to dual boot, with the usual encrypted setup i have for linux and using the same for freebsd. This way i can continue my work and stuff,while also trying towork on the PR.
-
meena
-
VimDiesel
Title: Chapter 19. Storage | FreeBSD Documentation Portal
-
meena
sozuba: grub uses chain boot loading, so this should just work
-
sozuba
meena: thanks for the link. Best way is to find a middle ground, so i can use grub to boot the loader and not freebsd kernel.
-
sozuba
meena: yup chainboot is what i was thinking
-
sozuba
thank you very much
-
tsoome
dual boot is perfectly good use case. and yes, in general, we do suggest chain loading (first boot loader starting other boot loader) and less direct loading.
-
tsoome
problem with using grub to load and start fbsd kernel directly is about corner cases - if you need to load some specific module with kernel, some configuration details etc.
-
sozuba
yup, understood. I mostlikely will use freebsd loader to boot freebsd kernel, whil using grub to chainload freebsd loader
-
sozuba
thanks tsoome and meena for your imputs ad advise :)
-
tsoome
btw, is this machine doing BIOS boot or UEFI boot?
-
sozuba
i 100 GB enough for freebsd parition thatmight include src ports, etc for debugging and may be development?
-
sozuba
i don;tplan to use freebsd for anything else until this is sorted
-
tsoome
yes, 100G should be good.
-
sozuba
tsoome: UEFI
-
tsoome
aha, ok, I haven't tested chainloading loader.efi from grub, so it would be interesting to hear back how it is behaving;)
-
sozuba
Will definitely post back results and experience once done
-
parv
I am having a real bad time with installworld step (14-CURRENT) when trying to update from 1cebc9298cf to b98fbf3781 (or from 9fbeeb6e3831 tofacc213643f8 or dfa1982352ee on a different host). The error is of "missing cc" during "installworld. Some log from the first attempt:
termbin.com/f2eh
-
parv
/etc/{make,src}*conf:
termbin.com/7j8kb
-
parv
bugs.freebsd.org/bugzilla/show_bug.cgi?id=269366#c1 hints at change in source or build option but that did not happen
-
VimDiesel
Title: 269366 – installworld calls cc breaking nanobsd build
-
parv
... just noticed "ERROR-tried-to-rebuild-during-make-install" in there; searching on that
-
parv
Log of "installworld" failure on another host from 9fbeeb6e3831 to dfa1982352ee :
termbin.com/74je ; /etc/{src,make}*conf:
termbin.com/c8ll
-
yuripv
what about buildworld, did it finish successfully?
-
parv
Yes, I did not see any error messages.
-
parv
buildworld && kernel completed without issues
-
parv
(also emailed -current@ list)
-
yuripv
it says something about ccache, misconfiguration?
-
martinrame
Hi, I created a Bhyve VM (Ubuntu guest) using vm bhyve. The machine has grub as default boot loader, but it doesn't boot after installing, to boot it I must type a series of commands (set prefix..., set root.., insmod ..., normal) to let if boot. Can anyone help me saving those commands to let grub boot automatically?
-
parv
yuripv, Hmm; ok will try soon without ccache
-
parv
yuripv, Did you imply the "sh: cc: not found" message?
-
parv
Need to leave for now ...
-
adilix
hi all
-
CmdLnKid
yo
-
thedaemon
'lo party people
-
sozuba
Booted up the memdisk, wanted to do a manual install, do "gdisk destroy ada0", i get device busy. Mount doesn't show ada0 being mounted.what ami missingor doing wrong?
-
RhodiumToad
gdisk? I see no such command
-
sozuba
gpart*2~ sorry habbit
-
sozuba
"gpart destroy ada0"
-
RhodiumToad
you're trying to wipe the partitioning on ada0?
-
sozuba
yes
-
sozuba
clean whipe the device
-
RhodiumToad
what does geom -t show
-
sozuba
but for now just using gpart without dd
-
sozuba
-
RhodiumToad
hm, that doesn't look like it should report as being busy
-
sozuba
This is Freebsd 14-CURRENT
-
sozuba
jfyi
-
RhodiumToad
oh I know, destroy only works without -f if all the partitions are deleted first
-
RhodiumToad
so gpart delete -i4 ada0 and so on down to -i1
-
sozuba
ah okay. Got it, Thanks :)
-
meena
we need an -rf here, for extra danger
-
RhodiumToad
just -f is dangerous enough :-)
-
RhodiumToad
sorry it's -F
-
sozuba
-rf is recursive force? :D
-
RhodiumToad
(-f is already claimed for -f flags)
-
sozuba
okay
-
RhodiumToad
(it's possible to have recursive partition tables but most combinations require a sysctl to enable)
-
sozuba
worked,now i can peacefully test/playaround
-
sozuba
okay
-
RhodiumToad
in particular you can't have a gpt table anywhere other than directly on a physical disk without turning on an option for it
-
RhodiumToad
(an option I added, because I wanted to do some VM stuff)
-
sozuba
honestly,my recursive was a rhetorical question, cause meena said -rf
-
sozuba
but now i am curious."Recursive partition table"? sounds cool
-
sozuba
is it like haveing a partition table inside partition table, like having lvm on luks on gpt?
-
RhodiumToad
well in my case what I wanted was to use a raw gpt partition as a VM backing volume, and obviously installing the VM would put a partition table on that volume
-
RhodiumToad
and I wanted to get at the partitions from the host
-
RhodiumToad
hence the kern.geom.part.gpt.allow_nesting (off by default)
-
RhodiumToad
and likewise kern.geom.part.allow_nesting for other partition schemes
-
RhodiumToad
don't turn them on unless you have a similar use-case to mine :-)
-
sozuba
got it.This is interesteing. But i amnot going to try it.I alreayd have my plate full, don;t want more compications :)
-
sozuba
thanks RhodiumToad
-
sozuba
following
wiki.freebsd.org/RootOnZFS/GPTZFSBoot for manual partition. Is it madatory for freebsd-zfs root partition to have disk0 as the label? This is the first time i amusing zfs
-
VimDiesel
Title: RootOnZFS/GPTZFSBoot - FreeBSD Wiki
-
RhodiumToad
no.
-
sozuba
cool, thanks :)
-
RhodiumToad
there's some merit in not putting labels on zfs partitions
-
sozuba
why so?
-
sozuba
-
VimDiesel
Title: Labeling partitions done right on modern computers. | The FreeBSD Forums
-
RhodiumToad
(I normally think labels are a good idea since they're a form pf metadata easily visible to non-freebsd tools, but for zfs the drawbacks may outweigh that)
-
sozuba
'drawbacks', now my mind is focused onto your next words
-
RhodiumToad
so that article tries to draw a distinction between gpt labels and geom labels. this is incorrect
-
sozuba
oh
-
RhodiumToad
the LABEL geom class is responsible for both.
-
sozuba
okay
-
RhodiumToad
LABEL recognizes two types of labels
-
sozuba
in liux i mostly dealt with uuid for fstab
-
RhodiumToad
explicit labels, created by glabel label, which live at the end of a provider (reducing its size) which show up in /dev/label
-
RhodiumToad
and implicit labels, which are obtained by examining the content of a provider. This govers GPT labels (found from the GPT partition table), filesystem labels (found by looking for "volume label" metadata in UFS, FAT etc. filesystems), and so on
-
RhodiumToad
(also disk serial number labels, GPT uuid labels, etc.)
-
RhodiumToad
so the problem with zfs is this:
-
RhodiumToad
zfs recognizes disks by content, not by name. it doesn't care what name you used when adding a disk to a vdev or whatever.
-
RhodiumToad
and that means it doesn't see any reason not to attach the disk using the label rather than the partition name; it'll do whichever one it tries first
-
meena
-
VimDiesel
Title: 271989 – zfs root mount error 6 after upgrade from 11.1-release to 13.2-release
-
RhodiumToad
no
-
RhodiumToad
though with that bug, note that zfs doesn't as far as I know limit itself to searching in freebsd-zfs partitions
-
RhodiumToad
it'll find zfs metadata _anywhere_
-
sozuba
tocontinue what you were saying, if we have labels, it will try that first?
-
sozuba
so in relation to what meena shared, having labels lying around (example the nug meena shared), can cause boot issues?
-
sozuba
or be adverse,even if noissues
-
RhodiumToad
it usually won't try the label first
-
sozuba
also, a follow up question, is it better to not have labels at all on any type of fs / partition? like on fat32 / efi?
-
RhodiumToad
but sometimes it might, which is confusing
-
sozuba
understood
-
RhodiumToad
no, it's only really zfs that is a problem here
-
sozuba
got it. I'll keep that in mind.
-
RhodiumToad
for other filesystems you can use a gpt label, a filesystem label or both
-
RhodiumToad
the other cases that don't like gpt labels are gmirror and gstripe
-
sozuba
Honestly, interactig with you, i learn a lot. This is some good knowledge that comes mostly through experience. Thank you for Sharing, I really appriciate it. And thanks meena :)
-
sozuba
i only ever used mirror and stripe once.and had no use case, but i might going forward
-
» meena is always here for you to ruin your day with bugs she found in #freebsd-bugs
-
sozuba
a few month down the line
-
meena
but i also often share exciting commits!
-
sozuba
so this looks okay then? gpart add -a 1m -s 100G -t freebsd-zfs ada0
-
sozuba
meena: haha, good for you and for the community. Would be great if you could add somecommits for the PR i rasied :P :D
-
meena
I don't have a commit bit, and i am generally not allowed near hardware, for danger of it exploding
-
sozuba
na, hardware willbe fine. You seem nice :)
-
RhodiumToad
sozuba: that command looks reasonable to me
-
meena
-
VimDiesel
Title: FreeBSD / src / bcf9147 / EC2: Default to "uefi-preferred" boot mode - FreshBSD
-
RhodiumToad
1m is perhaps more strict an alignment than is really necessary, but not a problem
-
sozuba
thanks, i laready entered :-p and therewa no explosion, so good :)
-
meena
-
VimDiesel
Title: 264697 – FreeBSD 13 AWS AMI can not use free tier because t2 instance cannot use UEFI boot
-
meena
So, soon ™ we can use freebsd for free on aws!
-
Erhard
You can use it on Oracle Cloud free tier now.
-
Erhard
x86 and Arch64
-
Erhard
Aarch64 even
-
Rayyan
free??
-
meena
ooohhb
-
Erhard
Absolutelyf free
-
Rayyan
how does that work :P
-
Erhard
I have three VPSes on Oracle free
-
meena
nice, all you have to do is sign in blood here: _________
-
Erhard
two are single core amd64 and the other is a 4 core Ampere with 24Gigs of ram
-
meena
how is that free??
-
Erhard
Been running for two years now.
-
Rayyan
sounds slightly dodgy
-
Rayyan
what's on it for them
-
Erhard
It's part of their free tier.
-
Erhard
Get people used to ORacle cloud.
-
Erhard
So they are mor elikely to deploy there.
-
Erhard
Same reason AWS does it.
-
meena
I need to get to testing it
-
Erhard
I use them for Wireguard servers for road warrior vpns.
-
Erhard
I use one as an additional name server.
-
Rayyan
sounds like I need to get myself signed up
-
Erhard
Been very reliable. YOu get emails if there are any issues, just like a paying customer.
-
Rayyan
they must be losing a lot of money
-
sozuba
termbin.com/tqug <- ami doing something wrong, why is there a freespace between efi and swap?
-
Erhard
I doubt it. That is so little resources for them
-
meena
our blood now belongs to Larry Ellis
-
Erhard
You are not allowed to use it for mining or anything.
-
Erhard
But, like I said I use one every day as a VPN for my phone.
-
RhodiumToad
sozuba: what command did you use to create the swap partition?
-
sozuba
RhodiumToad: gpart add -a 1m -s 15G -t freebsd-swap -l swap0 ada0
-
RhodiumToad
sozuba: so the gap is there because of the 1M alignment
-
sozuba
-
VimDiesel
Title: RootOnZFS/GPTZFSBoot - FreeBSD Wiki
-
RhodiumToad
sozuba: remember the GPT table itself takes 20 kbytes
-
meena
Erhard: i need to see how cloud-init does on Oracle cloud then. Today i saw my code run for the first time in vultr. that was exciting
-
sozuba
so to not have that, i shouud remove that 1M alignment for swap?
-
Erhard
I have not tried cloud-init
-
RhodiumToad
or make the efi size 20K less than a multiple of 1M
-
Erhard
I installed manually.
-
sozuba
fair point, will do. Thanks :)
-
Erhard
I think I had to use the trial period credits to actually send the ISO over there.
-
Erhard
Since I think ISO storage is not included for free, but you at least sued to get a month or $100 or something for free
-
Erhard
s/sued/used/
-
sozuba
Erhard: didn'tknow oracle had a freetier. Is there any other freetier stuffs? :D
-
Erhard
AWS had a free year, not sure if they still do.
-
meena
Erhard: pkg install -y net/cloud-init-devel # for my bleeding edge commits
-
cpet
azure still gives you a nice 200 bucks to spend
-
Erhard
-
Rayyan
aaa the Reddit blackout makes me realise just how much info it has
-
Erhard
So yeah you get $300 to use within 30 days as well.
-
Erhard
Get all your stuff setup with isos within that period.
-
sozuba
Rayyan: yup, evey questio i find an answer to on reddit makes me realize it
-
sozuba
nice info, thanks
-
cpet
so people are butt hurt cause they can use 3rd party apps without the reddit stuffs on it
-
cpet
let it go with the dodo and twitter its ok
-
Erhard
Just ask ChaGPT, since it scraped it all anyway ;-)
-
sozuba
Erhard: hahahaha :)
-
cpet
I see let us have a word with this chatgpt
-
rwp
sozuba, The other day we were chatting about power management and parv posted these two links after you had already parted the channel. I don't know if you saw them but I wanted to point you to them as I found them interesting.
-
rwp
-
VimDiesel
Title: Optimizing FreeBSD Power Consumption on Modern Intel Laptops -
-
RhodiumToad
iirc sozuba's laptop is an older one
-
sozuba
rwp: That'svery thoughtful of you. Thank you and to parv. I'll checkthem out now
-
sozuba
Ah, like RhodiumToad said mine is a haswell laptop. But again, its good to read about it, :)
-
sozuba
Does gpart use 1024 or 1000 units?
-
rwp
IIRC everything in computers are binary powers of two but I am sure the man page for gpart will clarify.
-
sozuba
i looked ar the man page, couldn't find it
-
sozuba
will check again
-
sozuba
thanks
-
RhodiumToad
afaik gpart uses only binary units
-
RhodiumToad
(SI can go fsck themselves)
-
sozuba
hahaha, same here :D
-
sozuba
but a discussion on binarry over SI would be good one day, without flamewars.
-
mason
I despise computer numbering based on how many figures are most common on a human.
-
mason
s/figures/fingers/
-
rwp
Disk drive manufactures found powers of 10 to be a marketing breakthrough for them. Numbers appear larger that way.
-
RhodiumToad
and progressively larger as sizes increase, even
-
rwp
Right. It would have been much more awesome if we had 12 fingers because multiples there are much more interesting.
-
RhodiumToad
12 is indeed a superior highly composite number
-
rwp
I can't mentally understand naming the Babylonian base 60 numbers but having a large number of integer factors is a huge benefit.
-
sozuba
I grew up learning binary, and feel awakaward using SI,simple as that. My natual intuition when it comesto bits is always binary
-
RhodiumToad
binary units make sense for storage, since it corresponds to the number of bits in the address
-
rwp
I think if the people pushing that computers should use powers of 10 were to do some actual engineering work developing one that they would change their minds pretty quickly.
-
RhodiumToad
not so much for communications channels, where you're measuring a frequency, typically
-
RhodiumToad
who is pushing for computers to use powers of 10?
-
Erhard
Yeah, I think that only applies to people dealing with 8bit bytes, or at least power of 2.
-
RhodiumToad
the units purists push for binary units to have ridiculous names, not that they not be used
-
Erhard
Pretty much every other engineering would likely benefit from powers of 10 only.
-
xtile
It is important for kilo and kibi to be distinct.
-
» RhodiumToad disagrees
-
xtile
Otherwise how do you know which is which and when? By memorization and convention?
-
xtile
It adds complexity to not use kibi
-
rwp
RhodiumToad, There are endless requests for things like df which says "42G" to say "42GiB" now instead. For example. Adding two extra characters to the display. And breaking decades of scripts that are handling the traditional format.
-
Erhard
More important for kibi and kibbeh to be distinct.
-
xtile
I have a terrible memory, memorizing things is hard
-
RhodiumToad
storage should be measured in binary units, period, and the fact that drive manufacturers inflate their sizes for marketing reasons should not be permitted to interfere with this
-
xtile
Agreed.
-
Erhard
Agreed. Megabyte is always 1,048,576 bytes
-
Erhard
"ebi" or "ibi" anything can kiss my bits.
-
sozuba
Initially when this mebibyte came about, it not only sounded silly, but seemed ridiculous
-
Erhard
No past tense to that
-
sozuba
i was like, "what? Mebi?" it's childish
-
sozuba
Erhard: fair point
-
RhodiumToad
and kibi is even worse
-
xtile
It's unambiguous.
-
rwp
RhodiumToad, When it comes to serial protocols that is somewhat different. Since it isn't a physical thing. It's a possibly infinite stream and so units are truly arbitrary there.
-
xtile
why force people to play guessing games?
-
sozuba
Kibi sounds like a cute little creature that you can pet around
-
Erhard
Kibbehbits... It's what's leftover at the Lebanese restaurant... not a measurement.
-
xtile
Maybe to someone from another part of the world 'kilo' sounds cute and childish.
-
xtile
Saying mebi and kibi sound childish is top "I'll design the logo" energy.
-
RhodiumToad
they still break scripts though
-
Erhard
My scripts have scripted breaks.
-
sozuba
hahaha
-
sozuba
xtile: fair point
-
Erhard
They usually look like: Segmentation Fault (core dumped_
-
sozuba
but honestly that's how it felt to me
-
» xtile nods.
-
sozuba
anyway, i gota go guys
-
Erhard
Later
-
sozuba
good chatting with you all. And thanks for the knowledge
-
sozuba
have a great day evening night
-
sozuba
later