简体   繁体   English

用户文件夹意外重定位,没有权限将其移回(只读文件系统)

[英]User folder accidently relocated, don't have permissions to move it back (Read only file system)

Thanks to a rashly typed mv command and my inexperience in installing LaTeX packages, I managed to move my user folder--let's call it /home/bob for the purposed of not revealing my name--somewhere else. 由于输入了错误的mv命令以及我在安装LaTeX软件包方面的经验不足,我设法移动了用户文件夹-为了不透露自己的名字,我们将其命名为/home/bob在其他地方。 I started a recovery terminal and found bob buried down in usr/share/texlive/texmf-dist/tex/latex . 我启动了一个恢复终端,发现bob埋在usr/share/texlive/texmf-dist/tex/latex

I tried moving the folder back (going to usr/share/texlive/texmf-dist/tex/latex and running mv bob /home/ , but I got the message 我尝试将文件夹移回(转到usr/share/texlive/texmf-dist/tex/latex并运行mv bob /home/ ,但是我得到了消息

mv: cannot move 'bob' to '/home/bob': Read-only file system

I don't really know what else to do to fix this... Do I just use chmod and change the permissions or do I have to remount something? 我真的不知道该怎么做才能解决此问题。。。我只是使用chmod并更改权限,还是必须重新安装某些内容? Since these are all my files, I'd rather ask and be sure than play around more and just make things worse. 因为这些都是我文件,我宁愿问,一定比玩更,只是使事情变得更糟。

EDIT: I tried chmod 777 bob but got the message 编辑:我尝试chmod 777 bob但得到的消息

chmod: changing permissions of 'bob': Read-only file system

Also, mkdir /home/bob gave me a similar error (Read-only file system) 另外, mkdir /home/bob给了我类似的错误(只读文件系统)

Use chmod 使用chmod

chmod 777 bob

mv bob/ /home

or You can create a folder with similar name 或者您可以创建一个名称相似的文件夹

mkdir /home/bob

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM