Ask Your Question

Emergency mode save .txt - no way to list disks

asked 2017-12-16 14:00:54 -0600

dominicM gravatar image

For unknown reason I am unable to boot and I am dropped into Emergency mode. Problem is I can't even start troubleshoting because it appears to be impossible to save the rdsosreport.txt file as suggested by the shell! I cannot find a single shred of documentation on how to save it, specifically how to list devices/partitions to find the one to mount. I also see no documentation relating to available command in Emergency shell so I have no idea if there is indeed some command available to list partitions. lsblk and df commands are not available in Emergency shell.

How can I mount a usb drive in Emergency shell without the ability to list storage devices? Is there a list of available commands in Emergency shell?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2017-12-16 14:37:27 -0600

sideburns gravatar image

Welcome to ask.fedora. That's an excellent question! I know that if you're booted into single-user mode all that gets mounted is the root filesystem, which is why /usr must be part of that partition. However, that doesn't help much if you can't boot at all. I seem to remember having some Help function available the one time I needed it, but the details are a tad fuzzy. Try using help as a command, or if that doesn't work, maybe ? will. I know that there's a command to list disks and one to list the partitions, and that once you know where / is you can mount it. I wish I could give you more help now, but alas, I seem to have recycled those neurons. If you can find the help screen, copy the commands down and post them here, I can probably talk you through getting the proper partition mounted. Good luck, keep us informed and we'll see what we can do once we have more info.

edit flag offensive delete link more


Help command does list many available commands like cd but is missing others like ls making it untrustworthy and so useless as who knows what else is missing or wrong. There are no commands to list storage devices. I will add what I had to do as an answer. +1 for getting me to try other things.

dominicM gravatar imagedominicM ( 2017-12-17 08:19:08 -0600 )edit

answered 2017-12-17 08:26:52 -0600

dominicM gravatar image

updated 2017-12-17 08:32:39 -0600

I did not find a reasonable solution to saving the a file from Emergency Mode but I did find a hacky way to get it done. I would call Emergency mode broken as it does not have a command to list storage devices, at least help menu does not list it.

In the end I listed connected devices like so:

cd /dev
ls -lrta | grep sd*

Then I randomply picked what I reasonably suspected was one of the several data drives and mounted the device like so:

mkdir /datadsk
mount /dev/sd? /datadsk

Finally I copied the file, unmouted and rebooted.

cp /run/initramfs/rdsosreport.txt /datadsk
umount /datadsk

CTRL+ALT+DEL to reboot

To move the file off the system data disk I had to boot with a live image and copy the file to a usb drive.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-16 13:47:54 -0600

Seen: 227 times

Last updated: Dec 17 '17