I bought/rent a dedicated server from nocix with Centos 6.8 installed, also came with 2 hard drives
&
and I think I made a mistake by partitioning the second drive
so I now have
which I mounted to a folder called
then transferred all files in a user directory called
and deleted all files in
then mounted the drive to
but when I rebooted I lost the ability to connect via SSH, I contacted nocix and they said I had to reload with the SystemRescueCd.
I did that and have been reading/following the steps outlined here:
https://www.system-rescue-cd.org/Sys...a-damaged-Grub
See the below error messages I got when I ran
Code:
grub-install /dev/sda
Code:
df: Warning: cannot read table of mounted file systems: No such file or directory df: Warning: cannot read table of mounted file systems: No such file or directory Could not find device for /boot: Not found or not a block device.
I am very new to this so I'm not sure what to do.. It's also quite urgent as the websites this server is hosting are down because of I can't get it back online.
See my partitions below. I've got 2 drives sda and sdb. loop0 is the linux installation and sda1 is the boot drive.
Code:
[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN]
[loop0 ] [squashfs ] [<unknown> ] [ 275.14 MB] [ 7] [ 0]
[sda1 ] [ext2 ] [<unknown> ] [ 250.00 MB] [ 8] [ 1]
[sda2 ] [LVM2_member] [<unknown> ] [ 119.00 GB] [ 8] [ 2]
[sdb1 ] [ext3 ] [/userdata ] [ 1.82 TB] [ 8] [ 17]
[dm-0 ] [ext4 ] [<unknown> ] [ 110.25 GB] [253] [ 0]
[dm-1 ] [ext4 ] [<unknown> ] [ 1.00 GB] [253] [ 1]
[dm-2 ] [swap ] [<unknown> ] [ 7.72 GB] [253] [ 2]
Output of
Code:
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
Reading all physical volumes. This may take a while...
Found volume group "vg" using metadata type lvm2
And output of
Code:
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
ACTIVE '/dev/vg/root' [110.25 GiB] inherit
ACTIVE '/dev/vg/tmp' [1.00 GiB] inherit
ACTIVE '/dev/vg/swap' [7.72 GiB] inherit