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

Re: join 2 contiguous ext3 partitions

On Fri, Jul 1, 2011 at 9:45 AM, Joao Ferreira Gmail
<joao.miguel.c.ferreira@gmail.com> wrote:
> Hello,
> can I somehow join 2 ext3 partitions ?
> /dev/sda6      28G   15G   12G  56% /media/armazem
> /dev/sda7      19G  8.2G  9.3G  47% /media/despensa
> they both contain data.
> thx
> Joao

Use lsof to make sure nothing live is accessing "/media/despensa.

Remount it read-only

Copy its contents to /media/armzem, with something like "rsync", or
re-arrange your materials into a saner directory configuration.
mounting configuration. (/media is normally used for auto-mounting
CD's and other detachable media.) Remounting /dev/sda6 as /external/,
for example, and moving "armazem" contents into a directory called
"/external/armazem" should do. Then you can copy "/media/despensa" to
"/external/despensa". Your partition has the space.

Delete /dev/sda7: use gparted to do this step.

Expand /dev/sda6 to use the space formerly used by /dev/sda7 with gparted.

Expand the filesystem on /dev/sda6 to fill the enlarged partition.

Voila, you're done!

Reply to: