There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

k2helix OP , (edited ) to linux in Cloning encrypted linux install

Here’s what I ended up doing:

When the SSD arrived, I put it in the 2nd slot. Then, I booted Ubuntu in a Live USB and created the same partition layout in the new disk with parted.

  1. Create the EFI partition and give it the same size
  2. Do the same for the ext4 boot partition
  3. Create a btrfs partition and give it the remaining size.
  4. Encrypt this new partition with cryptsetup and mount it with the option luksOpen of cryptsetup.

Next thing was mounting the partitions of the old drive. And now, to clone the disk I first tried with brtfs-clone but as the size of what first were 220 GB increased to 260 GB, I tried just using btrfs send from the old disk and piping it to btrfs receive to the new disk. However the size didn’t change and still was 260GB, no idea why. I didn’t use dd because some comments recommended btrfs send/receive as it doesn’t copy the whole partition including empty space.

Once that was done I copied the /boot/efi and /boot partitions using cp and changed the uuids in /etc/fstab and /etc/crypttab to match the new partitions UUIDs (to know which UUID was each partition, I just used blkid and grep’ed the type of partition. For instance if I was looking for the new partition to replace the one with UUID a1b2c3, I would just use blkid | grep a1b2c3 and if it said it was a crypto partition, then blkid | grep crypto). Finally I deleted the Microsoft folder from /boot/efi as I would only use that disk for Linux.

So then I tried booting from that disk (and removed the other) but Grub was a mess - it just showed the command line. After some (stressful) hours, I found out that it was because Grub itself when first installed saves the UUID of the disk where the config is and searches for it there - so it was not using the config in the new drive.

Again, booted Ubuntu and mounted the new drive partitions. There I tried to just reinstall Grub in the boot partition but it seemed impossible because of some weird errors. So I just changed the UUIDs in Grub related files such as /boot/grub/grub.cfg and /etc/default/grub.

Tried booting again but as noticed earlier Grub was not loading the config file I edited, it was still trying to use the old one in the old drive which was removed and had the original UUIDs. Maybe just changing the UUIDs there would have done the trick but I didn’t try.

It was in that moment that I discovered the existence of configfile - a command that can be used from Grub’s shell to boot with the specified config file. Then I used configfile disk_and_path_to_grubcfg and bang! The OS selection screen appeared. At that time I had already put the old disk in the other slot as I thought everything was solved.

To my surprise, when I selected to boot fedora and typed my password to decrypt the drive, I booted to Fedora in the old drive! How could that be, if I really made sure that I was booting Grub from the new disk? So now the problem was that I was booting Grub (manually with configfile) from the new disk but the OS I was booting was in the old one.

After some time researching, the culprit was that while I changed the UUIDs in the grub.cfg config file, Fedora doesn’t add its kernel entries to that file but to the /boot/loader/entries directory. And there were the files I had to modify (just replacing the old UUIDs). One reboot (maybe also update-grub to update Grub config) and that was it, solved.

However there was one more thing to do. As I didn’t want to use the configfile command every time I boot, I just reinstalled grub.

So that was it. Hope it is useful for anyone who needs to do the same. Although the story doesn’t end there, because the new drive turned out to be defective and I had to order a new one to which I dd’ed (not going through all that again). You live and you learn!

bjoern_tantau , to linux in Recommendations for Remote Desktop App
@bjoern_tantau@swg-empire.de avatar

I’ve come to prefer Sunshine as the server and Moonlight as the client. It’s meant to be for gaming but that also means that quality and latency are through the roof and wastly superior to all other similar offerings.

MalReynolds ,
@MalReynolds@slrpnk.net avatar

Agreed, if the bandwidth is better than bad it’s way better, also, Wayland support.

Septimaeus , to science_memes in What pride flag is that?

Again her customary greeting was met with awkward silence. Somehow Brenda never learned to break the ice without falling in.

gccalvin , to games in Do you prefer RTS or Turn based tactics

For those that want an RTS game that doesn’t require a high APM, I’d recommend Supreme Commander Forged Alliance (FAF) and the Sins of a Solar Empire Games (which requires an even lower APM).

skibidi ,

FAF absolutely benefits from action spam, to the point where it breaks the game balance.

T1 assault bots lose to T1 tanks, and they are supposed to because they are half the price and much quicker to build. You can dance them around if you click enough and they will dodge the tank shells… a few micro’d bots can then defeat 10s of tanks. That swing in mass efficiency is already enough to decide the game on maps smaller than 20km.

RTS will always benefit from intensive micro because time is another resource. Doing more actions, assuming they are of positivity utility, gives an advantage over an opponent who does not.

MeatPilot , to showerthoughts in With the prison sentences for activists who threw soup on "sunflowers", our society has affirmed that an illustration of nature is something we value.
@MeatPilot@lemmy.world avatar

I do agree something needs done about climate change. But as someone who deeply appreciates art and understands how important it is to preserve it, I think protesters have a lot more avenue’s to gain attention AND actually target something related to climate change.

Why not go throw soup on a representative or maybe throw soup on the door of a famous municipal building. Target government, they ultimately make the decisions.

Wizard_Pope ,
@Wizard_Pope@lemmy.world avatar

The issue is that does not get as much attention and publicity.

The problem with their approach however is that it makes everyone hate them.

daniskarma ,

I don’t think is a matter of publicity.

Every single human being on the planet knows what climate change is. Some people may not believe in it but they surely know what it is.

IMHO the solution comes from (real) education on the matter. We are past publicity, we need schooling on both causes, consequences and solutions to climate change.

Wizard_Pope ,
@Wizard_Pope@lemmy.world avatar

It is a matter of publicity for just stop oil. They main goal afaik is to bring attention to the issues the oil industry makes. The fastest way to do that is to get as much publicity as possible. They are doing it in a stupid way though.

daniskarma ,

I believe that particular “activist” group has been found to be related to oil companies (taking money from them). And there was assumptions that they were just trying to throw bad reputation into the movement.

Take it with a grain of salt because this is just something I remember reading some time ago and I don’t have any sources on it.

masquenox ,

I think protesters have a lot more avenue’s to gain attention AND actually target something related to climate change.

You mean… apart from targeting the stuff capitalists put a lot of monetary value on? You know… the same capitalist parasites that caused climate change?

But as someone who deeply appreciates art

Fuck art.

MeatPilot ,
@MeatPilot@lemmy.world avatar

I think you need a hug.

masquenox ,

A piece of canvas with some pigment on it isn’t valuable just because a bunch of rich people and their scummy “art dealers” says it is.

10_0 , to asklemmy in Sorry for the potentially controversial question: is it normal for less attractive people to settle down with partners they don't find physically attractive?

If looks are important to you, be the kind of person an attractive person would like to marry/date. (All else being even.)(e.g. be attractive yourself, if not your face your body or both.)

ladfrombrad , to android in I just got a device with an audio jack (Moto G84), very satisfying.
@ladfrombrad@lemdro.id avatar

I’m a capt’ three phones at the moment

While I’ve had my backup Samsung M12 with a 1pmobile SIM in my work locker for a couple of years now simply as an emergency backup, I’m also currently rocking two Xiaomi’s so I can test remote connections to a family members server via work WiFi/Tailscale.

My main issue is while I wear cargo pants at work, carrying two phones is more wieldy than you’d think and there’s also something else I did notice the other day with the Find My Device news.

I forgot where, I left my main phone the other day and my locker is a literal Faraday cage according to FMD? 10 minutes of panic :/

rekorse , to pics in Olympic gymnast Giorgia Villa is sponsored by parmesan and takes many photos with a wheel of cheese

I’d eat that cheese and I’m vegan.

Rognaut , to books in Looking up words on digital dictionary slows me down, does it get better?

I am a native speaker of English and I do the same thing. Granted not as often but I will definitely look up words I don’t know or remember.

You’re on making your understanding of the English language better by looking them up and eventually you won’t need to look them up, you’ll just know them innately.

Akasazh , to memes in Virgin nihilism vs Chad absurdism
@Akasazh@feddit.nl avatar

I prefer dadaism

Aceticon , to science_memes in Strength

If there is one thing I’ve learned from Physics, is that everything is relative.

Macaroni_ninja , to lemmyshitpost in "they say this house is haunted. I've been living here for the past 430 years and haven't seen a ghost yet"
@Macaroni_ninja@lemmy.world avatar

I bet he is not addicted!

lugal ,

I bet he is

Sam_Bass , to lemmyshitpost in Stretching

Easily Mrs. Beasely

niktemadur , to lemmyshitpost in The ring of fire

The fact that it’s so perfectly positioned, makes me think somebody did this on purpose, maybe holding a magnifying glass by the window, people passed nearby but paid no attention - after all, nobody’s trying to break into the car - but there they were, fucking up somebody’s car with an analog, rudimentary, sun-powered, laser-like device: a piece of glass.

FinishingDutch ,
@FinishingDutch@lemmy.world avatar

Could be, but I think a seat heating malfunction is more likely. Looks like an older vehicle so there’s all sorts of things that could break down.

The driver also might’ve just parked it in the exact right spot to catch problematic sun reflections. There’s been a few buildings that are known to cause issues. People who parked around the ‘Walkie Talkie’ building in London had melted body panels, mirrors, burns in their interior, etc. They had to install screens on the building to stop this ‘death ray’ effect.

Sam_Bass , to fediverse in UPDATE! Fewer than 20% of Lemmy Apps display posts accurately

I have to use desktop mode here to make sense of the posts

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines