LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-05-2005, 10:30 AM   #1
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
enlarging /var partition


hi

because of mysql i'm running into troubles with size of /var partition
but i have second disk which aint even partitioned.

how can i create new partition at second disk and move the current /var partition there ?

thank you
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-05-2005, 10:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
data in /var is typically just regular files, so it's not a scary thing to move. just create teh new partition with cfrdisk or such like, format with mke2fs or mkreiserfs and then mount it somewhere, e.g. /mnt/newvar. next just use "cp -Rv /var/ /mnt/newvar/" and sit back. once done, just update /etc/fstab to relfect the new location of the partition.
 
2 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ReiserFS: Enlarging sandwiched partition with no data loss Lagg Linux - Newbie 7 09-19-2005 02:59 AM
Enlarging existing partition wrangler Linux - Newbie 1 03-14-2005 08:26 AM
var partition UmneyDurak Fedora 1 02-03-2005 09:25 PM
/var partition. dawsonbdky Linux - General 5 08-16-2004 07:12 AM
Moving /var to new partition burnpile Slackware 2 12-10-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration