My linux root OS device is /dev/sda, and my external hard drive is /dev/sdb (empty drive)

I don't want to loss data on /dev/sda, and setup raid level 0.

Is this possible?

  • Possible, but not advisable... – frostschutz Sep 26 '18 at 11:53
  • 1
    Raid 0 on ordinary disks is only advisable when you either have good backups or don't care about losing all your data. (I've seen raid 0 on top of multiple small raid 5 arrays, and it was only done because the users couldn't afford a proper large array). It sounds like you care about losing data; do you have backups? – Mark Plotnick Sep 26 '18 at 12:04
  • Even if we have single disk, data loss is there...so what is the difference having a single disk or having raid-0 with 2 disks...? – Akhil J Sep 26 '18 at 12:09
  • 1
    With 2 disks in raid 0, you get twice the chance of data loss! – Jeff Schaller Sep 26 '18 at 12:16
  • I am using just for testing to increase performance...How much probability can i expect of data loss (ie: 50%)and i which cases it to happen.. – Akhil J Sep 26 '18 at 12:23

With RAID 0, your data is split in half (evens and odds) between the drives. In other words, there are chunks 1, 3, 5, .... etc. on the first drive, and a second group of chunks 2, 4, 6, etc. are on the second drive. If one of the drives dies, you've instantly lost 50% of the chunks. Imagine opening up your program and deleting every other line out of it. That's what happens when you lose a striped disk. Depending on the stripe size, you may be able to recover some data or even whole files out of the remaining disk (it's very possible that a 10KB file would be completely intact on one disk since your blocks should be larger than that). However, a file that's ten times your block size would have 5 blocks on each disk, meaning you just lost 50% of your file.

Important to note that you can't set up RAID 0 without formatting (initializing) the drives as RAID 0. You would have to back-up your data before creating the raid.

  • 5
    The question, I believe, is regarding setting up a RAID-0 configuration of two disks, while not wiping the data on one of the disks. – Kusalananda Sep 26 '18 at 12:32
  • So its just same as using single disk(about losing data)....because here raid-0 is just a utility for using them as one.....that's it...so it is not increasing probability of losing data...Its just our fear loss or some tech phobia...right? – Akhil J Sep 26 '18 at 12:49
  • 1
    Hi @Akhil J. When you create the raid array it will erase the data currently on the drives you are using to build the "odds and evens" so you need to backup the data – user88036 Sep 26 '18 at 12:55
  • By the way. RAID 0 has zero redundancy, meaning if only one of the disks fail, and you have lost all your data. I encourage you to find alternative solution for backing up your data such as RAID 1.where you can just convert your disk to dynamic, add the new disk and mirror it within disk management. You don't lose any data that way, unless you do something wrong. – user88036 Sep 26 '18 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.