You are not logged in.

#1 2022-10-29 14:01:10

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Computer wont boot

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

#2 2022-10-29 14:52:30

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

#3 2022-10-29 15:05:25

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

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 hmm
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

#4 2022-10-29 15:11:55

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

#5 2022-10-29 15:27:21

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

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

#6 2022-10-29 15:38:13

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

#7 2022-10-29 18:16:53

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

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

#8 2022-10-29 18:47:03

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

First of all

seth wrote:

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

#9 2022-10-29 19:07:11

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Turns out there’s even more than shown in the picture

Offline

#10 2022-10-29 19:12:28

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

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

#11 2022-10-29 19:28:07

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

#12 2022-10-29 19:36:22

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

1.

seth wrote:

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

http://0x0.st/oYqN

Offline

#13 2022-10-29 19:44:31

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Computer wont boot

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

#14 2022-10-29 19:49:17

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

https://0x0.st/oYqN.txt

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

#15 2022-10-29 19:51:48

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

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

#16 2022-10-29 19:55:07

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Also, sda3 is my home directory. I wanted an ext4 there. It contains errors now… https://share.icloud.com/photos/030lQNH … QzQlLma88A

Offline

#17 2022-10-29 19:56:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Computer wont boot

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

#18 2022-10-29 20:08:55

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

#19 2022-10-29 20:16:30

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

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

#20 2022-10-29 20:19:01

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

mount | curl -F 'file=@-' 0x0.st

Offline

#21 2022-10-29 20:21:25

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:
mount | curl -F 'file=@-' 0x0.st

http://0x0.st/oYbr.txt

Offline

#22 2022-10-29 20:38:42

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

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

Offline

#23 2022-10-29 20:40:06

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

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

#24 2022-10-29 20:49:55

seth
Member
Registered: 2012-09-03
Posts: 51,231

Re: Computer wont boot

1. because you did god knows what to the FS
2. post the output of fsck I've now asked for thrice.

Offline

#25 2022-10-29 20:52:50

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

post the output of fsck I've now asked for thrice.

http://0x0.st/oYb4.txt

Offline

Board footer

Powered by FluxBB