remounting the SWAP

Forum rules
Before you post please read this

remounting the SWAP

Postby TANUJMINTLINUX on Tue May 20, 2014 8:35 am

Hello!
i am presently using linux mint 16 xfce .
accidently i deleted my swap partition . :lol:
So ,i re -created it using "disks" ,but it does not mounts when i boot i have to mount it manually after i log in .
how can i make it mount automatically when i log in :?:

Please reply faster !
TANUJMINTLINUX
Level 1
Level 1
 
Posts: 40
Joined: Sun Apr 20, 2014 9:23 am

Linux Mint is funded by ads and donations.
 

Re: remounting the SWAP

Postby karlchen on Tue May 20, 2014 8:46 am

Hello, TanujMintLinux.

First of all: A swap device will not be mounted. It will only be activated. The swap mechanism uses the disk device, not a mounted filsystem.
In case you actually mean that swapping is disabled and that you have to re-enable it on every reboot, in this case I could imagine that the UUID of your swap partition has changed, but that the file /etc/fstab still holds the old UUID.
In short words verify and make sure that the details given for "swap" in the file /etc/fstab correspond to the facts.

Sample taken from my /etc/fstab:
Code: Select all
# swap was on /dev/sda5 during installation
UUID=d44a6758-8995-42ed-ac73-e39806848676 none            swap    sw              0       0
Note the word "none" following the UUID. It means "no mountpoint".

HTH,
Karl
User avatar
karlchen
Level 11
Level 11
 
Posts: 3763
Joined: Sat Dec 31, 2011 7:21 am

Re: remounting the SWAP

Postby TANUJMINTLINUX on Tue May 20, 2014 10:14 pm

karlchen wrote:Hello, TanujMintLinux.

First of all: A swap device will not be mounted. It will only be activated. The swap mechanism uses the disk device, not a mounted filsystem.
In case you actually mean that swapping is disabled and that you have to re-enable it on every reboot, in this case I could imagine that the UUID of your swap partition has changed, but that the file /etc/fstab still holds the old UUID.
In short words verify and make sure that the details given for "swap" in the file /etc/fstab correspond to the facts.

Sample taken from my /etc/fstab:
Code: Select all
# swap was on /dev/sda5 during installation
UUID=d44a6758-8995-42ed-ac73-e39806848676 none            swap    sw              0       0
Note the word "none" following the UUID. It means "no mountpoint".

HTH,
Karl



i could not find directory /etc/fstb .. it is actually /etc/fstab.d and is empty
TANUJMINTLINUX
Level 1
Level 1
 
Posts: 40
Joined: Sun Apr 20, 2014 9:23 am

Re: remounting the SWAP

Postby TANUJMINTLINUX on Wed May 21, 2014 5:59 am

TANUJMINTLINUX wrote:
karlchen wrote:Hello, TanujMintLinux.

First of all: A swap device will not be mounted. It will only be activated. The swap mechanism uses the disk device, not a mounted filsystem.
In case you actually mean that swapping is disabled and that you have to re-enable it on every reboot, in this case I could imagine that the UUID of your swap partition has changed, but that the file /etc/fstab still holds the old UUID.
In short words verify and make sure that the details given for "swap" in the file /etc/fstab correspond to the facts.

Sample taken from my /etc/fstab:
Code: Select all
# swap was on /dev/sda5 during installation
UUID=d44a6758-8995-42ed-ac73-e39806848676 none            swap    sw              0       0
Note the word "none" following the UUID. It means "no mountpoint".

HTH,
Karl



i could not find directory /etc/fstb .. it is actually /etc/fstab.d and is empty



and yes , something like-
" uuid #@%$^^^& no mount point"
comes written while booting

just clearly tell me what should i do so swap "ACTIVATES" on booting itself and i dont have to mount the swap partition i created after destorying the one at installation
and i just skip it
TANUJMINTLINUX
Level 1
Level 1
 
Posts: 40
Joined: Sun Apr 20, 2014 9:23 am

Re: remounting the SWAP

Postby altair4 on Wed May 21, 2014 6:33 am

@TANUJMINTLINUX

To do what karlchen suggested in his post:
karlchen wrote:In short words verify and make sure that the details given for "swap" in the file /etc/fstab correspond to the facts.

Run the following command:
Code: Select all
sudo blkid -c /dev/null


In the output of that command should be a line with a "TYPE = swap". The UUID of that swap file is probably different from the one you have in /etc/fstab.

If it is then edit fstab as root:
Code: Select all
gksu gedit /etc/fstab

Change the UUID number of the swap line then save the file.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6124
Joined: Tue Feb 03, 2009 10:27 am


Return to XFCE

Who is online

Users browsing this forum: No registered users and 6 guests