[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Merge Extra free space into current linux partition



> From: Kushal Koolwal [mailto:kushalkoolwal@hotmail.com] 
> Sent: Thursday, October 22, 2009 5:32 PM
> 
> 
> I am using Debian Lenny on x86 computer installed on my SATA 
> hard drive - /dev/sda5. 
> 
> # cfdisk /dev/sda
> **************************************************************
> *****************
>     sda1        Boot        Primary   FAT16          [DOS     
>    ]      2146.80 
>     sda2                    Primary   NTFS             []     
>          10001.95
>     sda5                    Logical   Linux ext3              
>          15002.92
>                             Pri/Log   Free Space              
>         132887.63
> **************************************************************
> *****************
> 
> I would like to merge all the extra Free Space (132887.63) as 
> shown above into my current Debian partition (/dev/sda5).
> 
> How can I do that without having to move all the data and 
> reformatting/re-creating partition.
> 
> Kushal Koolwal

Use fdisk (or similar tool) to change the end cylinder of the partition to
the end of the disk.  Do not change the start cylinder.  Then run "resize2fs
/dev/sda5" to grow the filesystem to take up the rest of the space.

Oh, of course make sure you have a backup first.


Reply to: