Resizing an extended partition including unallocated space

Asked by muralinux

My partitions are as under :

root@galaxy-eeepc:/home/muralinux# fdisk /dev/sda

root@galaxy-eeepc:/home/muralinux# parted
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA ST9160827AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 32.3kB 3290MB 3290MB primary ext2 boot
 2 3290MB 76.1GB 72.8GB primary ext3
 3 76.1GB 140GB 64.0GB extended
 5 76.1GB 78.1GB 2000MB logical linux-swap(v1)
 6 78.1GB 98.1GB 20.0GB logical ext4
 7 98.1GB 140GB 42.0GB logical ext4
 4 160GB 160GB 8225kB primary

Here I wish to resize the partition no 3 (extended ) from existing 64.0 GN to 84.0 GB by including an unallocated space of 20.0 GB. Please enlighten me if it is possible and if so the steps involved .

Murali

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gparted Edit question
Assignee:
No assignee Edit question
Solved by:
muralinux
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

Try using gparted, the graphical partition tool. Its very easy.

Revision history for this message
marcus aurelius (adbiz) said :
#2

that depends on the circumstance. is the unallocated space directly in front of partition number 3?
you can only extend a partition if the unallocated space is directly in front of or behind the partition that is being extended.

Revision history for this message
muralinux (muralinux) said :
#3

Thanks for the responses received.However,I solved the problem by using parted (command line) utility as follows :

parted resize 3 76.1Gb 159.90Gb
That is I enlarged the existing extended partition to include the unallocated space lying just after it .

Muralinux