LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-24-2014, 03:04 AM   #1
awrongline
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, 07:08 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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, 07:26 PM   #3
exvor
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, 07:54 AM   #4
awrongline
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, 08:36 AM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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 https://help.ubuntu.com/community/DataRecovery
 
Old 07-20-2014, 06:33 PM   #6
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
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!

 
  


Reply



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 04:55 PM
udev rules to mount external hard drive at mount point akamikeym Gentoo 3 03-31-2010 01:12 PM
Removed bad hard drive from computer, now flash drive won't mount. checkmate3001 Linux - Hardware 6 08-15-2008 12:03 AM
Help writing script file to mount / mount hard drive Rustylinux Linux - General 6 06-27-2006 09:34 AM
Mount SATA drive (not RAID) EcceVery Debian 3 08-31-2004 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 AM.

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