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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-04-2009, 06:38 AM
|
#1
|
|
Member
Registered: Mar 2008
Posts: 58
Rep:
|
/var full increase size in SuSE linux
in my system /var has come to 99%, it is /var/lib/mysql/ibdata1, whihc is huge in size. i've one more extra partition 'home1', where i've 50GB data free, i want to reduce that partition size and add to /var, how can i do this? Thank you in advance.
|
|
|
|
05-04-2009, 07:04 AM
|
#2
|
|
LQ Newbie
Registered: Jun 2008
Posts: 2
Rep:
|
Hi,
1)move one or some large files to /home
2)create symbolic links under /var points to /home/FILES..
|
|
|
|
05-04-2009, 07:14 AM
|
#3
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
You could as well reduce the home partition a bit and create a new one, then mount it under /var/lib/mysql. Or even create a loopback file on /home and mount that with the loop option.
There's also the straight option (the risky one): resize home, move the partitions around a bit and add that space into /var using the gparted livecd or something similar.
|
|
|
|
05-04-2009, 11:12 PM
|
#4
|
|
Member
Registered: Mar 2008
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
You could as well reduce the home partition a bit and create a new one, then mount it under /var/lib/mysql. Or even create a loopback file on /home and mount that with the loop option.
There's also the straight option (the risky one): resize home, move the partitions around a bit and add that space into /var using the gparted livecd or something similar.
|
Thank you for your kind reply, can you be please bit more clear on how to create loopbacl file on /home and mounting it with loop option
|
|
|
|
05-04-2009, 11:16 PM
|
#5
|
|
Member
Registered: Mar 2008
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by jalal.hajigholamali
Hi,
1)move one or some large files to /home
2)create symbolic links under /var points to /home/FILES..
|
thank you jalal,
you mean to say in the following way i need to move?
mv /var/lib/mysql /home1
ln -s /var/lib/mysql /home1/mysql
|
|
|
|
05-04-2009, 11:54 PM
|
#6
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
Quote:
Originally Posted by nanda22
Thank you for your kind reply, can you be please bit more clear on how to create loopbacl file on /home and mounting it with loop option
|
To create a file of a given size you can use dd, for example:
Code:
dd if=/dev/zero of=/home/myloopfile.img bs=1M count=1024
Will create a file full of zeros as big as 1024 MB. You then just format it:
Code:
mkfs.ext3 /home/myloopfile.img
And mount it:
Code:
mount -t ext3 -o loop /home/myloopfile.img /var/lib/mysql
Or wherever. Then you just need to add the relevant entry on the fstab file to make it permament, don't forget to include the "loop" option.
|
|
|
|
05-06-2009, 10:43 PM
|
#7
|
|
Member
Registered: Mar 2008
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
To create a file of a given size you can use dd, for example:
Code:
dd if=/dev/zero of=/home/myloopfile.img bs=1M count=1024
Will create a file full of zeros as big as 1024 MB. You then just format it:
Code:
mkfs.ext3 /home/myloopfile.img
And mount it:
Code:
mount -t ext3 -o loop /home/myloopfile.img /var/lib/mysql
Or wherever. Then you just need to add the relevant entry on the fstab file to make it permament, don't forget to include the "loop" option.
|
Thank you, it was very much helpful
|
|
|
|
05-14-2009, 06:18 AM
|
#8
|
|
Member
Registered: Mar 2008
Posts: 58
Original Poster
Rep:
|
to increase partition size
I could successfully increase size of the partition, using Gparted livecd.
Thanks to you all
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|