D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Resizing ext3?

 

Grant Sewell wrote:
> Rob Beard wrote:
>> Grant Sewell wrote:
>>   
>>> Hi all,
>>>
>>> My laptop's current partition structure is as such:
>>> Disk /dev/sda: 160 GB, 160039272960 bytes
>>> 255 heads, 63 sectors/track, 19457 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>>
>>>    Device Boot      Start         End      Blocks   Id  System
>>> /dev/sda1   *           1        8678    69706003    7  HPFS/NTFS
>>> /dev/sda3            8679       17903    74091780   83  Linux
>>> /dev/sda2           18153       19457    10474380    5  Extended
>>> /dev/sda4           17904       18152     1992060   82  Linux swap
>>> /dev/sda5           18153       19457    10474380   83  Linux
>>>
>>> If I were to remove the swap and Extended partition, and re-create the 
>>> swap at the end of the disk, thus leaving approx. 10GB of unpartitioned 
>>> space between the existing Ext partition and the new swap... if I were 
>>> to do that, would I be able to successfully resize the existing Ext 
>>> partition to absorb this 'left-over' space?  Have any of you had 
>>> problems resizing Ext3 like this?
>>>
>>> Cheers.
>>> Grant
>> Do you mean you'd want to remove /dev/sda5, /dev/sda4 and /dev/sda2 then 
>>   increase the size of /dev/sda3?
>>
>> I wouldn't have thought it would be a problem as long as they're not 
>> mounted.  You could probably do it with gparted on the System Rescue CD 
>> or maybe an Ubuntu/Fedora/etc live CD.  This guide will may help:
>>
>> http://www.howtoforge.com/linux_resizing_ext3_partitions
>>
>> I'd suggest backing up any important data first though if you have got 
>> room on another hard disk or some other media just in case.
>>
>> Rob
> Hi Rob,
> 
> That's exactly what I want to do. I know it's possible, I was just 
> wondering if anyone has had any scare stories. Currently my lappy is 
> booting Ubuntu, BackTrack and Vista - I was planning on removing 
> BackTrack (I'd love to remove Vista, but it's unfortunately useful for 
> Microsoft training).
> 
> Grant.
> 

Well I've not had any issues with gparted myself, even re-sizing NTFS 
partitions.

I'd suggest taking a backup though if you have anything important on 
there just in case.

Rob

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html