How to Extend primary partition(/dev/sda1) in linux?

Solution 1:

You have to use resize2fs command,Which is used to resize your partition.

For more information refer this link.

http://www.howtoforge.com/linux_resizing_ext3_partitions

Ex:

 resize2fs /dev/sda 6000M

You can use resize2fs to increase as well as decrease the size of partition. First,you have to decrease the size of /dev/sdb.Then,After increase the size of /dev/sda(Primary partition).

I hope this will helps you.

Solution 2:

The Risk Free way would be if you can copy(mirror) all your data from /dev/sda1 to some other partition.

After this is done, I would recommend to go with GParted live CD and execute all partition modifying commands from there. This seems to be the most secure way of doing it.