Score:0

Recover data from raid 1 disks

cn flag

I used mdadm to create a raid 1 with 2 disks. After some time I reinstalled the OS (without wiping that 2 disks obviously). What I've done is to assemble that two drives with the following commands:

sudo mdadm --assemble --scan

sudo mdadm --assemble /dev/md0

sudo mount /dev/md0 /mnt/md0

Now if I type sudo mdadm --detail /dev/md0 it seems that everything works fine:

/dev/md0:
           Version : 1.2
     Creation Time : Sat Sep  4 11:16:49 2021
        Raid Level : raid1
        Array Size : 976629440 (931.39 GiB 1000.07 GB)
     Used Dev Size : 976629440 (931.39 GiB 1000.07 GB)
      Raid Devices : 2
     Total Devices : 2
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Sat Sep 25 10:00:06 2021
             State : clean 
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : bitmap

              Name : xxx:0  (local to host xxx)
              UUID : e7a0b95f:6fea0216:d094ee3f:2d73bf18
            Events : 6243

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1

But if I type ls /mnt/md0 there is just the lost+found file. How is it possible? Have I lost all my data? Is there a way I can recover them?

Nmath avatar
ng flag
Any mistakes you make in RAID 1 are copied to both disks. [RAID is not a backup!](https://raidisnotabackup.com/)
Damien avatar
cn flag
I think I've not done any mistake. I've never tocuhed that disks with some strange command
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.