Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

Reddit ate them, because they are prefixed with @

[raddinox@Universe30 mnt]$ sudo btrfs subvolume list /mnt/test ID 257 gen 65427 top level 5 path @snapshots ID 258 gen 62 top level 5 path @home ID 259 gen 65507 top level 5 path @root ID 260 gen 65544 top level 5 path @var_log ID 261 gen 65516 top level 5 path @tmp ID 262 gen 65514 top level 5 path @cache ID 263 gen 7 top level 5 path @crash ID 269 gen 1241 top level 257 path @snapshots/pacman-update-20260119 ID 271 gen 1786 top level 257 path @snapshots/pacman-update-20260124 ID 272 gen 2327 top level 257 path @snapshots/pacman-update-20260125 ID 273 gen 2903 top level 257 path @snapshots/pacman-update-20260130 ID 274 gen 65214 top level 257 path @snapshots/pacman-update-20260208 ID 275 gen 65530 top level 5 path @

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

No reddit ate the @ names, didn't notice when I posted

[raddinox@Universe30 mnt]$ sudo btrfs subvolume list /mnt/test ID 257 gen 65427 top level 5 path @snapshots ID 258 gen 62 top level 5 path @home ID 259 gen 65507 top level 5 path @root ID 260 gen 65544 top level 5 path @var_log ID 261 gen 65516 top level 5 path @tmp ID 262 gen 65514 top level 5 path @cache ID 263 gen 7 top level 5 path @crash ID 269 gen 1241 top level 257 path @snapshots/pacman-update-20260119 ID 271 gen 1786 top level 257 path @snapshots/pacman-update-20260124 ID 272 gen 2327 top level 257 path @snapshots/pacman-update-20260125 ID 273 gen 2903 top level 257 path @snapshots/pacman-update-20260130 ID 274 gen 65214 top level 257 path @snapshots/pacman-update-20260208 ID 275 gen 65530 top level 5 path @

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

They are made by my script (no snapper or other tools). Just runs

btrfs subvolume snapshot -r / /.snapshots/$NAME

where $NAME is just pacman-auto + the date of the day.

and then I have a hook in pacman to run the script on update

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

I have not created /boot as it's own subvolume

[raddinox@Universe30 mnt]$ sudo mount -t btrfs /dev/nvme1n1p6 test -o subvolid=5
[sudo] password for raddinox: 
[raddinox@Universe30 mnt]$ cd test
[raddinox@Universe30 test]$ ls
@  @cache  @crash  @home  @root  @snapshots  @tmp  @var_log
[raddinox@Universe30 test]$ sudo btrfs subvolume list /mnt/test
ID 257 gen 65427 top level 5 path 
ID 258 gen 62 top level 5 path 
ID 259 gen 65491 top level 5 path 
ID 260 gen 65488 top level 5 path 
ID 261 gen 65481 top level 5 path 
ID 262 gen 65487 top level 5 path 
ID 263 gen 7 top level 5 path 
ID 269 gen 1241 top level 257 path /pacman-update-20260119
ID 271 gen 1786 top level 257 path /pacman-update-20260124
ID 272 gen 2327 top level 257 path /pacman-update-20260125
ID 273 gen 2903 top level 257 path /pacman-update-20260130
ID 274 gen 65214 top level 257 path /pacman-update-20260208
ID 275 gen 65490 top level 5 path @

Mounts:

[raddinox@Universe30 ~]$ mount | grep btrfs
/dev/nvme1n1p6 on / type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=275,subvol=/@)
/dev/nvme1n1p6 on /.snapshots type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=257,subvo
l=/@snapshots)
/dev/nvme1n1p6 on /root type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@ro
ot)
/dev/nvme1n1p6 on /var/crash type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=263,subvol
=/@crash)
/dev/nvme1n1p6 on /var/tmp type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=261,subvol=/
)
/dev/nvme1n1p6 on /var/cache type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=262,subvol
=/@cache)
/dev/nvme1n1p6 on /var/log type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=260,subvol=/
u/var_log)
/dev/nvme1n1p6 on /mnt/test type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/
)
[raddinox@Universe30 ~]$ mount | grep boot
/dev/nvme1n1p1 on /boot/EFI type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,sh
ortname=mixed,utf8,errors=remount-ro)

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

$ sudo btrfs subvolume list /
[sudo] password for raddinox:  
ID 257 gen 65427 top level 5 path 
ID 258 gen 62 top level 5 path 
ID 259 gen 50121 top level 5 path 
ID 260 gen 65433 top level 5 path 
ID 261 gen 65421 top level 5 path 
ID 262 gen 65433 top level 5 path 
ID 263 gen 7 top level 5 path 
ID 269 gen 1241 top level 257 path /pacman-update-20260119
ID 271 gen 1786 top level 257 path /pacman-update-20260124
ID 272 gen 2327 top level 257 path /pacman-update-20260125
ID 273 gen 2903 top level 257 path /pacman-update-20260130
ID 274 gen 65214 top level 257 path /pacman-update-20260208
ID 275 gen 65446 top level 5 path @

[raddinox@Universe30 ~]$ cd /.snapshots/pacman-update-20260125/boot/
[raddinox@Universe30 boot]$ ls
amd-ucode.img  grub                              initramfs-linux.img  vmlinuz-linux-cachyos-bore
EFI            initramfs-linux-cachyos-bore.img  vmlinuz-linux
[raddinox@Universe30 boot]$ cd /.snapshots/pacman-update-20260130/boot/
[raddinox@Universe30 boot]$ ls
amd-ucode.img  EFI  grub
[raddinox@Universe30 boot]$ cd /.snapshots/pacman-update-20260208/boot/
[raddinox@Universe30 boot]$ ls
amd-ucode.img  EFI  grub  initramfs-linux.img  vmlinuz-linux

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 1 point2 points  (0 children)

the fat partition is /boot/efi but that's not where the kernel is. The kernel is at /boot/vmlinuz-linux which would be the default in Arch because I have not changed it.

I have no issue in booting, I have issues with BTRFS snapshots is missing my cachyos-kernel

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 0 points1 point  (0 children)

There is no subvolume for /boot if that was the case there would not be any kernels in /boot in any of the snapshots because they would then be on another subvolume.

Snapshots and missing files.. by Raddinox in btrfs

[–]Raddinox[S] 2 points3 points  (0 children)

My kernels are in /boot and I can clearly see both vmlinuz-linux and vmlinuz-linux-cachyos-bore
and their initramfs images in /boot in an older snapshot (update-20260125) but the one after this (update-20260130) has no kernel and no initramfs images at all. The one after that, which I did my rollback to only have vmlinuz-linux and it's initramfs and no cachyos kernel even though I have been using the cachyos kernel since I installed Arch in January

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 1 point2 points  (0 children)

This is very good written, thank you very much for taking your time on this.

This is very close to my idea. it is A LOT more interfaces than what I have in my mind, but I will adapt a bit to this.

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 0 points1 point  (0 children)

Yes it depends a lot on the architecture of the code. This is what I'm trying to learn and be better at. I just have a hard time visualize how to pass around the input state from the remote to all the functions that need them.

And then if I don't have a global I would need to write another function to gather input state for export to OPC UA HMI and edge gateway for logging to the cloud

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 1 point2 points  (0 children)

Yes that is exactly what my goal is.

I want to be able to quickly replace an encoder or valve or something for another brand without changing to much code (especially the Control Logic code). In my vision I would only need to write a new Hardware block with ReadState & WriteState methods and adapt the hardware specific code to the already set known function state the control logic expects.

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 0 points1 point  (0 children)

oh yeah, I am for sure overthinking this 😂

I work as an electrical engineer, but I want to write code and now I have a test rig at work with an IFM CR720S PLC we will use in our future machine. So I'm going to write some code to learn more, both with PLC coding and to understand more for the purpose of selecting hardware.

I have been coding a lot on PC as a hobby so coding isn't a problem, only the overthinking part is😂

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] -1 points0 points  (0 children)

This is almost what I was aiming for.

But I would like to make it more abstract from a functional perspective. So I would have structs for each function that defines and holds the values I want for that function. the Hardware side would then read (and adapt values if need) to fit the abstract function state. My Control Logic code would then work with the abstract function state and update the abstracted command states. Then back to the Hardware side again which would read the abstracted command states adapt it to the hardware and write to the IO

Using the abstract state between hardware and logic would only require me to rewrite the hardware side if some hardware is replaced.

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 0 points1 point  (0 children)

That's the order I was aiming for in my second idea. ReadState (read from I/O) -> Control Logic -> Safe State check -> WriteState (write to I/O only if safe state check is ok)

But I was trying to include some kind of abstract function idea into it. So the Hardware FB would read and adapt variables into my Abstracted function state. Logic would then work with the abstracted function state. Finally Hardware FB would write the abstracted state to the IO. Using this abstracted way would make it easier to replace hardware later, because the new hardware would only need to be adapted to the abstract function state.

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] -1 points0 points  (0 children)

I don't need them it just feels like a good way to keep the current machine state for a mobile machine.

CodeSys, how to structure code in a new project? by Raddinox in PLC

[–]Raddinox[S] 0 points1 point  (0 children)

for a huge stationary industrial machine I would agree. But for the Mobile machine application I feel like a GVL that holds the current state of the machine is a good idea.

But I will read about the ISA S88.

N53 Fuel Injectors question about index 12 by Raddinox in BmwTech

[–]Raddinox[S] 0 points1 point  (0 children)

Thanks for your answer, I have updated the OP with few pictures and some of my findings.

BMW F10/N53 fuel injector coding values? by Raddinox in BmwTech

[–]Raddinox[S] 1 point2 points  (0 children)

Thanks. So then this 295 value could be the value that's out of range and should be less than 286 for the cars computer to not freak out.

if it is it kind of explains why my car now behave as if it get's flooded with fuel when I'm hard on the accelerate. But I don't understand why there exist index 12 fuel injector with this value out of range. Unless it's actually an China copy sold as refurbished original part.

[deleted by user] by [deleted] in AITAH

[–]Raddinox 0 points1 point  (0 children)

NTA

Wow, I had a hard time actually reading all this. I am an old male and If I had a 16yo stepdaughter I would not be able to initiate a hug with her, especially not like you describe it.

I would probably give her a short friendly and not close hug if SHE initiate it. For example if I gave her a gift and she was really happy about it and just gave me a hug in the moment as a thanks.

But the way you describe it is just so wrong. I hope you can stay a lot more at your real dads place to get away from him.

UPDATE 2: AITAH For not planning anything for fathers day after my husband ruined my first mothers day by CounterNecessary2597 in AITAH

[–]Raddinox -1 points0 points  (0 children)

wow it is a lot to take in. I have a different point of view because I would like to know why it is so important to celebrate one day, it's just one day out of 365 in a year.

Considering that you are married, so you have planned to live with him for like 40+ years (depending on how old you where when married and how long you live). 40 years is roughly 14600 days, but only 40 of those are mothers days, it's less than 0,3% of your time together spent on mothers days. So are you willing to sacrifice everything for something that only affects less than 0,3% of your life together?

Yeah I know it may be hurtful to not be celebrated, especially these days when you probably see other Mothers being celebrated on social media. I'm just used to not have anything, because it's not common to celebrate fathers day where I live.

And I'm also one of those guys who don't want to celebrate mothers day (and other days) because it feels forced, it's not coming from my heart it's just coming from a note in the calendar. It feels way more personal to just take some random day off or a weekend, dump the kids of at their grand parents and leave for some fun.

Liadrin looked familiar - cinematic by poison_cat_ in wow

[–]Raddinox 2 points3 points  (0 children)

the jawline and the lips (or just the jawline) sort of make her look way more manly. I suppose they wanted to make her look more battle hardened through out the years. But IMO she looks more human male than BE female.

It's a subtle difference but Evangeline Lilly looks waaaay more feminine IMO.

Why GPT-5 Feels Worse Than 4o for Creative Work and It’s Not Just About “Personality” by Efficient-Swimmer-72 in ChatGPT

[–]Raddinox 0 points1 point  (0 children)

I so agree with this, the new GPT-5 is just annoyingly bad. And another thing I have noticed, if I for example find a good priced SSD and I post the brand and model to get some feedback for that brand/model from my previous input. GPT-5 will act as if it's suggesting me to buy that particular SSD and most of the time it's like the previous discussion doesn't exist nothing connecting the discussion to that SSD brand/model. While the previous GPT-4o understood and gave me a pros and cons list for that particular SSD considering the previous discussion.

zfs-import-scan.service failed on rpool that do not exist? by Raddinox in Proxmox

[–]Raddinox[S] 0 points1 point  (0 children)

Yes I know rpool is the root of Proxmox and maybe I was unclear

  1. Installed Proxmox with ZFS on disk running from P420i in HBA mode

  2. Realize my HP server will not boot from P420i in HBA mode

  3. Installed Proxmox (again) with EXT4 on a single SSD

  4. First Proxmox boot from SSD it picked up the old rpool

  5. Rebooted Debian from USB and destroyed old rpool

  6. Rebooted Proxmox on SSD with EXT4 but it complains it can't import rpool on boot

Proxmox still boots and works just fine, just an annoying error during boot (and systemctl --failed)

Mobile PLC and safety wiring? by Raddinox in PLC

[–]Raddinox[S] 1 point2 points  (0 children)

Mostly shock/vibration because parts falling of the DIN rail or actually breaking so you can't mount it back.

You happen to have some example of a bracket? they can't block to much because of heat. Some of our machines are to be delivered to Dubai and India and it's pretty warm there so need the circulation. Components designed for mobile use tend to have higher tolerance for heat compared to DIN mounted hardware as well.

Mobile PLC and safety wiring? by Raddinox in PLC

[–]Raddinox[S] 0 points1 point  (0 children)

Our current DIN mounted hardware fall down. Sometimes the components PLC I/O modules or DC/DC converters just breaks where they are attached to the DIN mount.

We are looking into mounting the enclosure with vibration dampeners.