My theory for why it created copies:
The files you listed look like they are all subdirectories from /dev, which is (usually) a separate filesystem.
When you try to move a file or directory across filesystems, the OS can’t just change the link, it has to actually copy the files and then remove the original. As a directory is a set of links to files, and the copies are different files, directories are just newly created with the same name in the new location instead of copying the directory filesystem entry. It looks like mv
creates these target directories, before it checks if it actually has permission to remove the source, but checks file permissions, before it copies them
- 0 Posts
- 7 Comments
Regarding snapshots, I use a setup, where at the root of the btrfs partition I have the subvolumes “rootfs”, “home”, and a directory “snapshots”. I can boot into a snapshot by changing the mount options for the rootfs in the kernel command line, e.g.setting
subvol=snapshots/rootfs-yyyy-mm-dd
.The only difference between a snapshot and a regular subvolume is that snapshots are readonly by default, you can keep a writable copy of a snapshot beside it for recovery purposes, if you need it. As long as nothing is written in it, it shouldn’t use any significant extra space.
crater2150@feddit.orgto Linux@lemmy.ml•Linux for a Windows & Android person (Advice needed)1·4 months agoI know that, but that does not give apps root access. Unless you mean something else by root access than being run with root privileges
crater2150@feddit.orgto Linux@lemmy.ml•Progress towards universal Copy/Paste shortcuts on Linux2·4 months agoBut Shift+insert currently pastes the primary selection, not the copy-paste clipboard. So it doesn’t do the same as Ctrl+V.
crater2150@feddit.orgto Linux@lemmy.ml•Progress towards universal Copy/Paste shortcuts on Linux1·4 months agoWell, the article proposes to use dedicated copy and paste keys. If you don’t have an insert key, you probably don’t have those either.
crater2150@feddit.orgto Linux@lemmy.ml•Linux for a Windows & Android person (Advice needed)2·4 months agoAnd best of all, you get an OS that is secure, which traditional Linux distros aren’t due to every app having root access by default.
What? Which distro runs everything as root by default?
Well, having a domain is basically documenting your IP publicly. It’s not that risky.