Having read poetterings blog posts a bit and he explains that the TPM2 based encryption is entirely just for system resources (basically everything under / with exception of /home). For home he still “envisions” (its already possible and not really hard with sd-homed) that the encryption is based on the users passphrase/key/whatever and not unlockable by anyone else than the users passphrase/…
I learned a ton from this, it’s kind of “The Book” I guess. For OP, there’s a pretty massive series of blog posts I fumbled along with too, ianthehenry.com/posts/…/introduction/ though it’s a couple years old.
First step, in case you didn’t do that yet: Create a disk image of the partition - you don’t want to try data recovery on the actual data. Easiest is just using dd to dump the disk to another drive.
Next try running testdisk on the image to see if it can find the backup superblocks - if it does you can feed that to fsck to restore the filesystem.
If you know the blocksize of the filesystem you can also run mke2fs with the -S parameter - this will just write the superblocks. Again, only do that on a disk image, not the actual drive.
You can decide yourself if the data in that disk is more valuable than the price of a new disk to store the backup image. If it’s not that valuable I guess you can one-shot it.
You can do all of that on the device - but you only get one shot. If you mess up that’s it - so no sensible person would try any form of data rescue directly on the device. Storage is cheap, if you don’t have sufficient space on your computer just get another external disk.
I know you wont understand where I’m coming from so I wont bother explaining it. If I need another storage device than I’ll just have to wait until next year to get another storage device.
Edit: I don’t understand why I’m getting downvoted but it proves to me that I made the right choice in not explaining my situation.
I don’t think I can use that mostly because my internet package has a data cap and I don’t want to risk exceeding that.
Also, I know it’s not really the time or place for this type of discussion but I’ve noticed recently (within the last few months) that for some reason the Lemmy community has changed. I don’t know if anyone else feels that way but it sometimes seems like some users are unnecessarily hostile/judgemental towards me. I wont say anything more because once again, this is not the time or the place but Lemmy wasn’t like this when I first started using it over two years ago.
If the disc is corrupted it may be failing, recommending ddrescue over dd is probably a better call not knowing anything else about this situation. Essentially, no reason not to use it.
I swear by ddrescue. It’s a situation I strive to never be but i’ve been there before. I used it once to rescue an employees masters capstone project from their dead work laptop.
After reading about it - true. Disadvantage of doing this stuff for a long time - you miss new developments. Only reason I’m aware of testdisk is that I lost the sources of my own superblock search tool, my old binaries broke with a newer glibc, and before reimplementing it I checked if sombody else had done that in a more usable form in the meantime.
Another tool that has helped me when the others couldn’t was RecuperaBit. It has the same restrictions though, you have to do it on an image of the drive.
The hard drive should be connected by SATA or eSATA when making the image. Connecting over USB is just asking for more trouble when the drive is not working correctly.
That has changed over the last few years - I’d prefer a proper usb3 to sata bridge over a shitty sata controller - and the quality of integrated sata controllers isn’t that great nowadays.
Hardly. I self-host a bunch of VMs on a home server. It would be a waste of resources having window managers running them just so I can click around once in a while. Also, it takes way more time to set up a container in Docker Desktop compared to just copying across a command to the terminal from a setup guide.
With the amount of different distros you’ve tried (though mostly derivatives of Arch/Debian), I’m actually surprised to see that you haven’t used any derivative of Fedora. Is there any reason in particular?
I forgot to mention Fedora Silverblue. I’ve used it after Micro os and it was a better experience. Fedora seems to have a better out of box experience and had no issues.
I’m not surprised to hear that you preferred Fedora Silverblue over openSUSE MicroOS. Don’t get me wrong, I think that openSUSE Aeon/Kalpa (current names for openSUSE MicroOS Desktop) have a lot of potential. However, as it stands, Fedora’s Atomic Desktops are just more mature.
Outside of Microsoft and Windows, what’s the application for it? Does Linux or UNIX have much use for TPM? Pardon, my ignorance, but I bet this is a good place to ask!
It scares me. What if the chip dies? How am I gonna be able to get my stuff? I don’t fully understand how it works, but where is the encryption saved? On the chip itself or somewhere else?
Skimmed over the whole article – I wish this had been available back when I was trying to piece together the basics from the documentation. There really needs to be a 2nd part, though, with some discussion of the GVariant signatures, which the author says were ‘beyond the scope of’ this article – which is true; nevertheless, understanding that syntax (and how to use it e.g. with gdbus) is an absolute requirement for using dbus properly; and as a silly amateur, I lost so much time over them.
Debian, don't like apt.
Arch, breaks too much.
NixOs, just don't need the tools it provides.
Any fork of a mainline distro because it's never as good as the root.
I used arch for a while, but got sick of running repairs every few weeks. I use Gentoo now, it's stable and good. I have a fuck ton of ram and a good cpu, I also take advantage of binary packages from time to time. I don't really need to install new things that much after having done the initial install.
The arch breaks were always related to keys. I would run an update and there would always be an error related to the keys. Never had a breakage due to confs.
I used to distro-hop until 2017 when I started using Gentoo as my main distro. I did not have the same experiences as you with Arch but I tended to avoid the AUR. Ultimately Gentoo has kept my attention by being more flexible rather than having negative experiences with Arch.
I suppose I still distro-hop a little bit on an old laptop I’ve got but that one alternates between Debian and OpenBSD; also its primary use is a terminal for SSH’ing into my Gentoo desktop from the sofa.
Probably the only distro I’ve had a truly bad experience with is Manjaro. The additional repo that it comes bundled with creates more problems than it solves. Also - although this never affected me personally - the story about developers asking their users to reset their system clocks to accept an expired PGP key is an absolute scandal.
The best way I know of is to get yourself a VM and get into the weeds; try to configure a system to your liking.
Follow the NixOS manual. The Wiki is unofficial; often opinionated, out of date or just plain wrong. Take it with a grain of salt. The canonical source of documentation is the NixOS manual and it’s not nearly as bad as you may have heard.
Make extensive use of search.nixos.org/options or man configuration.nix. Finding and making proper use of options and the module system is the bread and butter of using NixOS.
Eventhough everyone and their mom will recommend them to you for nebulous reasons, ignore flakes for now. You will know when you’ll benefit from using them; namely when you need to use something outside of NixOS/Nixpkgs. You’re going to have enough to figure out with plain old NixOS on its own though; I don’t have external dependencies in my config to this day.
As someone who hates Windows with a passion, once everyone recommend Linux Mint, I knew I had to try it.
I immediately had negative first impressions. I simply don’t wanna use something with a desktop environment that reminds me of something that I hate. I get that it makes transitioning a lot easier for many, but for me it simply looks too similar to Windows.
Swapping out KDE/Plasma for Gnome or anything else is dead simple most of the time. The DE isn’t locked to the distro, you can have multiple DEs and windowing systems (X and Wayland) installed at once. You can select them from your login manager.
Heh, no problem, never too late to learn. If you’re coming from Windows or OS X it’s easy to think that the WM/DE is tied to the OS but due to the way Linux is written, the entire GUI stack is separate from the base system. I use SDDM as my login manager and in the upper left-hand corner there is a drop-down to choose the DE and Windowing System.
Heh, no problem, never too late to learn. If you’re coming from Windows or OS X it’s easy to think that the WM/DE is tied to the OS but due to the way Linux is written, the entire GUI stack is separate from the base system. You can have both the old school X Windowing system and the new Wayland installed at the same time, along with many different Desktop Environments and Window Managers. I use SDDM as my login manager and in the upper left-hand corner there is a drop-down to choose the DE and Windowing System.
No one ever said learning something completely new was gonna be quick and easy. Take it piece by piece and follow tutorials. Installing Arch Linux will give you a good idea how everything fits together instead of just “click, click, click, reboot” and it’s installed. You don’t learn anything that way.
linux
Newest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.