<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br></div><div>Your combining command is it two lines or one line?</div><div><br></div><div>Is gpart available in terminal mode?<br><br>--- On <b>Wed, 23/2/11, Tim H. <i><bizdev@pwnspeak.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Tim H. <bizdev@pwnspeak.com><br>Subject: Re: [xubuntu-users] Can increase space by adding hard disk?<br>To: "Xubuntu Help and User Discussions" <xubuntu-users@lists.ubuntu.com><br>Date: Wednesday, 23 February, 2011, 12:27 AM<br><br><div class="plainMail">> I am a newbie to Xubuntu. Mind telling me step by step guide how to do it?<br><br>Raid level 0 allows you to increase the disk space of a partition beyond that of your drive. In essence you are combining drives and/or partitions. Keep in mind the existing
partion will be formatted (erased). So if you are trying to use your main disk this isn't going to work. But you can shrink your disk and use whats left.<br><br>Say you have the new disk /dev/sdb; it needs partitioned. Use gparted, it's easy. `fdisk /dev/sdb` is another option. We'll call it /dev/sdb1<br><br>Then you can shrink your main drive,/dev/sda1 maybe, to a smaller size and format whats left. We'll call it /dev/sda2<br><br>Now combine the disks using mdadm:<br><br> mdadm -Cv /dev/md0 -l0 -n2 /dev/sda2 /dev/sdb1<br> mkfs.ext4 /dev/md0<br><br>To make this combined partition start by default you can add it to fstab. But first you need to add lines like this to the /etc/mdadm/mdadm.conf file:<br><br>DEVICE /dev/sda2 /dev/sdb1<br>ARRAY /dev/md0 level=raid0 devices=/dev/sda2,/dev/sdb1<br><br>Now you can do whatever you want with this combine partition. For instance I
keep all my media on a raid level 0 combined partition of 3 different drives.<br><br>Tim<br><br>-- xubuntu-users mailing list<br><a ymailto="mailto:xubuntu-users@lists.ubuntu.com" href="/mc/compose?to=xubuntu-users@lists.ubuntu.com">xubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/xubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/xubuntu-users</a><br></div></blockquote></div></td></tr></table><br>