So I'm having a problem with kimsufi server. I was installing windows by using this command:
wget -O- ...url.../server.gz | gunzip | dd of=/dev/sda
And I messed up and accidentally ran that command on already existing windows installation, now I can't use RDP anymore, I guess it's all gone now, it somehow wrote over existing installation, even though it had 3% progress at downloading the image. All my important files were on different partition, not on primary where the OS was stored.
Is there a way to transfer all files to another server by using rescue mode ? Can I somehow get FTP server running in Kimsufi Linux rescue mode ? I am thinking of connecting to it from another server (windows), browse files and download/back up them.
I have tried to use WinSCP, but it shows only Linux directories. How can I browse windows partitions through WinSCP ?
Could it be that after running that command it had overwritten my main partition and corrupted other partitions ?
I ran lsblk command and it shows only 2 partitions
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 500M 0 part └─sda2 8:2 0 14.5G 0 part
Or it just shows linux partitions ?
root@rescue:/dev# sudo mount /dev/sda3 /mnt The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.
sudo ntfsfix /dev/sda3and
sudo mount -o rw /dev/sda3 /mnt> now it's showing in WinSCP /mnt folder. Everything is fixed now, thanks.