Ask Your Question
2

specified switch root path sysroot does not seem to be an OS tree

asked 2017-10-27 14:52:52 -0500

newtonnh gravatar image

Hi There!

I'm a newbie Linux user, I've searched about this on Google before ask, the case is I don't make any idea what I should I search exactly on Google, because I never had any problem like this with Linux before... In advance, there are some files very important to my work, so I did not want to format it. My laptop has dual boot with Fedora 26 and Windows 10.

The case is, today I was installing and configuring KDump on my Fedora 26, and during the final step, I configured the crashkernel as 128M, and the system advised me to reboot, and I did it. But the system isn't load anymore, simply goes to emergency mode, as follow:

Generating "/run/initramfs/rdsosreport.txt"

Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting then and attach it to a bug report.

Well, I did it, and analizing the results , I found these lines with this:

"initrd-switch-root.service: Main Process exited, code=exited, status=1/FAILURE Failed to start Switch Root"

Before, I used this command to get more details:

systemctl status initrd-switch-root.service

Analizing the response, I found this lines:

Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing initrd-switch-root.service: Main Process exited, code=exited, status=1/FAILURE Failed to start Switch Root. initrd-switch-root.service: Unit entered failed state. initrd-switch-root.service: Triggering OnFailure= dependencies. initrd-switch-root.service: Failed with result 'exit-code'."

During my searches on Web, I found some people with this problems, but some responses indicating (maybe) a dracut problem, so I tryied to run this command:

dmesg|grep dracut

This return to me 5 lines with a lot of informations, but refer about:

dracut-cmdline dracut-pre-udev dracut-pre-pivot dracut-pre-pivot dracut-initqueue

All of these with "res=success" in the end of line

Someone could help me please? What problem could it be? I do not know where to start. Thanks in advance

edit retag flag offensive close merge delete

Comments

Your problem seems related to the one here. Try the solution there, and report back.

It looks like you are not alone and your problem (even though on RHEL 7.5) has been reported on Bugzilla

florian gravatar imageflorian ( 2017-10-28 23:33:49 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2018-02-23 11:31:52 -0500

technicaldepartment gravatar image

Confirmed, worked also for me. Many thank's.

edit flag offensive delete link more
1

answered 2017-11-08 08:57:17 -0500

kaestchen gravatar image

i had the same issue after upgrading to F26.

I solved the problem by following in the emergency shell:

mount - o remount,rw /sysroot
rm -rf /sysroot/etc/os-release
cp /usr/lib/os-release /sysroot/etc
exit

hard reboot

edit flag offensive delete link more

Comments

nice answer, resolve my problem, thanks man

willtrigo gravatar imagewilltrigo ( 2017-11-14 01:49:08 -0500 )edit

Agreed. Very, very nice. Saved my butt! THANK YOU!

jtison gravatar imagejtison ( 2017-11-14 19:46:12 -0500 )edit

Today my laptop lost battery charge, When I power on, It showed this error and this was the solution, thank you!

oscartzgz gravatar imageoscartzgz ( 2017-11-15 19:34:40 -0500 )edit

glad to help. feel free to vote

kaestchen gravatar imagekaestchen ( 2017-11-16 16:44:11 -0500 )edit

thanks a lot, it was occurred with my fedora after kernel update

imp gravatar imageimp ( 2017-12-06 02:43:39 -0500 )edit
-1

answered 2017-10-28 16:52:45 -0500

newtonnh gravatar image

Update:

Hi There! For those who are in the same situation, I found on the Internet a software for Windows to access Linux directories and files, it is also possible to perform backups of the directory and files, I realized that it has some limitations regarding running backups, some files can not copy, but it has helped me a lot, the name of the software is Linux Reader. I hope I have helped in some way

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-27 14:52:52 -0500

Seen: 7,999 times

Last updated: Nov 08 '17