Linux Spanning Drives

Neutron

Founding Supporter
Original poster
Supporting Founder
Nov 7, 2003
18,716
1,124
Texas
Does anyone here know how I can add a second drive and had the first drive see the entire thing?

I have an EEE PC and it has 4GB internal SSD. I have a 16GB SDHC card and would like for the PC to see both as 20GB.
 
you might be able to do this with LVM but I'm not sure if you can simply "blend" a new drive with an existing one that has data on it. It might be something you need to set up at install time.
 
Considering that linux doesn't see the drives as seperate drives but rather as folders, you can always mount one drive as a specific directory. I'd recommend that the 4gb SSD be mounted as root (/) with the OS on it and the 16gb card be mounted as home (/home). This will allow you to keep all of your data on a removable drive.
 
Neutron,
The answer is yes. Using LVM (Logical Volume Mgmt) you can combine both drives into one large logical partition. That being said... iwc5893's suggestion would also be mine.
The inherent problem with spanning across drives is that if one drive fails, your done.
I span drives on our work servers, however, the drives are mirrored (RAID 1) drives, so even if a drive fails, I'm still covered (we do backup to a central tape library, but I hate restoring from tape...)
Like iwc suggested, use the small drive for root, boot, bin, & etc... and put /home on the larger drive...
 
I looked at disk usage and noticed that 78% of the drive is from the /usr directory.

Is it possible to move that and the /home directory to the second drive? If so, how do I do that?
 
Here's a screenshot of diskusage now.
 

Attachments

  • diskusage.jpg
    diskusage.jpg
    69.6 KB · Views: 165
Considering that linux doesn't see the drives as seperate drives but rather as folders, you can always mount one drive as a specific directory. I'd recommend that the 4gb SSD be mounted as root (/) with the OS on it and the 16gb card be mounted as home (/home). This will allow you to keep all of your data on a removable drive.

The drive is seen as a discrete entity (for example /dev/dsk/c0t1d0 which is partitioned and mounted on a certain directory (like /export/home).

The various flavors of Linux can do a good job of hiding this from the user, but it is occurring underneath regardless.
 

Core i7: Blazing Fast

Intel phases out first 45 nm processors

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Who Read This Thread (Total Members: 1)