Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2014, 04:04 AM   #1
LQ Newbie
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
How to mount a hard drive with RAID in it

I have 2 bay NAS with a single 1TB disk with by default RAID 0. The disk failed and I could not boot it up anymore. I bought a new disk, remove the 1st bay disk and insert the new one on 2nd bay and set it up and all are working with the new disk. Now set the NAS to telnet and able to enter the NAS on telnet. Inserted the 1st disk again on bay 1 and wondering how can I manually transfer the data from 1st disk to 2nd disk. Please if anyone could tell me how to do it on mdadm telnet and not by cloning I would really appreciate it. For some reason I could not mount it. I tried creating directory on mnt and mount it by mount /dev/sda /mnt/hard_drive1. and got error of:

mount: mounting /dev/sda on /mnt/hard_drive1 failed: Invalid argument
Old 06-24-2014, 08:08 PM   #2
Registered: Mar 2008
Posts: 17,383

Rep: Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583Reputation: 2583
When you say NAS do you mean a common computer or is this some embedded single use nas box?

Generally you have to know what type of raid it has and then follow the raid rebuild formula.

When you swap drives some errors may appear that have nothing to do with raid. They have to do with position of the drives.
Old 06-24-2014, 08:26 PM   #3
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
You cannot rebuild raid0 drives. If your raid originally included 2 drives in raid 0 your out of luck as your disk only contains parts of files ( possibly untrue but would require a large amount of work to recover ). If you man mdadm it should inform you how to re-add the drive back to the raid array if it was truly a raid 0 of one. You did mention however that the disk did fail so its possible its just corrupt.
Old 07-20-2014, 08:54 AM   #4
LQ Newbie
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply exvor. I do understand that RAID 0 with two disk you most likely lost your data but mine is just single disk only. What I want to do is on my NAS box with two disk now on telnet (old and new disk) how can I transfer the data from old disk to the new disk by not doing the mirroring. You might be right that the disk might just be corrupted. So what can I do if it is corrupted? When I am trying to mount either of the two disk they could not be mounted. Could it be because they are not a clean disk?
Old 07-20-2014, 09:36 AM   #5
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
is it really /dev/sda ? Have you tried /dev/sda1 (2,3 ..)

To be honest, I think you need to stop 'doing things' and readup on data recovery

Start with
Old 07-20-2014, 07:33 PM   #6
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18.2 at present.
Posts: 1,316

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
I have 2 bay NAS with a single 1TB disk with by default RAID 0.
I think RAID 0 needs two disks minimum (see here)so what you've got is, er... a disk, and a faulty one at that.

Was it partitioned, and if so, was your data on a separate patition? in which case you may be able to use the system on your new disk to mount the data partition of the old disk and get the info off that way.
If not, you'll probably not be able to mount the old disk from the new system and you've lost it.

Setting up a RAID over partitions on the same disk serves no function I can think of, no redundancy, no reduction of transfer speed. That's not how your nas set the disk up is it?

Play Bonny!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command Foxbat1155 Linux - Hardware 15 02-21-2012 05:55 PM
udev rules to mount external hard drive at mount point akamikeym Gentoo 3 03-31-2010 02:12 PM
Removed bad hard drive from computer, now flash drive won't mount. checkmate3001 Linux - Hardware 6 08-15-2008 01:03 AM
Help writing script file to mount / mount hard drive Rustylinux Linux - General 6 06-27-2006 10:34 AM
Mount SATA drive (not RAID) EcceVery Debian 3 08-31-2004 06:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration