Merge 2 partitions of different physical disks

Asked by Rômulo Ristow

Folks,

I have an working installation of Ubuntu 10.04 on the 8 Gb SSD of my Acer Aspire One ZG5. I'm suffering because of very low free space in this partition. I can't buy a bigger SSD card but I have a 120 Gb e-SATA USB HDD (recognizable by BIOS). I was thinking about merging the SSD 8 Gb (ext2) and the 120 Gb (could be ext2 too) without losing the data from the 8 Gb SSD.

Is this possible?

Thank you in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gparted Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
john (johnlpayton) said :
#1

I have a good sized HD that has WinXP. I did not want to fuss with that drive but wanted to install Ubuntu. So I bought a USB (500G) disk and partitioned it. 100MB when to a bootable linux partition (ext4) and I left the remainder ntfs. Ubuntu was installed on the new disk. Next, I set the computer bios to boot from the USB. When booting, grub2 has a boot screen which allows me to boot into ubuntu or XP (Since I like ubuntu, I set that the default after 10 seconds). Now I have a full ubuntu and XP and never touched my XP HD. Also, if the USB is not plugged in, XP will boot. It seems you might be able to do the same thing or similiar and leave your main disk on the acer untouched. But maybe you have other considerations.
jlp

Revision history for this message
Dermot Haughey (hderms) said :
#2

This is a common problem. One solution is to copy over the partition to the new disk (http://www.arsgeek.com/2008/01/22/how-to-clone-your-bootable-ubuntu-install-to-another-drive/). Be careful though, the 'dd' program is notorious for being very particular about its input (some have even joked that it stands for 'delete disk'). You must be particularly careful that you have the 'if' and 'of' arguments right: switching them up could render the contents of your current disk inaccessible. Also, you didn't specify, but it is essential that the data on your 120 GB disk is not important to you anymore, if there is anything on there at all. Also keep in mind that someone after me might answer this question in a more Ubuntu-centric manner, in some cases there are particular ways to do things.

Revision history for this message
john (johnlpayton) said :
#3

Just a little more ...
You can't "merge" two partitions because they are physically separate. However Unix (and Linux) do support file links and mounting of filesystems in a folder. A link to a file will have the file name in a directory but the file itself is somewhere else and can possibly be on a different disk. So you can create a directory in a folder that actually exists in a different place. For example, your user directory is probably in /home/yourname. Now "yourname" could be a link to another mounted disk. It looks like your directory is in the usual place but the data is actually elsewhere. This was invented to ease usage when disk sizes were small and you needed many of them for a medium to large system. But administration can get to be a headache when you try to split system directories across multiple media. It can be done. Try to keep all root related stuff together because some code might not be happy with links. G'luck
jlp

Can you help with this problem?

Provide an answer of your own, or ask Rômulo Ristow for more information if necessary.

To post a message you must log in.