Solved How to mount 2 drives in a RAID

Oki C3300n
November 27, 2018 at 07:21:02
Specs: Linux Mint 19, Intel 3.2 GHz / 8 GB
I’m trying to help a neighbour who lost her husband and he was running an Ubuntu 10 server with a couple of 2TB drives

It won’t boot and there’s another two 1TB drives inside and one is faulty and not showing in BIOS and the other is an orphaned RAID member so I’ve disconnected it

If possible can I mount the other 2 drives maybe as I think they are RAID 1 mirrored but no one can be sure so it’s just guess work for now

Using lsblk I can see what I hope is the data partitions

dev/sda3
dev/sdb3

Am I somehow able to create a mount point in /mnt and mount the RAID or am I fighting a losing battle

The disks were not connected to SATA cables when I took the desktop pc in so I don’t know anymore than that as to why they weren’t connected

Any help appreciated


See More: How to mount 2 drives in a RAID

Reply ↓  Report •

✔ Best Answer
November 29, 2018 at 07:07:35
Well, it wouldn't do any harm to create the folders and mount them read-only. Probably best to do it with just one of them as they should be identical. This is assuming that they are mirrored and not RAID 0. But in the latter case the mount will fail with an "unrecognised file system" error.

I think a mirrored drive should just mount like a single drive.



#1
November 27, 2018 at 16:55:25
What make and model is the server?

You say it won’t boot yet appear able to inspect the drives via an operating system (presumably Linux)?

Any error messages?

Is there data on any of the drives which your friend would like to preserve/access etc.?


Reply ↓  Report •

#2
November 28, 2018 at 01:43:50
It’s an Intel Extreme motherboard which her husband built himself

I’ll get the exact model and put it on here

I’m using Linux Mint booting from a USB flash drive

The intention is to recover all photos if possible, file type unknown presumably JPG, JPEG, PNG


Reply ↓  Report •

#3
November 28, 2018 at 13:52:36
Incidentally... as data recovery is the prime issue here,the simplest approach might be best/easiest. You could remove the drive(s) and connect them to either a linux running computer - or a windows one.

The latter will require a free software utility to allow you to access linux drives.

https://www.howtoforge.com/access-l...

discusses this in detail.

You will need a "sata to usb adapter" cable to connect the drives accordingly.

I've used two versions of such adapters; Startech and Ugreen. Both are ok.

One comes with its own power supply included; which may be useful on occasion. The other is powered solely by the usb port. The latter won't allow a usb extension cable to be included in/added to the usb connection; but if you can manage to work with the cable length as it is then everything is fine.

Both are available from Amazon various.

Going the above route means you don't have to be concerned at this time with getting the server to boot up. Simply remove the drive(s) and connect as above to a working computer; be it another linux box or a windows (with the added utility) box.

I suggest you make two sets of DVDs at least...

Does the server actually light up/boot up at all; if only to show the setup screen - where you can press whatever key to get into the bios settings?


Reply ↓  Report •

Related Solutions

#4
November 29, 2018 at 05:45:40
I can boot the server off a USB stick running Linux Mint which is based on Debian

I can see both the drives in the terminal when I run lsblk

However I’m unsure if I can mount them both as a mirrored drive? Could I mount them individually by installing Linux Mint and then creating a folder in /mnt


Reply ↓  Report •

#5
November 29, 2018 at 07:07:35
✔ Best Answer
Well, it wouldn't do any harm to create the folders and mount them read-only. Probably best to do it with just one of them as they should be identical. This is assuming that they are mirrored and not RAID 0. But in the latter case the mount will fail with an "unrecognised file system" error.

I think a mirrored drive should just mount like a single drive.


Reply ↓  Report •

#6
November 29, 2018 at 07:23:26
I’ll try mounting a single drive and hopefully it’s a mirror and will update this thread after

Reply ↓  Report •

#7
December 1, 2018 at 09:30:32
Thanks for the replies I’ve made up my own guide after doing some research and I successfully managed to mount a hard disk that was a Linux Raid Member on sdc3, it was one of two RAID 1 disks

The other two disks were RAID O so I didn’t pursue any further, below and please correct me on anything that’s wrong so it doesn’t cause confusion

How to mount a RAID member drive

Example is based on a RAID1 with a single disk at sdc3

sudo apt-get install mdadm
lsblk
sudo fdisk -l
sudo mdadm — examine /dev/sdc3

sudo mkdir /mnt/old_hdd

sudo mdadm -A -R /dev/md0 /dev/sdc3
a message says the device is busy - skipping
log off and on again or reboot

sudo mount /dev/md0 /mnt/old_hdd
cd /mnt/old_hd

If you reboot the hard disk will show up in devices in the GUI

When finished

sudo umount /mnt/old_hdd


Reply ↓  Report •

Ask Question