Starting default.target!

Hello

After resizing my root partition, which was too small, I got a nice ‘grub rescue’ file. I ran the following commands:
grub rescue> set prefix=(hd0,1)/boot/grub
grub rescue> set root=(hd0,1)
grub rescue> insmod normal
grub rescue> normal

I access grub. I launch Kali and…

Loading Linux 6.10.9-amd64
Loading initial ramdisk
You are in emergency mode. After logging in, type "journal -xb" to view system logs, "systemct reboot" to reboot, or "exit" to continue bootup

cannot open access to console, the root account is locked
see sulogin ma page...

press enter to continue

reloading system manager configuration
sarting default.target

i don’t know what to do !!! Help !

Reboot again, edit the grub boot options, add

init=/bin/bash

to the end of the kernel cmdline.

That should fix it.

OK, but what do I do next, when I’m on the root console?

If you are in the grub menu and have added the init=/bin/bash, press Escape and if memory serves me press “b” to boot it.

If you are in the emergency console as above, it tells you what to:

type “journal -xb” to view system logs, “systemct reboot” to reboot, or “exit” to continue bootup

So type “exit” and hopefully it will continue to boot.

ah…sorry, in grub menu i pressed “e” then added “init=/bin/bash” at the end of the kernel cmdline ( I thought it was necessary to press “rw init=/bin/bash” !). Then i pressed F10, not escape ! i Should i start again ?

From what Im reading F10 does the same. That should then boot the system.

What are you getting now?

i don’t add “rw” to the line ??

root@(none):/# exit
exit

and i am waiting ! I feel like nothing is happening

What is on screen in front of you?

more precisely


booting a command list

loading linux 6.10.9-amd64
loading initial ramdisk
bash : cannot set terminal process group (-1): inappropriate ioctl for device
bash : no job control in the shell
## root@(none):/# exit
exit
-

OK, I didnt mean for you to type exit there.

It looks like that has brought you to a root shell. You can test that by running normal commands.

So, i don’t understand what to do !

Reboot. Edit the GRUB menu again, yes include the rw.

So,

“rw init=/bin/bash”

Post back here what that gets you.

Kali starts: the phoenix appears for about fifteen seconds. Then it switches to the console

booting a command list

loading linux 6.10.9-amd64
loading initial ramdisk
bash : cannot set terminal process group (-1): inappropriate ioctl for device
bash : no job control in the shell
## root@(none):/#

By resizing sda1, I also deleted the Linux Mint partition and its swap. So I had to recreate another one. Couldn’t the problem come from there? A story of different uuids??

Maybe. The point is you now have a root shell.

To look at the logs run:

journal -xb

It might give a clue as to what is wrong.

#journal -xb
command ‘journal’ not found, did you mean
command ‘xournal’ from deb xournal
try: apt install

i edited /etc/fstab and it seems that /home is on /dev/sda6 but i don’t have /dev/sda6 !!! Only sda1 sda2 sda 3 sda5 !

Funnily enough I get the same message. At least it’s consistent.

I suppose the first thing I would do is check if all your stuff is in the places they should be.

Thats starting to make sense, so there is something wrong with your mapping. Can you try to find where your home directory is now?