Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-14-2015, 07:11 AM   #16
LQ Newbie
Registered: Aug 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled

Ok. I'l keep all related things in to a single thread. Thanks.

I have followed some tutorials and was able to reinstall boot-loader successfully. Now Linux is booting as expected. The only thing to be corrected is the swap. I expand the size of it (5GB to 8GB). But it still shows like the image I attached below. It still shows the older value.

[root@localhost ~]# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                               partition	5119992	0	-1

What must I do?
Attached Thumbnails
Click image for larger version

Name:	sw.PNG
Views:	8
Size:	63.9 KB
ID:	19579  

Last edited by PrazSam; 09-14-2015 at 10:42 PM.
Old 09-14-2015, 12:15 PM   #17
Senior Member
Registered: Oct 2003
Posts: 2,558

Rep: Reputation: 213Reputation: 213Reputation: 213
Your attached image shows sda7 at 7.88GB. Post the output of:

free -m
Old 09-14-2015, 08:18 PM   #18
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,799

Rep: Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158
For no grief, leave it as is - why do you need that size swap ?.
"mkswap" will fill the extent, but will change the UUID. You can force the UUID to be the same as ccurrently by passing the value in via the -U parameter.
Old 09-14-2015, 10:34 PM   #19
LQ Newbie
Registered: Aug 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
[root@localhost ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3711        700       3010          0         71        298
-/+ buffers/cache:        330       3380
Swap:         4999          0       4999
It had filled up previously in some worst cases. That's why I thought to do so.
Anyway You are saying, If I want so..
I must off the swap, use the UUID in mkswap command and on the swap.

/dev/sda7: UUID="52485c83-3929-4f5b-bd1c-60492ebd1e5c" TYPE="swap"
This is the UUID. What will be the exact command?
mkswap -U 52485c83-3929-4f5b-bd1c-60492ebd1e5c


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase linux partition size ababil151 Linux - Newbie 5 06-05-2010 11:56 AM
How to increase my Linux partition in a Dual boot system? rajeshkpy Linux - Newbie 4 03-22-2009 08:12 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Increase the size of linux partition sandy Linux - General 3 10-18-2002 02:53 AM
Installing a second HD: How do I increase the size of a Linux partition? entm Linux - General 3 06-01-2002 02:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration