Skip to content

u/Tblue

In this archive from Jun 2009 to Apr 2024

0
posts
85
comments
0
media
568
score

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.

2 points

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.

1 points

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.

35 points

/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).

4 points

Generally, the process is:

  1. Boot system using e.g. a Live CD/USB drive.
  2. Mount your root device.
  3. 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.
  4. chroot (or arch-chroot) into the mounted root filesystem.
  5. 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.
  6. Exit chroot (simply exit the shell, or press ^D).
  7. Unmount all the filesystems.
  8. Reboot.

This is also roughly outlined here: https://wiki.archlinux.org/title/Chroot#Usage

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.

15 points

The messages about /etc/default/grub are 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.

1 points

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.