Skip to content

u/Lyno_

In this archive from Jul 2018 to Mar 2020

1
posts
17
comments
0
media
95
score

Yeah, this way you shouldn't have to worry about errors while copying/resizing/cloning the data.

You can copy the files using rsync. The EFI partition should be easy to clone. If you didn't customize the bootloader, the simplest thing would be to just reinstall the bootloader to the new EFI partition. Root and home can easily be copied afterwards (using rsync again)

1 points

In your /etc/fstab do you use the "device paths" (eg. /dev/sda1) to specify, where to mount which partition? Because that path is not fixed and depends on, which of your drives is discovered first during boot time. This can lead to an error like this, when sometimes the "faster" drive is discovered first, essentially swapping /dev/sdb and /dev/sda as you usually have it set up.

You can change the fstab to use UUIDs (an unique identifier for each partition) or even disk labels (if you have them set up, it's a name you can give your partitions).

48 points

Hey guys! Thank you very much for your help!

I moved to the new drive and everything works flawless. I'd like to share what I finally did:

​

  1. Copy the partition layout with sfdisk like so: sfdisk -d /dev/old | sfdisk /dev/new
  2. Grow the unformatted partition containing with the soon to be ext4 filesystem
  3. Copy the whole NTFS filesystem via ntfsclone --overwrite /dev/new1 /dev/old1
  4. Mount /dev/old2 and /dev/new2 at /mnt/old and /mnt/new respectively
  5. Copy the ext4 filesystem at file level via rsync -axHAWXS --numeric-ids --info=progress2 /mnt/old /mnt/new
  6. Unmount everything and you're good to go.

​

I really appreciate all your input and help! Thank you very, very much!

1 points

After a lockup you can run journalctl -b -1 this will show the log files of the last boot. If you add the -r flag, I think, it will display messages from beginning from the last before the lockup.

Perhaps you can find something in those logfiles?

9 points

There's a Website called "Advent of code". It's basically a programming challenge for every day in December until Christmas with a sweet little backstory. You can do all older puzzles (because it's not Christmas today). They are saved on the website. Even the ones from the last year's. I'd encourage you to start with the first year (I believe it was 2015) and just start.

There's even a subreddit r/adventofcode if you have questions to a puzzle. If you have questions for your programming language, you could try there too, but I think you'll be better of in a specialized forum or sub.

Lastly there are plenty of good tutorials online. Just Google "<programming language> tutorial" and read through them. It should explain everything. But whatever you do, to get started. The best way to learn programming is to actually code. It's mostly experience what makes you a programmer.

With that said. Happy coding!

2 points

I use fluxbox as my window manager and I'm pretty happy with it. I don't know if it's the lightest, but it's pretty light. My system uses less than 200MB RAM in idle including stuff like a locker, indicators, idesk, etc.

The default fluxbox experience is pretty windows-xp-ish but there are some good themes over at r/unixporn (This is the one I use: https://www.reddit.com/r/unixporn/comments/674xiz/fluxbox_daftp_2/ )

Normally fluxbox is controlled via keyboard shortcuts, but there is a package to add desktop icons if you feel the need to: idesk (I remember it being an AUR package)

1 points

In our school you could charge your account with money to use the schools printers via a web-interface.

Well, an alternative way to print was opening the windows explorer and let it search the local network for other devices. It would list you all of the school's printers, PC's and routers. And what's even better: You could select a printer in the explorer and tell windows to print something using this printer. Saved about 10ct per paper + there wasn't a notice that you shouldn't do this.

Some teacher found one of our sheets in a printer, figured out it wasn't printed by another teacher (the printer was in one of the teacher's break rooms) and went straight to the police with it, because some cyber-guy must have hacked the school.

Luckily they didn't found out, who printed this document. But they didn't change a thing either. About 3 years later you can still use this "hack" to print on every printer in the whole school. And this is only one of the many security issues we found at our old school..

6 points

I always thought, this is due to the colored output on the poweroff screen. When using colored output in a terminal, you use escaped color-sequences, which aren't displayed as a character but are printed to the console. So the cursor doesn't "know" the right position it's on anymore. Experienced similar behavior when customizing my PS1 Prefix in bash. But I neither know, how to prove this nor how to fix the issue. Just ignore it, it's fine.

12 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.