I'm a total novice that made a mistake while trying to learn about Linux.
While trying to figure out how to mount my NTFS data drive (with all my back up photos, music, etc. on it) to a new Ubuntu 18.04 LTS machine, I blindly followed a video and did:
mkfs.ntfs -L USBServerData /dev/sdb1
I looked and discovered that I may be reformatting my only drive with this info on it. When the process was at 8%, I was jumping around having a fit and knocked the external drive housing down and it unplugged. Now, I've tried to plug it back in and the drive isn't being discovered or mounted in my Unitek USB HDD Docking station when I plug it into my Lubuntu computer to double check. I wonder if I partially wrote a new data table thing but didn't erase my data?
I haven't plugged in or used the HDD since, in an effort to not overwrite any of the data.
Please give step by step instructions (prefer to use and learn on command line) for:
- Cloning the drive to another HDD so I can try to fix the clone without totally killing the data on the original.
- Recovering hopefully all of the data on the entire HDD. Backing it up to a new HDD & reusing the old drive in a new capacity.
- Mounting the HDD in a new Linux machine as a secondary drive so I can use this drive as a local drive on the new machine.
Sorry for being so clueless. Thank you for any help you can offer.
I'm using the following laptops to access the remote (headless) computers that I messed up.
- Old Toshiba running Lubuntu 18.04 LTS.
- Windows 10 using SSH and Ubuntu 18.04 LTS.
- The headless server I'm trying to make and load up with the old HD data is an old Acer Revo running Ubuntu Server 20.04 and NextCloud (all working fine, currently a new install)
- the headless server I was trying to stick the data drive on to unload it to the new NextCloud server:
- New little Ubuntu 18.04 LTS Server mini PC that I have SandStorm.io on (that I may have now messed up)
- RPi with Ngnix reverse proxy server, PiVPN and I'm about to put on a Firewall & Pi Hole. I'm trying to learn how to use computers and Linux.