My user account doesnt have sudo despite being in sudoers. I cant run new commands i have to execute the binary. Grub takes very long to load with "welcome to grub" message. I just wanted a stable distro as arch broke and currupted my external ssd
My user account doesnt have sudo despite being in sudoers. I cant run new commands i have to execute the binary. Grub takes very long to load with "welcome to grub" message. I just wanted a stable distro as arch broke and currupted my external ssd
If the partition in question is /dev/sdd1, what does
fsck /dev/sdd1
give?Also, you shouldn't need to specify the fs type to
mount
, as it'll auto-detect it./usr/sbin/fsck: 1: Syntax error: "(" unexpected
looks puzzled
/usr/sbin/fsck
should be an executable. On my Debian Trixie system, it is. That sounds like it's a script, and whatever interpreter is specified to run it by the shebang line at the top of the file doesn't like the file's syntax. I wouldn't think that any Linux distro would replace that binary with a script, as it's something that has to run when almost everything else is broken.On my system, I get:
Do you get anything like that?
EDIT: Oh, wait, wait, wait.
/usr/sbin/fsck
might be printing that message itself. I was gonna say thatfsck
shouldn't be looking at any files, but the man page lists /etc/fstab as a file that it looks at. Looking atstrace -e openat fsck
on my system, it does indeed look at /etc/fstab. Maybe the contents of your /etc/fstab are invalid, have a parenthesis in it. Can you also trygrep '(' /etc/fstab
and see what that gives?EDIT2: I don't think that it's an
fsck
error message. When I replace the first line of my fstab with left parens, I get "fsck: /etc/fstab: parse error at line 1 – ignored", which is a lot more reasonable.Sorry i was using sh. This is the output
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sdd1
Ah, okay, that makes more sense.
On my system, looks like fsck.ext2 is a symlink to e2fsck, which is provided by the e2fsprogs package:
Can you try:
And then run:
Again?
E2fsprogs is installed already
rubs chin
Okay. "error 2 (No such file or directory)" is the error code that
perror()
will print when it gets ENOENT.checks
One way you can get that is if you attempt to execute a file that isn't there, or execute or open a symlink that has a target that's missing. Could be that fsck.ext2 is missing or is a symlink, and that the
e2fsck
binary that it points to isn't there.On my system, I get this:
Do you get something like that as well?
If they aren't there, you can force reinstallation of e2fsprogs with
# apt install --reinstall e2fsprogs
and if the files are missing, that should add them, but I don't know how one could wind up in a situation where the package database thinks that the package is installed but that the binaries aren't present on a fresh Debian install.I do have it
Okay, though I had an idea as to what should cause that, but no, not it. I deleted my response shortly after posting it, if you already saw it.
Hmm. Well, how about this. It should be possible to run e2fsck directly, and you say that the binary is present. Try:
If it says something about /dev/sdd1 being mounted, then don't go ahead with the scan; you've got the wrong partition in that case.
deleted by creator