You are not logged in.
To disable an incorrectly set automatic display manager login, I booted via a USB installation media. However, instead of typing
mount /dev/sda1 /mnt
arch-chroot /mntto proceed with systemctl operations, I typed
mkswap /dev/sda3
mount /dev/sda1 /mnt
arch-chroot /mntUpon restarting the system, I now receive the following error message:
Login incorrect
Give root password for maintenanceWhat steps do I need to take to correct my error?
Last edited by Michael Gruenstaeudl (2018-01-29 23:02:53)
Offline
What did sda3 use to contain? Post the contents of your fstab and the output of blkid.
Offline
It's hard to tell. What is your disk partition layout? What is supposed to be on /dev/sda3? If it's swap space, that shouldn't really cause any issues (unless you had hibernated the system before).
When you start up your system, at what point does that message appear? Where do you enter the login credentials? Or does it appear just out of the blue?
... or does it boot all the way up to a working login screen? If so, I would claim that not too much is broken (but again, this is hard to tell with the given information), and maybe it's just a matter of setting the correct keyboard layout.
--edit ninja'd
Last edited by ayekat (2018-01-29 22:15:56)
Offline
It's hard to tell. What is your disk partition layout? What is supposed to be on /dev/sda3? If it's swap space, that shouldn't really cause any issues (unless you had hibernated the system before).
When you start up your system, at what point does that message appear? Where do you enter the login credentials? Or does it appear just out of the blue?
... or does it boot all the way up to a working login screen? If so, I would claim that not too much is broken (but again, this is hard to tell with the given information), and maybe it's just a matter of setting the correct keyboard layout.--edit ninja'd
/dev/sda2 is my regular swap space, whereas /dev/sda3 is supposed to be /home/
I, thus, typed the following commands
mkswap /dev/sda2
swapon /dev/sda2in the hope of setting the record straight and "unswapping" /dev/sda3, but to no avail.
The boot process follows the regular process up the point that should produce the login, but then fails with the notification
Login incorrect
Give root password for maintenance
(or press Control-D to continue):Pressing Ctrl-D results in the error message:
EXT4-fs (sda3): VFS: Can't find ext4 filesystemThe output of command blkid is (shortened, given that I have to type from a different computer):
/dev/sda1: UUID="..." TYPE="ext4" PARTUUID="..."
/dev/sda2: UUID="..." TYPE="swap" PARTUUID="..."
/dev/sda3: UUID="..." TYPE="swap" PARTUUID="..."Offline
So you've nuked your home partition then. The easiest fix would be to recreate the filesystem and then restore all the files from your backup.
Offline
What did sda3 use to contain? Post the contents of your fstab and the output of blkid.
The content of /ect/fstab is (shortened, given that I write from a different computer):
/dev/sda1 / ext4
/dev/sda3 /home/ ext4
/dev/sda2 none swapBy comparison, the output of command blkid is (again shortened, given that I have to type from a different computer):
/dev/sda1: UUID="..." TYPE="ext4" PARTUUID="..."
/dev/sda2: UUID="..." TYPE="swap" PARTUUID="..."
/dev/sda3: UUID="..." TYPE="swap" PARTUUID="..."I understand that /dev/sda3 is currently not set to ext4, but I am uncertain as how to rectify the issue.
Offline
So you've nuked your home partition then. The easiest fix would be to recreate the filesystem and then restore all the files from your backup.
Thanks for the blunt and clear answer. I have restored /home/ as you suggested.
Wow ... a single misspelled command has such devastating consequences. I still love Arch Linux, though!
Marked as solved.
Offline
That was just the easiest fix, as only the first block was overwritten it may have been possible to reset the partition type and use fsck to restore the superblock from one of the on-disk backups.
Offline