LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-14-2015, 07:11 AM   #16
PrazSam
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.

Code:
[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:	11
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
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

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

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

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
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
PrazSam
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
@kilgoretrout
Code:
[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
@syg00
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.

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 AM.

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