LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-17-2020, 03:48 PM   #16
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51

Quote:
Originally Posted by ondoho View Post
Happy anniversary!

May I ask how you connect storage to it, what kind of storage, and how storage is powered?
Thanks! 10 years now.

Well the Pi has a microSD card slot already built in. Aside from that there are USB ports. I would assume that storage power would have to be provided externally from their own source. I have seen some devices have power via USB. For example, my wife has a smaller external drive that uses a 2.5" laptop drive and power and data are all done on a single USB cord.
 
Old 05-17-2020, 04:42 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
The Pi 4 has USB 3 ports and can provide higher USB power than the older models. It is possible to power a USB hard drive without external power but you do need to make sure the PSU has sufficient capacity to power everything.

https://www.raspberrypi.org/document...ower/README.md
 
Old 05-18-2020, 12:50 PM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Basslord1124 View Post
Well the Pi has a microSD card slot already built in. Aside from that there are USB ports. I would assume that storage power would have to be provided externally from their own source. I have seen some devices have power via USB. For example, my wife has a smaller external drive that uses a 2.5" laptop drive and power and data are all done on a single USB cord.
Thanks! But...
Are you saying you connected a laptop 2.5" drive to a raspi4 via USB and it doesn't require extra power?
Or are you saying that the storage on the microSD (how much?) is enough?
In either case, is the storage fast enough?
 
Old 05-19-2020, 08:47 AM   #19
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by ondoho View Post
Thanks! But...
Are you saying you connected a laptop 2.5" drive to a raspi4 via USB and it doesn't require extra power?
Or are you saying that the storage on the microSD (how much?) is enough?
In either case, is the storage fast enough?
I haven't verified it, but I would bet the Pi4 could power and transfer from the little 2.5" external drive my wife has. Not sure if it'd be the same for all 2.5" drives.

I haven't really verified anything on the Pi yet. I still need to order some things first. As far as I can tell at this point, it appears that the OS is on the provided 32GB microSD card (Noobs). I'm not sure how it's partitioned and I doubt that the OS takes up that much space. In the coming weeks I should have more info.
 
Old 05-19-2020, 09:00 AM   #20
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,333
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
The Rasperry Pi Foundation, Raspberry Pi Trading, and the various supplementary vendors are usually quite good about publishing the hardware specifications in great detail so you can plan quite well in advance. So if you do a little reading online, you should be able to get all the right parts in one order and save a lot on shipping. There are also a lot of third-pary measurements. However, one of the main reasons the RPi4 went with USB-C was so that the power supply could provide more current to peripherals. It can supply 15.3W and the RPi4 itself uses just over 5W to about 6.4W in measured tests so that leaves about 8.9W for your drives.
 
Old 05-19-2020, 09:25 AM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
NOOBS (New Out Of the Box Software) is just the installer. When booted will created additional partitions and install the actual operating system of choice. Typically it only creates an 8 GB partition if I remember correctly and you can run a configuration script to expand to fill the card.
 
Old 05-19-2020, 09:35 AM   #22
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,333
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
Quote:
Originally Posted by Basslord1124 View Post
I'm not sure how it's partitioned and I doubt that the OS takes up that much space. In the coming weeks I should have more info.
If you go with Raspbian, either directly or via the NOOBS installer, it will not use more that 6GB or 7GB even with a little extra installed but I think it may require at least 8GB for the installation. The only part of the system that really needs to be on the microSD card is the /boot partition. The rest can be on the extra drive(s). Even that is not necessary if you have the RPi4 and do netboot.
 
Old 05-19-2020, 02:45 PM   #23
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Basslord1124 View Post
I haven't really verified anything on the Pi yet.
OK, thanks anyhow.
I guess I should clarify: I still use an old laptop as my home server. It has a standard 2.5" spinning 1TB hard drive with loads of stuff on it that would need to be served.
I fear that a raspi will not be able to deal with it without an additional power supply; or is it even possible to connect it via SCSI or whatever it's called (meaning directly, not USB).

I hope I'm not hijacking your thread.
 
1 members found this post helpful.
Old 05-19-2020, 04:01 PM   #24
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by ondoho View Post
OK, thanks anyhow.
I guess I should clarify: I still use an old laptop as my home server. It has a standard 2.5" spinning 1TB hard drive with loads of stuff on it that would need to be served.
I fear that a raspi will not be able to deal with it without an additional power supply; or is it even possible to connect it via SCSI or whatever it's called (meaning directly, not USB).

I hope I'm not hijacking your thread.
No biggie...I have heard of folks using them as home file servers.

You can't do it directly to my knowledge, you'd probably have to use a USB to <whatever interface your HD is> cable/adapter.
 
Old 05-20-2020, 01:32 AM   #25
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,974

Rep: Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335
Quote:
Originally Posted by ondoho View Post
I fear that a raspi will not be able to deal with it without an additional power supply; or is it even possible to connect it via SCSI or whatever it's called (meaning directly, not USB).
You do not need to. Buy a correct power supply and RPi will handle one external hdd very well. At least it worked for me.
 
1 members found this post helpful.
Old 05-20-2020, 10:35 PM   #26
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by pan64 View Post
You do not need to. Buy a correct power supply and RPi will handle one external hdd very well. At least it worked for me.
//Off Topic
Does a usb CD drive work rpi4? I tried it on my rpi3 a while ago. Not sure if I tried it with a powered hub but whatever I did certainly didn't work.
 
Old 05-21-2020, 01:55 AM   #27
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,974

Rep: Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335Reputation: 7335
powered hub should work, but again, if you have a "strong enough" power supply one usb port can be used without that.
 
1 members found this post helpful.
Old 05-21-2020, 02:42 AM   #28
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ all this (2 power supplies, HD via USB) really makes me think that a used (and hopefully low-power) laptop is the better solution for my needs.
Or maybe some sort of mini-desktop computer (since I don't need keyboard, sound or screen)? I believe those exist.

BTW, as far as I am concerned that 1TB spinning hard drive is still fairly new and has quite a few more years to go, no need/desire to buy an SSD.

My current server setup however starts worrying me a little. I recently had to take the battery out because it would draw(!) so much power that the laptop shut off under load. That's how old it is.
 
Old 05-21-2020, 08:53 AM   #29
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by pan64 View Post
powered hub should work, but again, if you have a "strong enough" power supply one usb port can be used without that.
Thank you. That'll put the rpi4 up on the list for me. That 4g ram option helps too
 
Old 06-10-2020, 03:54 PM   #30
Hermani
Member
 
Registered: Apr 2018
Location: Delden, NL
Distribution: Ubuntu
Posts: 261
Blog Entries: 3

Rep: Reputation: 113Reputation: 113
Here at home I actually have a setup with a Raspberry Pi 4.

The good thing is that the Rasp 4 has USB 3 ports so you can connect those hard drives using USB with a theoretical speed of 5 Gbps.

I have replaced my old trusted home style server with a Core 2 Quad (90 Watt TDP mind you!!) with a Raspberry Pi 4 and 8 hard drives I put in a Fantec HDD enclosure (like this one). It works marvelous: I put Ubuntu 20.04 LTS server on the Raspberry micro SD card, put in the USB 3 cable and I have all drives at my disposal. Because I use it mainly as a backup server I have the drives in a JBOD configuration to allow for maximum space.

I can recommend trying out such a setup to save on power. As for the power of the Raspberry 4, doing primarily RSYNC backups the loads are next to nothing:
Code:
20:52:42 up 17 days,  1:26,  1 user,  load average: 0.03, 0.02, 0.00
 
  


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
Pros and Cons of programmatically modifying configuration file ravindrah Linux - Security 1 03-09-2016 12:14 PM
pros and cons -- small "linux box server" versus dedicated "NAS box" SaintDanBert Linux - Server 1 11-30-2013 03:29 PM
linux for a server. your experience.pros and cons fachamix Linux - Server 3 12-14-2009 09:12 PM
What are the well-known server-side languages today? what are the pros and cons? beckettisdogg Linux - Newbie 6 09-07-2009 02:09 AM
Could somebody explain the pros and cons of some of the most used file systems? baldurpet Linux - General 20 12-11-2008 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:49 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