CuzWhyNot
Posts: 2
Joined: Sat Jan 20, 2018 8:30 pm

Hard drive problem

Sat Jan 20, 2018 8:42 pm

I'm trying to mount a USB drive on my Raspberry Pi 3 and I'm following to the tutorial at http://raspi.tv/2012/how-to-mount-and-u ... spberry-pi but on the command prompt when I put in

Code: Select all

tail -f /var/log/messages
and I plug in my USB hard drive, it says all the normal stuff but on the sda part it only says

Code: Select all

   sda:
where it should say

Code: Select all

sda:sda1
. Please help. I'm a noob when it comes to Linux.

epoch1970
Posts: 5200
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Hard drive problem

Sun Jan 21, 2018 11:04 am

Don't use a five-year-old tutorial on a recent system, unless the author states the guide is still current.

"sda" is a name linux often give to the first serial-ata drive it finds. The next one would be sdb and so on.
"sda1" is the name of the first partition on the first drive. The next one would be sda2 etc.

If your volume is formatted but unpartitioned, which is uncommon yet possible for a data drive, you don't get to see "sda1".
Maybe you want to check how that USB volume?
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

k-pi
Posts: 930
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Hard drive problem

Sun Jan 21, 2018 12:16 pm

If you plug it in after having your RPi booted up, run

Code: Select all

dmesg | tail
that should show you the designation the system has assigned to it.

Then mount it as sudo (or the root user)

Code: Select all

mount /dev/sdb1 /mnt
Don't forget to unmount it before removing it, else you could corrupt the filesystem on it.

Code: Select all

umount /mnt

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Hard drive problem

Sun Jan 21, 2018 5:03 pm

Could be power related.

Does the external drive have its own PSU or is it powered from the USB bus? If the latter, try putting a powered USB hub between the Pi and the drive.
Arguing with strangers on the internet since 1993.

CuzWhyNot
Posts: 2
Joined: Sat Jan 20, 2018 8:30 pm

Re: Hard drive problem

Sat Feb 10, 2018 7:12 pm

thagrol wrote:
Sun Jan 21, 2018 5:03 pm
Could be power related.

Does the external drive have its own PSU or is it powered from the USB bus? If the latter, try putting a powered USB hub between the Pi and the drive.
Yes, I'm plugging it into my monitor that is connected to my Pi.

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Hard drive problem

Sat Feb 10, 2018 8:52 pm

CuzWhyNot wrote:
Sat Feb 10, 2018 7:12 pm
thagrol wrote:
Sun Jan 21, 2018 5:03 pm
Could be power related.

Does the external drive have its own PSU or is it powered from the USB bus? If the latter, try putting a powered USB hub between the Pi and the drive.
Yes, I'm plugging it into my monitor that is connected to my Pi.
In no particular order:
  • Can you try a different hub?
  • Does the drive work as expected when connected to a different computer?
  • Has the drive actually been partitioned and formatted yet?
  • Is it a 2.5 or 3.5 inch drive?
  • Is it a USB 3 drive and USB 3 cable? USB 3 has a higher maximum current than USB 2 so even with a hub (especially if it's a USB 2 hub) you may still not be getting enough power if the cable has a single connector at the host end.
  • Are you using a"Y" cable to connect the drive to the monitor?
    If so are you connecting both parts of that to the monitor/hub?
  • With the drive connected, what's the output of

    Code: Select all

    sudo fdisk -l /dev/sda
    If that gives "no such file" try

    Code: Select all

    sudo fdisk -l
Arguing with strangers on the internet since 1993.

Return to “Troubleshooting”