I updated graphics drivers today, which unfortunately causes a black screen at login. I want to access my desktop so I can copy certain files off the laptop while I figure out a fix, but I'm unable to open a terminal at login using Ctrl+Alt+F1.
Booting in recovery mode, I can select the "root" option to drop to a root shell prompt. From here, I can login to my user account through:
su --login myuser
...where I get a message that says "No directory, logging in with HOME=/". However, I cannot change directories to my Desktop, which should be located at /home/myuser/Desktop/. I can cd into the home directory, but it appears like there's nothing in it. Any thoughts on how to access my Desktop through the root shell?
As I know, when you boot into recovery mode, the home partition will not mount automatically.
First locate your home partition using commands like: lsblk
or fdisk -l
or even by having a look at /etc/fstab
:
# grep '/home' /etc/fstab | grep ext
Then mount that partition at /home
(in my case sda2
is my home partition).
# mount /dev/sda2 /home
And copy your file to your desired path, device.
Remember that you may need to remount or mount your partitions with rw
option.
No comments:
Post a Comment