help with swap partition [solved]
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
help with swap partition [solved]
hello all, so i installed mint a while back on my laptop, during said installation a friend helped me partition it manually, now i didnt create a swap partition, so i was wondering, do i need one with 4gb of ram and how can i create one when i only have one hard drive on my system , thanks in advance
edit: cheers for all the help folks
edit: cheers for all the help folks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: help with swap partition
Swap partition is not crucial but it is necessary. I think you can't hibernate your computer without it. Install or launch the program named "Gparted" it can let you shrink/resize and create partitions. But be very careful, if you're asking this in forum chances you may make a mistake and lose data is very high.cpowell1164 wrote:hello all, so i installed mint a while back on my laptop, during said installation a friend helped me partition it manually, now i didnt create a swap partition, so i was wondering, do i need one with 4gb of ram and how can i create one when i only have one hard drive on my system , thanks in advance
Try to get help from that friend of yours.
Technically you don't need another physical drive in order to create a swap partition. All partitions can be on same drive, like slices of a cake.
Re: help with swap partition
You can also create a swap file. See here:
http://askubuntu.com/questions/327186/c ... ive#327194
http://askubuntu.com/questions/327186/c ... ive#327194
- austin.texas
- Level 20
- Posts: 12003
- Joined: Tue Nov 17, 2009 3:57 pm
- Location: at /home
Re: help with swap partition
A good rule is to make your swap partition slightly bigger than your installed ram.cpowell1164 wrote:so i was wondering, do i need one with 4gb of ram
If you have 4 GB of ram, make the swap partition slightly bigger than 4 GB.
You can chose the normal procedure of re-sizing one of your partitions on your hard drive to make room for a swap partition.
Alternatively, you can create a swap file, as a substitute for a swap partition - as noted by tolkien .
You can do that manually, or install a package called swapspace
Code: Select all
sudo apt-get install swapspace
I have no idea if swapspace allows hybernation, however...
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
Linux Linx 2018
Re: help with swap partition
Just out of curiosity, could you please post the output of this terminal command >>>
Code: Select all
inxi -p
- austin.texas
- Level 20
- Posts: 12003
- Joined: Tue Nov 17, 2009 3:57 pm
- Location: at /home
Re: help with swap partition
Now I feel dumb, Reorx. I should have thought of that myself...Reorx wrote:Just out of curiosity, could you please post the output of this terminal command >>>Code: Select all
inxi -p
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
Linux Linx 2018
Re: help with swap partition
cpowell1164@cpowell1164-Lenovo-G50-30:~ > inxi -paustin.texas wrote:Now I feel dumb, Reorx. I should have thought of that myself...Reorx wrote:Just out of curiosity, could you please post the output of this terminal command >>>Code: Select all
inxi -p
Partition: ID: / size: 30G used: 7.4G (27%) fs: ext4 ID: /boot size: 479M used: 46M (11%) fs: ext4
ID: /home size: 200G used: 37G (20%) fs: ext4
cpowell1164@cpowell1164-Lenovo-G50-30:~ >
ere ya go
Re: help with swap partition
No need to feel dumb austin... the are many paths to the same destination... I should have asked for a Gparted screen shot! If there is unallocated space on the disk, creating a swap partition would (probably) be relatively easy...austin.texas wrote:Now I feel dumb, Reorx. I should have thought of that myself...Reorx wrote:Just out of curiosity, could you please post the output of this terminal command >>>Code: Select all
inxi -p
Re: help with swap partition
You can make a swapfile. An example: about 4,5 GB swapfile
Add the swapfile to the /etc/fstab
.. add the line
... save and quit
Ctrl o
Ctrl x
Code: Select all
sudo dd if=/dev/zero of=/swap bs=1024 count=4621440
sudo mkswap /swap
sudo swapon /swap
Code: Select all
sudo nano /etc/fstab
Code: Select all
/swap swap swap defaults 0 0
Ctrl o
Ctrl x