0

I was following a tutorial on installing TensorFlow on an NVidia GPU Board, when it asked me to make a swap file on a flash drive, in order to make sure that I have enough space when I proceed on the installation.

I ran the following commands:

$ sudo mkswap /dev/sda1  
$ sudo swapon /dev/sda1  

And I used a 64GB Flash Drive, but there were a little over 2GB Worth of Files in there as I executed the commands.

Is there a way to undo the mkswap command and make sure that I manage to get the "trapped" files before I do a full format?

Razgriz
  • 103

1 Answers1

1

Any files that were in that partition has been overwritten with swap data. There is no undoing that. Any other partitions will still be intact.

stumblebee
  • 4,379