Linux.com

Home Learn Linux Linux Answers Systems Management Is it possible to combine two computers hardisk as one?
Answers
  • Accepted Answer

    I'm assuming neither of these would be your non-system disk, and are auxiliary data drives. It can be done that way, but it would be best to do it during the OS install, in that case. Many mainstream Linux OS installers support this already.

    So to answer your question, yes, that can be done. What you are talking about is creating a RAID. A RAID of disk drives can be achieved in either software or hardware. To do a RAID with hardware, you'd have to purchase a RAID Controller card that you'd install into a PCI slot on the motherboard of your PC. Then when you first boot up the PC, you would go into some sort of low-level menu (like a BIOS) where you could set up the hardware raid (i.e., assign both disks to an array). Then when you save/quit that utility and boot your actual OS (we assume some sort of Linux), you'd just have to make sure that the drivers for the card are already supported by the kernel (they usually are) or you'd have to install them. Then you'd have access to your drive and could partition it (e.g. /dev/sda1).

    In your case, though, I'd recommend a software RAID. The two most common ones for Linux are LVM and Mdadm. Support for both is probably built into your Linux OS already (and if not, packages will be readily available). I find Mdadm to be easier to use than LVM, but that's just personal preference. Both will do what you want, though: combine two drives into one larger one. You would then create your partitions and format them with your filesystem of choice.

    See here for more on LVM vs Mdadm:
    http://www.gagme.com/greg/linux/raid-lvm.php

    hth

    Answered by atreyu
    3 years ago
    0 0
Similar Questions Found
Questions from category Systems Management

Upcoming Linux Foundation Courses

  1. LFS220 Linux System Administration
    22 Sep » 25 Sep - Virtual
    Details
  2. LFD211 Introduction to Linux for Developers
    06 Oct » 07 Oct - Virtual
    Details
  3. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board