Originally Posted by Colin M
This is what I get when I try hostmasters fix, and when I run fdisk -l
root@mint:/home/colin# cd /
root@mint:/# mkdir /host/myhome
mkdir: cannot create directory `/host/myhome': File exists
root@mint:/# mv home/colin /host/myhome
mv: inter-device move failed: `home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
root@mint:/# mv /home/* /host/myhome
mv: inter-device move failed: `/home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
Hostmaster's suggestion was good but there were a couple of problems.
When following a procedure like that it's a good idea to stop when the system gives an error message. The first problem was that /host/myhome already exists, so use /host/<something else> that does not exist, maybe /host/h -- but use /bin/ls -l /host
to see what's in /host first.
The second problem was that /host/myhome/colin also exists. Have you already tried moving your home directory onto /hosts? Were you trying to run the same commands again?
I hope you did not run the final rm -f /home
because that would have deleted /home and all the files under it, and the error messages show that they would not have been copied anywhere else first!
It might be safest if you posted the output of
/bin/ls -ad /home/*
/bin/ls -ad /host/* /host/*/*
before trying again.