Skip to content

u/ElectricalLeopard

In this archive from Jun 2018 to Jul 2020

4
posts
104
comments
2
media
1k
score

Top posts

Top comments

Edit - my answer might be not completely correct see here:

https://www.reddit.com/r/linuxquestions/comments/ax5vf2/dd_to_wrong_partition_what_can_i_do_to_recover/ehscusq/


RIP /dev/sda.

"dd" aka data destroyer.

What dd does is write everything block by block (byte by byte or bit by bit) ~and fills the rest with zeros~~ ... either way that SSD content is now effectively pita since those zeros are also actively written and not just mapped/flagged for delete (if you'd for example delete files via rm). * technically it seems that only the first blocks until the size of the target image are overritten, that will hit n amount of files so you might be able to get a few of them out (with lots of work).

If you're still booted I'd try to see if I get a package list out ... and hope that you have a backup and no important files are lost. If not, change your backup strategy. But hey! I also lost my main SSD tonight due to NAND wearout after spending half the night working on stuck a update routine (that's at least what I tought). :/

13 points

So then why didnt you use this 1 hour and actually fix it, if its so easy?

Don't forget the tests.

I'll remind you in a day. Then the day after, then the next month, then in the next year ...

Initial description - first paragraph for anyone wondering:

The libssl1.0-dev package conflicts with the libssl-dev package, so this leads to all packages that depend on libssl1.0-dev to conflict with all packages that depend on libssl-dev; as well as all packages that depend on those packages (and so on).

Spoiler: No, its not easy to fix and obviously you cant just have both if you actually read that paragraph or tried it yourself.

10 points

Because you say its VERY secure?

It uses AppArmor by default which is way lower security then both grsec/pax and SELinux in enforcing mode + proper namespacing e.g. running services in containers.

Thats just for a starter.

https://serverfault.com/questions/142934/selinux-vs-apparmor-vs-grsecurity

Security is not about "feeling safe".

Its also not easily achieved but takes a lot work (if only by the publishers of the distro). e.g.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-using-usbguard

Since grsec is gone and the KSPP basically is as good as dead the alternatives a pretty dark.

SELinux should be the obivious choice and Red Hat has put a lot work into making it more accessible to manage with tools such as allow2audit

There are also some GUI helpers which make it behave close to an Application Firewall in Desktop so I'd say its appropiate to even replace AppArmor for its limited use-cases if configured properly.

The only thing I don't like is their close tie to the NSA, but fuck not, I rather be possibly exploited by the NSA then some fucktwat scriptkiddy from russia/china. Beside OpenBSD its hard to get real security to POSIX systems now.

TLDR: Any RHEL based distro or OpenBSD is a lot more secure for servers out of the box (phun intended).

8 points

If it's only once simply use dd:

https://wiki.archlinux.org/index.php/disk_cloning

Otherwise - I'd more recommend borgbackup for deduplicated backups even over ssh (meaning you'll save precious storage and don't save a file twice if for example you move it into another directory - if you keep more then just one image).

That said you can use borg as well for full backups, or encrypted backups to the cloud (if your connection is fast enought) - or your local NAS.

6 points

Subreddits

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.