0

I did something incredibly stupid: while tinkering with mount / umount trying to relocate some space, I did as I read on one website, and dit

sudo umount -f /mnt 

(I don't remember whether I used -f or some other command to force it)

And when I did it, it suddenly crashed ubuntu. Then I couldn't access my profile (because of lack of home directory) I tried this: Deleted home directory. Please help

And it worked, but the problem is, that this new home folder doesn't have any of my old files.

So the question is: Is this unmounting reversible? Or were my files deleted?

To rephrase the question: what could happen while unmounting /mnt ? What can I do to link my old home folder with new?

Typing

editor /etc/fstab

got

file system < mount point < type
proc /proc
/host/ubuntu/disks/root.disk /
/host/ubuntu/disks/swap.disk none

(sorry it took so long, I had problems accesing it)

Another question: What is the difference with /etc/fstab data and the data which can be retrieved by df -h? I manipulated with filesystem using info from df -h and now the info from fstab confuses me

1 Answers1

1

Mounting and unmounting is a runtime thing. They don't write anything to disk - they just alter the in-kernel way the filesystem is mapped. Mouts are loaded from /etc/fstab so unless you've changed that, just restarting the computer would get things back in order. sudo mount -a might even work. It might not.

What would happen on a normal system if you forcefully unmounted /mnt is you would unmount the root filesystem (they would be the same device). The computer would grind to a halt near-instantaneously. On a normal computer, restarting would follow /etc/fstab and remount / (and everything in it, including /mnt) and put everything back in the right place.

In short: Reboot (or boot to a LiveCD for added safety) then see what the damage actually is.

Oli
  • 299,380