How to undo mkswap?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
partitioning swap
add a comment |Â
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?
partitioning swap
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
add a comment |Â
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?
partitioning swap
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
partitioning swap
asked Jan 28 at 4:57
![](https://i.stack.imgur.com/pRcqb.jpg?s=32&g=1)
![](https://i.stack.imgur.com/pRcqb.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
edited Jan 28 at 7:11
answered Jan 28 at 7:03
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
![](https://i.stack.imgur.com/y7JEo.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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