LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-15-2008, 03:27 AM   #1
dongli
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
[help] resize partition (/var)


Hi, everyone

My partition layout is

Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a4908

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          12       96358+  83  Linux
/dev/sda2              13         134      979965   83  Linux
/dev/sda3             135         256      979965   83  Linux
/dev/sda4             257        9729    76091872+   5  Extended
/dev/sda5             257        2688    19535008+  83  Linux
/dev/sda6            2689        5120    19535008+  83  Linux
/dev/sda7            5121        9497    35158221   83  Linux
/dev/sda8            9498        9729     1863508+  82  Linux swap / Solaris
The mount points of each partition are

Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1                93307     18469     70021  21% /boot
/dev/sda2               964532    218880    696656  24% /
/dev/sda3               964532    151488    764048  17% /var
/dev/sda5             19228276   1938232  16313296  11% /usr
/dev/sda6             19228276   1364260  16887268   8% /home
/dev/sda7             34606040   5789552  27058580  18% /storage
The problem is that there is no sufficient space in /var, so I want to enlarge /dev/sda3. How can I do this? Can I squeeze some space out from sda5 to sda3?

Thanks for help
 
Old 07-15-2008, 03:31 AM   #2
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
There is a useful GUI partitioning tool called 'gparted' which will resize and move partitions. Run it from a Live CD that you can download here

Edit: backup your data and read documentation about partitioning before you try using it.

Last edited by Greenfuse; 07-15-2008 at 03:37 AM.
 
Old 07-15-2008, 01:26 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Just wondering, is this just a home pc or are you using it for a mail server?
 
Old 07-15-2008, 01:34 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
In the future, when you plan on installing your next Linux install, use LVM, it'll make your life that much easier when you need to resize partitions, with less hassle and headache.
 
Old 07-16-2008, 03:33 AM   #5
dongli
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrrangerman View Post
Just wondering, is this just a home pc or are you using it for a mail server?
It's just my home pc. I will try to use LVM next time!

It seems impossible to shrink /dev/sda5 from beginning part.
 
  


Reply



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
/var full - need to resize RichardAnderson Linux - General 12 11-11-2006 08:49 PM
can anyone please help me with resize /var kafnir Linux - General 1 12-08-2005 09:22 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
resize /var caladbolg Mandriva 1 09-25-2004 01:38 PM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM

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

All times are GMT -5. The time now is 02:54 PM.

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