Hello,
I was blocked by the site for 24 hours. That’s why I wasn’t responding. In the meantime, we (Debian forum) found the culprit: swap.
I was able to reboot, but only as root. I’m having trouble accessing my /home as ‘user’.
I change UUID to /dev/sdax in / /home and swap. Restart ok
BUT, I can’t access the desktop. I keep going back to the user login/password page !!!
By going through the console (ctrl+alt+F3), I was able to log in to the console as ‘user’. Now I have this …
You have new mail.
–toto69: /home/toto69: change directory failed : no such file or directory
Logging in with home = “/”.
$
Well good to hear you have made some progress.
Does your home directory still exist? If as root or toto can you ‘cd’ into /home/toto?
I don’t know how to edit my posts to add or change certain things.
Here are the latest manipulations from a live-cd with chroot
┌──(root㉿debian)-[/]
└─# update-initramfs -u
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-initramfs: Generating /boot/initrd.img-6.10.9-amd64
cryptsetup: ERROR: Couldn't resolve device
UUID=2997a3b7-1c1f-47ac-8e59-09c86f52c990
W: initramfs-tools configuration sets RESUME=UUID=2997a3b7-1c1f-47ac-8e59-09c86f52c990
W: but no matching swap device is available.
The pencil icon at the bottom of each post is used for editting, but you may not have that trust level yet.
If I was you, I would not use a LiveCD. You have a root console on your machine now, I think we can still fix it.
Login to the console, and run:
lsblk
mount
And show your results.
I cannot send a photo.jpg ??
Do you want to recover your home directory? As in, are there files etc you want to keep, or would you be happy if it just boots into the GUI as normal, with a fresh, new home directory?
I prefer recover my original if it is possible without braking all the system
I was hoping you were going to say you are happy just getting a new one, because then you could just run
mkhomedir_helper toto
But, its better that you want to recover it, as then you (and I) will learn something).
So, you just resized the partition and there is no chance the home drive was over written so it must still exist somewhere.
Suggestion:
Boot back into the LiveCD, as we dont want to risk over writing anything.
Install testdisk: Partition Recovery and File Undelete
It can help recover partitions.
i think i don’t understand what you say : “mkhomedir_helper toto” create a new user ?
You already have a user called toto or whatever, but no home directory. That commands creates a new home directory along with all default files and sub folders.
But I dont recommend running it if you want to restore your lost home directory.
in the last message, there is after cryptsetup error …
w: initramfs-tools configuration sets RESUME=UUID=xxxxxxxxxxxxxxxxxx
So, xxxxxx is the old UUID swap number. And i don’t find the 'RESUME folder" to change it with the new UUID swap number.
Can you tell me in Kali, where is it ? It is not in /etc/initramfs-tools/conf.d/
i found it finally in /etc/initramfs-tools/conf.d/
I was able to change the swap UUID. Booting is complete. The Phoenix powers on and off, revealing the same console as at the beginning: Reloading system manager configuration
Starting defaut.target
Can you login and see if home has reappeared?
To do this, I need to modify the fstab by commenting out the uuid and specifying /dev/sda for each device.
I don’t know if that will change anything because I didn’t change anything else!
I am not certain about this but if you do
sudo blkid /dev/sda
It should show what the UUID of sda is. That is what should be reflected in fstab.
For example, here is mine:
┌──(kali㉿kali)-[~]
└─$ cat /etc/fstab
UUID=bc014bd1-fae1-45cb-b7b1-4cfc83946d64 / ext4 defaults,errors=remount-ro 0 1
/swapfile none swap defaults 0 0
┌──(kali㉿kali)-[~]
└─$ sudo blkid /dev/sda1
/dev/sda1: LABEL=“root” UUID=“bc014bd1-fae1-45cb-b7b1-4cfc83946d64” BLOCK_SIZE=“4096” TYPE=“ext4” PARTUUID=“3d57c577-01”
Hello,
I’ve been stuck for another 24 hours! So, in the meantime, I fixed the problem by editing the fstab and commenting out the line corresponding to the /home mount, which wasn’t necessary since everything is in the same partition (root and home).
I also took the opportunity to reinstall grub on sda since it was pointing to the wrong partition.
Thank you for your advice and patience.
1 Like
I don’t know how to indicate that the problem is solved !!
1 Like