I made a really silly
sudo mv /* /some_folder
move command on my remote server vm ubuntu 12.04
that moved my boot folder to
/home/.../somefolder/boot
I can access this folder via a browser terminal that gives me grub rescue.
How can I move the entire folder back to root location so to boot normally?
If that is impossible then if I boot from this location , will I be able to traverse to folders higher than the boot folder, as to at least copy my files via ssh?
UPDATE
I manage to do the following
grub rescue> set prefix=(hd0,1)/home/path_to_boot/boot/grub
grub rescue> set root=(hd0,1)/home/path_to_boot/
grub rescue> insmod normal
grub rescue> normal
Which launches a menu with options in choosing Ubuntu boot. I press c to enter console and get to grub mode to issue linux command.
grub> linux /home/path_to_boot/boot/vmlinuz-3.xx.x-67-generic
grub> initrd /home/path_to_boot/boot/initrd.img-3.xx.x-67-generic
grub> boot
After that I get stuck at
(initramfs)
At this point I have no access to /home folder, only to folders inside /home/path_to_boot/boot.
Any ideas how to proceed?
UPDATE 2
I contacted my servers company and got the option to boot via a live cd.
With it I did a
gksudo nautilus
And managed to copy my files.
Unfortunately though I wasn't able to save my system via grub, but so I got the files I needed.