How to undo mkswap?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












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?










share|improve this question

















  • 1




    Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
    – Takkat
    Jan 28 at 8:59














up vote
0
down vote

favorite












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?










share|improve this question

















  • 1




    Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
    – Takkat
    Jan 28 at 8:59












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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?










share|improve this question













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?







partitioning swap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 at 4:57









Razgriz

1034




1034







  • 1




    Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
    – Takkat
    Jan 28 at 8:59












  • 1




    Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
    – Takkat
    Jan 28 at 8:59







1




1




Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
– Takkat
Jan 28 at 8:59




Stop using that flash drive and proceed with data recovey tools to recover your files: See e.g. askubuntu.com/questions/286181/… and askubuntu.com/questions/94421/…
– Takkat
Jan 28 at 8:59










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










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.






share|improve this answer






















  • The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
    – Takkat
    Jan 28 at 8:57










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000582%2fhow-to-undo-mkswap%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










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.






share|improve this answer






















  • The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
    – Takkat
    Jan 28 at 8:57














up vote
1
down vote



accepted










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.






share|improve this answer






















  • The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
    – Takkat
    Jan 28 at 8:57












up vote
1
down vote



accepted







up vote
1
down vote



accepted






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.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 28 at 7:11

























answered Jan 28 at 7:03









stumblebee

2,3063922




2,3063922











  • The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
    – Takkat
    Jan 28 at 8:57
















  • The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
    – Takkat
    Jan 28 at 8:57















The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
– Takkat
Jan 28 at 8:57




The swap partition will by now way be overwritten in total. If it was not used there may not be a single bit damaged. Most data will still be recoverable.
– Takkat
Jan 28 at 8:57

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000582%2fhow-to-undo-mkswap%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491