Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently tried to login to my Pi (running Rasp Pi OS) and was told my password was incorrect. I'm sure it was correct, but anyway... I finally wound up booting to single user mode and changed my login password. I booted back to normal mode and tried to login and it still says my password is wrong. I went back to single user mode and created a new user/password. Rebooted again and get told the new user's password is incorrect. I'm really baffled as to what went wrong here. The Pi is runnning as my Jellyfin server and I really hate to wipe it and start over, but if I can't figure out my login problem I guess that's what I'll have to do. Anyway, I was just wondering if anyone has seen a similar issue or has a solution.
It's a couple of decades ago, but I have once got a very special message when I tried to login:
"You don't exist, go away!"
Reason was a filled up devicesystem with no space left.
The file systems is not full on this one, so it's just a weird mystery. Jellyfin is still working great but I have no way to login via command line/ssh to update the system ever or do other maintenance work. Looks like I'm probably just going to tear it all down and rebuild my server. Not a huge deal but not what I really want to do.
Thanks!
Wild idea: strace (login or su maybe), to see where it errors out.
I can't login at all, except when booted to single user mode as root, so I'm not sure how I could do that. I've never used strace before so maybe I just don't understand how it would work.
I would try adding another user, and seeing if they can log in and do stuff. If so you can
use usermod as root to change your old user's uid & gid to something weird
Use usermod to make your new user's uid & gid the same as the original user
Keep checking your new user functions.
Change as much as you want of new user to old. I would not change the homedir, as the problem could well be there. But if you get your server running, you can sort the rest out yourself. I would caution against doing anything global.
Given your tale of woe, you may be suffering under the delusion that sdcards are reliable storage. They are not. If you succeed in extracting yourself out of this, back up to disik, buy a new sdcard and make a copy. That may well fix it. When did you fsck the disk last?
I would try adding another user, and seeing if they can log in and do stuff. If so you can
use usermod as root to change your old user's uid & gid to something weird
Use usermod to make your new user's uid & gid the same as the original user
Keep checking your new user functions.
Change as much as you want of new user to old. I would not change the homedir, as the problem could well be there. But if you get your server running, you can sort the rest out yourself. I would caution against doing anything global.
Given your tale of woe, you may be suffering under the delusion that sdcards are reliable storage. They are not. If you succeed in extracting yourself out of this, back up to disik, buy a new sdcard and make a copy. That may well fix it. When did you fsck the disk last?
Been a while since I ran fsck, I'll admit. All my media files (videos, music, etc) are on a USB connected drive, so I won't lose any of that. This is just kind of a weird deal. I'm thinking instead of wasting any more time on it, I'm just going to build a new server as a Proxmox VM and run it from that from now on and ditch the Pi from regular use. At least with the VM I can set it to auto backup as often as I like to my backup server.
If you have a usb dedicated to it, why, oh why run on sdcard at all?
Sure, you might have to fart around with your usb initially to get going but the usb boots a Pi for some years. I have a usb disk running mine with an empty sdcard slot. So if the usb boot goes pear shaped, I can get in with an sdcard. Even the other usb3 slot has boot priority, to maximise my chances of taking life easy.
If you have a usb dedicated to it, why, oh why run on sdcard at all?
Sure, you might have to fart around with your usb initially to get going but the usb boots a Pi for some years. I have a usb disk running mine with an empty sdcard slot. So if the usb boot goes pear shaped, I can get in with an sdcard. Even the other usb3 slot has boot priority, to maximise my chances of taking life easy.
This is an old Pi 3 that's I've had running in this capacity for quite a while. Never looked into changing the boot device for whatever reason. It's not a huge deal. Just more of a curiosity than anything as to what went wrong. Thanks!
Moved: This thread is more suitable in <Linux - Embedded & Single-board computer > and has been moved accordingly to help your thread/question get the exposure it deserves.
Usually I have a default boot on the sd card, and everything else is stored on a pendrive. So in such cases I just need to save some settings and reinstall the os. But we still don't know what is wrong. Probably you can find something in logs (dmesg?). Probably your SD card is over.
You can check that SD card on any other host, to see if it is healthy and works perfectly (you just need a reader).
+1 #6. Well worth a web-research on: strace tutorial
Tho OP has probably moved on with a reinstall, I'd be curious to hear the cause!
(Or OP can mark thread as solved with 'Thread Tools' above #1)
+1 #6. Well worth a web-research on: strace tutorial
Tho OP has probably moved on with a reinstall, I'd be curious to hear the cause!
(Or OP can mark thread as solved with 'Thread Tools' above #1)
I haven't done anything yet. Sorry I didn't check in on this thread yesterday. Been busy with holiday related stuff. Anyway, I will definitely research strace and see what I can find out. I appreciate all the suggestions given. Whenever I do my server rebuild, I will definitely do a better job of setting things up. I will go ahead an mark this as solved since I plan to rebuild the server, but if/when I figure out what the problem is I will report back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.