LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2013, 11:54 PM   #1
anorphirith
LQ Newbie
 
Registered: Jan 2013
Location: San Francisco
Posts: 4

Rep: Reputation: Disabled
how to turn my PC into a RAID hard drive


Hi, I'm new at linux and very excited to learn more !
I have a small project in mind and I need direction on how to proceed and look for more informations.

What I have:
-mini ITX motherboard with 2 (USB 3) and 3 (SATA) inputs
- gigabit ethernet input
-3 (2TB hard drives 3.5")
-a wifi dongle

What I want to do:
-have linux installed in raid 5 OR operate the drives in raid 5
-when I plug my laptop into one of the USB inputs it would behave just like an external hard drive
-be able to access the drive with the ethernet input
-be able to access the drive as if it were an FTP server

Thanks in advance !
 
Old 01-29-2013, 12:21 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by anorphirith View Post
Hi, I'm new at linux and very excited to learn more !
I have a small project in mind and I need direction on how to proceed and look for more informations.

What I have:
-mini ITX motherboard with 2 (USB 3) and 3 (SATA) inputs
- gigabit ethernet input
-3 (2TB hard drives 3.5")
-a wifi dongle

What I want to do:
-have linux installed in raid 5 OR operate the drives in raid 5
-when I plug my laptop into one of the USB inputs it would behave just like an external hard drive
-be able to access the drive with the ethernet input
-be able to access the drive as if it were an FTP server

Thanks in advance !
first of all, you could use a software raid with mdadm, but only using the SATA drives (or all usb drives), but it would harm the performance to mix devices of diferent bandwidth such as sata and usb
second, laptops don't behave that way, yes some older mac laptops (with scsi ports) had a 'disk mode' that let them behave as an external scsi drive, but that was the mac firmware.

you can however access the drive via ethernet with either nfs or fuse ftpfs.

hope this helps
 
Old 01-29-2013, 02:28 AM   #3
anorphirith
LQ Newbie
 
Registered: Jan 2013
Location: San Francisco
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Frieza , thank you for your response.

"first of all, you could use a software raid with mdadm, but only using the SATA drives (or all usb drives), but it would harm the performance to mix devices of diferent bandwidth such as sata and usb"

I want to use only hard drives of the same speed and bandwidth so I don't think it would be an issue, is it better to use mdadm or the raid of my motherboard ? which is more reliable ?

"second, laptops don't behave that way, yes some older mac laptops (with scsi ports) had a 'disk mode' that let them behave as an external scsi drive, but that was the mac firmware"
The storage device would be a PC standalone computer as described above, I would use my laptop to connect directly to it, the laptop was just an example of a computer I would use to connect to the standalone storage computer.
 
Old 01-29-2013, 03:30 AM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
ok, well the point remaining, computers aren't usb drives that would require specialized hardware, you would have to mount it over the network.

as for which RAID type is more reliable? hardware raid probably
 
Old 01-29-2013, 12:37 PM   #5
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
You can connect two computers that way via USB but it requires a special cable (what is commonly known as a "null modem" cable) that swaps the RD and TD lines. It also sometimes requires special software depending on the systems and what you are trying to achieve.

All in all it might be easier to just set up network shares and access it over ethernet, as suggested.
 
Old 01-29-2013, 12:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,066

Rep: Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367
Actually the MAC disk mode used the Firewire port and not SCSI. The reason this workes is that Firewire hardware uses a peer to peer device communication vs USB or SCSI which requires a host controller. In a nutshell Firewire allows you to connect any type of hardware together.

With USB you can not connect hosts directly together which is why I assume that no one has written a driver AFAIK to accomplish this task. I do not know what motherboards if any have OTG or device type ports as standard equipment nor have I had any luck finding a PCI card that has a OTG or device type ports. There are single board computers that have both types of ports so it is possible to build your own USB NAS device. You can probably modify existing firmware so it is recognized as a mass storage device.

Connecting via ethernet is well documented and is easy to setup a NFS, CIFS or FTP server
 
Old 01-29-2013, 01:21 PM   #7
anorphirith
LQ Newbie
 
Registered: Jan 2013
Location: San Francisco
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
There are single board computers that have both types of ports so it is possible to build your own USB NAS device. You can probably modify existing firmware so it is recognized as a mass storage device.
do you have a link where I could find those single board computers ? I assume they also have 5-6 sata ports for raid possibilities.
Thanks for your answers !
 
Old 01-29-2013, 01:47 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by michaelk View Post
Actually the MAC disk mode used the Firewire port and not SCSI. The reason this workes is that Firewire hardware uses a peer to peer device communication vs USB or SCSI which requires a host controller. In a nutshell Firewire allows you to connect any type of hardware together.
i beg to differ
Quote:
Originally Posted by Wikipedia
Originally called SCSI Disk Mode, a special cable (SCSI System Cable) allowed the original PowerBook series to attach to a desktop Mac as an external SCSI disk. A unique system control panel on the PowerBook was used to select a non-conflicting SCSI ID number from the host Mac. This also made it possible to select the disk in the Startup control panel and boot up from it.
from article http://en.wikipedia.org/wiki/Target_Disk_Mode

i knew this to be fact because I Have one of those special SCSI cables.
 
Old 01-29-2013, 02:21 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,066

Rep: Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367Reputation: 3367
Maybe not such a good suggestion. I have not found anything that has both OTG and SATA ports. None have more then 2 SATA ports.

I stand corrected. The original disk mode used SCSI...

Last edited by michaelk; 01-29-2013 at 02:22 PM.
 
  


Reply


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
Computer Does Not Turn On When Hard Drive Is Connected wanas Linux - Hardware 13 11-28-2010 10:32 PM
replace hard drive in raid 1? TongueTied General 5 12-01-2006 10:58 PM
Hard Drive Performance - Raid funbags Linux - General 3 11-13-2005 10:31 AM
can't turn DMA on my hard drive slzckboy Linux - General 6 09-24-2005 01:26 PM
hard drive and raid problem-help ronss Linux - Hardware 2 08-24-2002 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration