Sure. It's just that it also dumps all the unused space, and even compression might not help here since the file is so large (except if you use e.g. lrzip).
You could try partclone instead, that will only dump actually used blocks.
But since you don't care about space: Yes, cat should work. dd will provide more control over the block size, though.
A native package (including packages from AUR) should not install stuff into /usr/local, correct - after all, the package manager tracks its files, so it should install into global directories like /usr (or, as a last resort, /opt).
But hacks like Brew should install into e.g. /usr/local since they don’t integrate with the package manager, and /usr/local is intended for locally installed software that the package manager doesn’t know about. Even on Mac OS X, Brew installs into that directory if I’m not mistaken, so I have no clue why it uses /usr on Linux.
Random guess: Somewhere in chrootkit, somebody mistyped a shell output redirection like 2>&1 as 2>1. Instead of redirecting stderr to stdout, this redirects stderr to a file named 1 in the current working directory (maybe you ran chrootkit in your home directory?).
So probably just a bug in chrootkit. I’m really just guessing here, though.
/home can be on a separate partition, or on the root partition. The path will always be the same, so unfortunately, you cannot tell just from that. You'd need to look into /etc/fstab for a decisive answer, but for that, you first need to mount the root filesystem. Then, in the chroot, you can look at /etc/fstab, and simply do mount /home (if /home is indeed on a separate partition).
You will need to mount your root device to /mnt first, e.g. mount /dev/sda1 /mnt -- although I can't say what your root device is. Maybe try lsblk for an overview.
Below the mountpoint of the root device, mount the other filesystems (at least /proc, /sys, /dev; and possibly /boot, and if required, stuff like /home). arch-chroot can help you with that -- in particular, with automatically mounting the first three filesystems for you.
chroot (or arch-chroot) into the mounted root filesystem.
Do system recovery: Look at the log files in /var/log, and check journalctl (maybe try journalctl -b -1); see if you maybe need to reinstall some packages using pacman (failed system upgrade?), or downgrade them; possibly reinstall the bootloader.
I had to take someone to the ER and have not slept in multiple nights.
I hope everything is fine. Take care.
Oh, and even if you cannot make your Arch installation bootable again, you should at least be able to access the files on the hard disk by performing steps 1-3. In that case, you can skip the whole chroot process -- mounting the root filesystem etc. is enough.
pacman -Rcs python2 will also remove packages that depend on python2; carefully reviewing what will be removed is recommended. Will probably also work using yay.
No, but I get obsessed over only having packages installed I need.
Sure. It's just that it also dumps all the unused space, and even compression might not help here since the file is so large (except if you use e.g.
lrzip).You could try
partcloneinstead, that will only dump actually used blocks.But since you don't care about space: Yes,
catshould work.ddwill provide more control over the block size, though.Glad it worked!
Maybe you have some whitespace/weird characters in the values of the two variables?
Post the output of the following (without doing the
export):I mean, if passwords are stored in plaintext, then that's how it could work. But in this case it doesn't because hashes are involved.
The poor frog must be busy as hell.
I've used auditing rules in the past to find the culprit in such cases.
Interestingly, it does seem to be legal for a username to consist of only numeric characters. E.g. for the
owneroperand ofchown, POSIX says:A native package (including packages from AUR) should not install stuff into /usr/local, correct - after all, the package manager tracks its files, so it should install into global directories like /usr (or, as a last resort, /opt).
But hacks like Brew should install into e.g. /usr/local since they don’t integrate with the package manager, and /usr/local is intended for locally installed software that the package manager doesn’t know about. Even on Mac OS X, Brew installs into that directory if I’m not mistaken, so I have no clue why it uses /usr on Linux.
Not even
/usr/local? Well...Yeah, not sure why you would use Brew on Linux when you can just build a package for your native package manager.
Random guess: Somewhere in chrootkit, somebody mistyped a shell output redirection like
2>&1as2>1. Instead of redirecting stderr to stdout, this redirects stderr to a file named1in the current working directory (maybe you ran chrootkit in your home directory?).So probably just a bug in chrootkit. I’m really just guessing here, though.
Glad you got it working. Once you have verified that the files are there, try to get some sleep. :)
/homecan be on a separate partition, or on the root partition. The path will always be the same, so unfortunately, you cannot tell just from that. You'd need to look into/etc/fstabfor a decisive answer, but for that, you first need to mount the root filesystem. Then, in thechroot, you can look at/etc/fstab, and simply domount /home(if/homeis indeed on a separate partition).You will need to mount your root device to
/mntfirst, e.g.mount /dev/sda1 /mnt-- although I can't say what your root device is. Maybe trylsblkfor an overview.Generally, the process is:
/proc,/sys,/dev; and possibly/boot, and if required, stuff like/home).arch-chrootcan help you with that -- in particular, with automatically mounting the first three filesystems for you.chroot(orarch-chroot) into the mounted root filesystem./var/log, and checkjournalctl(maybe tryjournalctl -b -1); see if you maybe need to reinstall some packages usingpacman(failed system upgrade?), or downgrade them; possibly reinstall the bootloader.exitthe shell, or press^D).This is also roughly outlined here: https://wiki.archlinux.org/title/Chroot#Usage
I hope everything is fine. Take care.
Oh, and even if you cannot make your Arch installation bootable again, you should at least be able to access the files on the hard disk by performing steps 1-3. In that case, you can skip the whole
chrootprocess -- mounting the root filesystem etc. is enough.pacman -Rcs python2will also remove packages that depend onpython2; carefully reviewing what will be removed is recommended. Will probably also work usingyay.You can also do:
pactree -r python2I never said Arch is insecure, though?
Indeed, at least security stuff could be a paid position.
Probably for the same reason why Debian (and its derivatives like Ubuntu) have APT tools with Super Cow Powers.
The messages about
/etc/default/grubare expected since you likely edited that file, so it doesn't match the original version of the package.The first message is truncated, so not sure. But reinstalling grub might be worth a try.
Yeah, WTF? Maybe it's time to change to SYSLINUX or so... (Can't use
systemd-bootbecause of no EFI.)It's a Tux army!
Yay!