#1  
Old 22nd December 2011, 00:44
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
Default Increase partition

Ive recently upgraded my virtual machine which is running Lenny and ispconfig. The size of the hard disk has been increased from 10 to 20gb.

Im trying to increase the size of sda2 ext3 bootable partition whils it is still mounted using cfdisk.

I understand I should use cfdisk to delete the current partition and create a new one of an increased size.

So I start this..

Cfdisk /sda

I highlight partition sda2

Delete partition

Write to disk yes

Create new parition,

But if I try to create a partition any larger than the original nothing seems to happen.?

Kernel 2.6.26-2 amD64






I wouldn't normally use this part of the forum for this question, but my second question is, would it be preferable to just create sda3 and then copy /var to the new partition but mount it it from the original position ?
Reply With Quote
Sponsored Links
  #2  
Old 22nd December 2011, 10:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,490
Thanks: 835
Thanked 5,533 Times in 4,351 Posts
Default

Falko wrote a tutorial on how to extend partitions:

http://www.howtoforge.com/linux_resi...xt3_partitions
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd December 2011, 03:31
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
 
Default

Ok thanks ... But I think I have two problems with that method

1; my server is a vim in a data centre so I can't boot off another distro and I'm pretty sure they don't have a rescue service distro to boot off, but I will ask - so I'd have to extend the parition whilst still mounted which I understand is ok on my kernel version.

2; I think I'm going to run into the same problem as when using cfdisk. I think I realise now that I couldn't create a larger partition than before is because the spare space is not directly after the file system partition. There is a swap paritition right after it,.. Like this

Linux .com 2.6.26-2-amd64 #1 SMP Wed Sep 21 03:36:44 UTC 2011 x86_64

The programs included with the Debian GNU/Linux....

:~# fdisk -l

Disk /dev/sda: 21.4 GB, 21485322240 bytes
255 heads, 63 sectors/track, 2612 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00007eb9

* *Device Boot * * *Start * * * * End * * *Blocks * Id *System
/dev/sda1 * * * * * *1245 * * * *1306 * * *498015 * 82 *Linux swap / Solaris
/dev/sda2 * * * * * * * 1 * * * *1244 * * 9992398+ *83 *Linux

Partition table entries are not in disk order

Is that a fair assumption?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize Partition Gecko Technical 5 2nd August 2011 09:14
Stuck in increasing the size of root partition by taking space from XEN LVM aligator007 Installation/Configuration 3 25th November 2010 14:08
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 20:47
HOWTO use a keyfile for an encrypted swap partition charles HOWTO-Related Questions 0 10th January 2009 17:10
how to partition and install ubuntu in free spcae after installed vista sarahanat HOWTO-Related Questions 1 16th July 2008 18:19


All times are GMT +2. The time now is 09:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.