0

I did a mistake, I was logged as root and I moved the home folder accidentally. I don't have a GUI as I am running on a Openstack virtual machine setup by someone else. I can't boot from a LiveUSB and move it back.

Here is what it looks like

  • ....
    • (here there should be home)
    • root
      • mydirectoryname (this used to be the homefolder)
        • mydirectoryname (it has the same name as its parent. I don't care if i loose what is inside)
        • Ubuntu

Please, help me get things as this again:

  • ....
    • home
      • Ubuntu
    • root

Which command should I execute ? Thank you for your help !!

5
  • Why not boot from a LiveUSB and move it back?
    – Pilot6
    Aug 16, 2017 at 21:08
  • Im using a virtual machine openstack at my company, I cannot do that...
    – firepod
    Aug 16, 2017 at 21:09
  • Then edit your question and give a full description of the problem. Now it is very unclear.
    – Pilot6
    Aug 16, 2017 at 21:11
  • And what is the problem to move the directory back?
    – Pilot6
    Aug 16, 2017 at 21:15
  • I don't know what command to execute. I really don't want to do a mistake... Could you help me ? :)
    – firepod
    Aug 16, 2017 at 21:16

1 Answer 1

0

Run

mv /root/mydirectoryname /home
3
  • Do I need to be in a specific folder to execute this ?
    – firepod
    Aug 16, 2017 at 21:20
  • It does not matter. I used absolute path.
    – Pilot6
    Aug 16, 2017 at 21:20
  • Thank you so much ! Didn't want to get killed for my first week of internship
    – firepod
    Aug 16, 2017 at 21:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .