Let me explain my situation. I purchased a D-LINK DNS-325 NAS. It set up software RAID1 using two HDDs. I just dumped it and installed the two drives in Ubuntu 12.04 LTS. Mounted the drives just fine using MDADM. All my data is there and the drives are formatted in EXT3; no problems there. But the D-LINK built a couple of small partitions (a swap and a 500 MB section to house some FTP tools). Naturally, I don't want/need these anymore. These are at the very beginning of the drives. So they are as follows:
- Swap
- 500 MB FTP Tools
- My data
What I'd like to do is delete those two partitions, and resize the existing one with all my data to take up all the space, so things are nice and clean. One is a 2TB drive and the other a 2.5TB drive, so really, I have 500GB of space sitting around not doing anything, which I don't really care too much about.
I just don't want to lose any data so I haven't messed with it yet.
Ideally, I'd love to clean both drives and reformat them in EXT4, then rebuild the array clean and move my data, but I don't have any spare room anywhere. Is this at all possible? If not, I can live with the older EXT3, but I would really like to trim the first two partitions and resize the remaining one. So it would just occupy my data (without the swap and without the 500 MB FTP Tools).
Can anyone please give me a hand. I can't lose this stuff, so I didn't want to just start clearing things out with gParted or anything. I'm no stranger to Linux (ran Gentoo for a few years way back), but not an expert on RAID or MDADM.
Many thanks