How To Create a Swap Partition on a flash drive

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
So I am looking to create a swap partition on a flash drive for a program I am working on. We have successfully created the partition on the drive, but when we plug the drive into the router, the router is unable to read the partition. When we plugged the drive into a different computer, we had to manually activate the partition each time. All of the guides we have found on automatically activating the drive only apply to a single computer. Is it possible to have the partition automatically activate on any computer?
boot partitioning hard-drive swap
add a comment |Â
up vote
0
down vote
favorite
So I am looking to create a swap partition on a flash drive for a program I am working on. We have successfully created the partition on the drive, but when we plug the drive into the router, the router is unable to read the partition. When we plugged the drive into a different computer, we had to manually activate the partition each time. All of the guides we have found on automatically activating the drive only apply to a single computer. Is it possible to have the partition automatically activate on any computer?
boot partitioning hard-drive swap
The normal way to activate swap is via a line in the file/etc/fstabin the operating system, that you run (or intend to run). You can also activate it 'manually' viasudo swapon -aThere is a detailed description inman swapon. Finally, you can make the system runsudo swapon -aautomatically in a way that does not cause problems, if the drive with swap is not plugged in.
â sudodus
May 27 at 4:22
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I am looking to create a swap partition on a flash drive for a program I am working on. We have successfully created the partition on the drive, but when we plug the drive into the router, the router is unable to read the partition. When we plugged the drive into a different computer, we had to manually activate the partition each time. All of the guides we have found on automatically activating the drive only apply to a single computer. Is it possible to have the partition automatically activate on any computer?
boot partitioning hard-drive swap
So I am looking to create a swap partition on a flash drive for a program I am working on. We have successfully created the partition on the drive, but when we plug the drive into the router, the router is unable to read the partition. When we plugged the drive into a different computer, we had to manually activate the partition each time. All of the guides we have found on automatically activating the drive only apply to a single computer. Is it possible to have the partition automatically activate on any computer?
boot partitioning hard-drive swap
asked May 27 at 1:34
Terry
1
1
The normal way to activate swap is via a line in the file/etc/fstabin the operating system, that you run (or intend to run). You can also activate it 'manually' viasudo swapon -aThere is a detailed description inman swapon. Finally, you can make the system runsudo swapon -aautomatically in a way that does not cause problems, if the drive with swap is not plugged in.
â sudodus
May 27 at 4:22
add a comment |Â
The normal way to activate swap is via a line in the file/etc/fstabin the operating system, that you run (or intend to run). You can also activate it 'manually' viasudo swapon -aThere is a detailed description inman swapon. Finally, you can make the system runsudo swapon -aautomatically in a way that does not cause problems, if the drive with swap is not plugged in.
â sudodus
May 27 at 4:22
The normal way to activate swap is via a line in the file
/etc/fstab in the operating system, that you run (or intend to run). You can also activate it 'manually' via sudo swapon -a There is a detailed description in man swapon. Finally, you can make the system run sudo swapon -a automatically in a way that does not cause problems, if the drive with swap is not plugged in.â sudodus
May 27 at 4:22
The normal way to activate swap is via a line in the file
/etc/fstab in the operating system, that you run (or intend to run). You can also activate it 'manually' via sudo swapon -a There is a detailed description in man swapon. Finally, you can make the system run sudo swapon -a automatically in a way that does not cause problems, if the drive with swap is not plugged in.â sudodus
May 27 at 4:22
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably. But if you like, here how its done:
Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably. But if you like, here how its done:
Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
add a comment |Â
up vote
4
down vote
I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably. But if you like, here how its done:
Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
add a comment |Â
up vote
4
down vote
up vote
4
down vote
I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably. But if you like, here how its done:
Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here
I wouldn't suggest creating a swap partition on a flash device. The read/write rate when swapping would shorten the life of the drive considerably. But if you like, here how its done:
Open disks from dash, and follow the images below in the order that they are listed:
Click the + sign to create a partition

Make sure the right type is choose, and name is optional, and them click create

Click the little wheels, to change the partition type

Make sure the right type is chosen, and click change

Notice that the partition type is now Swap

Click on the little square to mount, and that's it

This answer was copied from here
answered May 27 at 4:04
SaWin
1067
1067
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
add a comment |Â
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
+1 for the warning to avoid swapping to a flash drive. @Terry, Not only will it wear out, it is also very show. But if you use a modern SSD (via USB) the lifetime will be longer (and it is much faster). You get a more reliable swap partition, if you connect a hard disk drive via USB (slower than the SSD, but you can expect a longer life).
â sudodus
May 27 at 4:16
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%2f1040739%2fhow-to-create-a-swap-partition-on-a-flash-drive%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
The normal way to activate swap is via a line in the file
/etc/fstabin the operating system, that you run (or intend to run). You can also activate it 'manually' viasudo swapon -aThere is a detailed description inman swapon. Finally, you can make the system runsudo swapon -aautomatically in a way that does not cause problems, if the drive with swap is not plugged in.â sudodus
May 27 at 4:22