You are not logged in.
https://share.icloud.com/photos/001JPER … by5w2-TmBQ
I should have researched if it would auto-move my home disk sector when something else overlaps…
(I actually was trying to expand my root directory, so I removed 1GB off of the end of my home directory [that was the only thing it would let me do] and now this is happening..
What should I do? Do I have to remove all data in my home directory or do I just have to reinstall arch?
Offline
I actually was trying to expand my root directory, so I removed 1GB off of the end of my home directory [that was the only thing it would let me do] and now this is happening
The system fails to mount /home, so what likely happened is that you repartitiond the disk w/o moving the filesystem.
PRAY that you've not yet written into the sectors that formerly belonged to the /home partition and restort the previous partition table.
In the best of all cases your previous filesystem and all files in /home are still there.
In the worst of all cases, you've just nuked your private data - so you hopefully have backups.
Offline
Oh, and by the way, I then proceeded to re-add that 1GB on the home directory RIGHT AFTER removing it… i think its over
I couldnt boot into the computer before anyway because of a completely different problem…
Last edited by Kxed (2022-10-29 15:07:34)
Offline
I then proceeded to re-add that 1GB on the home directory RIGHT AFTER removing it
How *exactly* did you go about that?
Your root partition is probably still fine, possibly testdisk can recover your previous partition/filesystem.
https://wiki.archlinux.org/title/File_r … d_PhotoRec (you'll probably have to do that from a live distro like grml)
Offline
I then proceeded to re-add that 1GB on the home directory RIGHT AFTER removing it
How *exactly* did you go about that?
Your root partition is probably still fine, possibly testdisk can recover your previous partition/filesystem.
I used parted to add it back by expanding the space back with resizepart. After it didn’t work I thought: “maybe rescue could fix the disk!” Hope i didnt screw my system up
Offline
parted does not resize filesystems for you and resizepart only informs the kernel about partition sizes (and you wanted to rely on partprobe for that)
"used parted to add it back by expanding the space back with resizepart" is not a thing - if you only used resizepart, you didn't resize the partition at all.
Boot some live distro and check "fdsik -l /dev/sda" (assumign sda is the drive in question) on what the partition table actually looks like.
After it didn’t work I thought: “maybe rescue could fix the disk!”
And what was the consequence of that thought?
Hope i didnt screw my system up
We'll see. For now, avoid any flailing, panic reactions and speculative writing actions on the disk - you're almost guaranteed to make the situation worse.
Offline
https://share.icloud.com/photos/047-SmS … V0GrVwPRSQ
After finishing a deeper scan with testdisk, i got this result. Does this mean I’m doomed?
Offline
First of all
check "fdsik -l /dev/sda" (assuming sda is the drive in question) on what the partition table actually looks like.
Some btrfs (subvolume) superblocks are currently meaningless.
Offline
Turns out there’s even more than shown in the picture
Offline
https://share.icloud.com/photos/0bc2dIu … BKu3MT_27A
Here’s what the output of fdsik -l /dev/sda
And yes, I did run rescue when it failed to boot.
Offline
I did run rescue when it failed to boot.
What does that mean? What "rescue"?
There's a small gap between sda1 and sda2, but none beteween sda2 and sda3.
What's the output of
(lsblk -f; file -s /dev/sda3) | curl -F 'file=@-' 0x0.st
(w/ an internet connection this will feed the output into a pastebin service and hand you a url, so maybe we can stop posting images)
Offline
1.
What does that mean? What "rescue"?
I meant the rescue function in parted.
2.
What's the output of
(lsblk -f; file -s /dev/sda3) | curl -F 'file=@-' 0x0.st
Offline
This takes me to an article in the Independent.
[This strikes me as very, very weird. How?!]
Last edited by cfr (2022-10-29 19:48:50)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I meant the rescue function in parted.
Ewww…
So there's an ext4 partition on sda3.
You may
fsck.ext4 -n /dev/sda3
to see how bad it is.
Since we don't know the condition and origin of the FS, you should dump a backup of the partition before you try to fix the filesystem - so if things go south, you at least have preserved the status quo to search for files w/ testdisk/photorec.
Offline
Since we don't know the condition and origin of the FS, you should dump a backup of the partition before you try to fix the filesystem.
How would i do that?
Offline
Also, sda3 is my home directory. I wanted an ext4 there. It contains errors now… https://share.icloud.com/photos/030lQNH … QzQlLma88A
Offline
Something like dd would work: https://wiki.archlinux.org/title/File_r … partitions, but you obviously need somewhere big enough to copy it to.
EDIT: see https://wiki.archlinux.org/title/Disk_cloning (which also covers dd).
Last edited by cfr (2022-10-29 19:58:26)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Please stop posting images of text segments - that's not helpful.
fsck.ext4 -n /dev/sda3 2>&1 | tee /tmp/fsck.log
cat /tmp/fsck.log | curl -F 'file=@-' 0x0.st
Why is sda3 in use? Did you mount it???
Offline
Why is sda3 in use? Did you mount it???
Why IS it in use??? It was never mounted and I checked! I even did unmount just to be sure and it still says it’s in use‽
Even if I tried (which i did just now), it says this exactly:
“mount: /dev/sda3: can’t find in /etc/fstab. What is even going on???
Last edited by Kxed (2022-10-29 20:20:03)
Offline
mount | curl -F 'file=@-' 0x0.st
Offline
mount | curl -F 'file=@-' 0x0.st
Offline
The FS might falsely be flagged as dirty.
fsck.ext4 -n /dev/sda3 2>&1 | tee /tmp/fsck.log cat /tmp/fsck.log | curl -F 'file=@-' 0x0.st
Offline
The FS might falsely be flagged as dirty.
seth wrote:fsck.ext4 -n /dev/sda3 2>&1 | tee /tmp/fsck.log cat /tmp/fsck.log | curl -F 'file=@-' 0x0.st
1. Why
2. How do i fix it
Offline
1. because you did god knows what to the FS
2. post the output of fsck I've now asked for thrice.
Offline
post the output of fsck I've now asked for thrice.
Offline