1

I have setup my raspberry as my media streamer server using minidlna. I have also auto-mounted the HDD using its UUID. It works but I have notice from time to time, the drive gets disconnected and reconnected, and it now fails in automounting, I have to explicit run the command

sudo mount/dev/sdb1 /media/Drive

I have also noticed, every time I cannot access /media/Drive, the hard drive changes its name (e.g. from sda to sdb to sdc to sdd to sde and so on).

How do I determine the problem? I have already setup an external powered usb hub, that's why my pi can power up the HDD. The pi is open for 24/7 also.

EDIT:

I did the following:

  • Installed ntfs-3g so that pi will recognized my hard drive.

  • Retrieve the UUID of my hard drive using ls -l /dev/disk/by-uuid

  • Created a directory for my drive: mkdir /media/Mett, and gave it 755 permission.

  • opened /etc/fstab file, and appended the line

    UUID=01D031EB07CC4ED0 /media/Mett ntfs-3g uid=1000,gid=1000,umask=007 0 0

5
  • How have you "auto-mounted the HDD using its UUID"/
    – Milliways
    Commented Dec 11, 2015 at 9:13
  • By doing this, www.techjawab.com/2013/06/how-to-setup-mount-auto-mount-usb-hard.html
    – Xegara
    Commented Dec 11, 2015 at 12:36
  • Don't post a link. If you want help post WHAT YOU ACTUALLY DID.
    – Milliways
    Commented Dec 11, 2015 at 23:04
  • This behavior strongly suggests that either your power supply or USB cable is electrically unreliable. Commented Dec 12, 2015 at 3:03
  • Then I did the following, refer the edit above
    – Xegara
    Commented Dec 13, 2015 at 12:39

2 Answers 2

1

Looks like my external HDD is faulty. I tried running a different external HDD to raspberry pi and it has not disconnected even once for a week already.

0

Check your power supply. Make sure your adapter can handle at least 2A since you're running a hard disk. A phone charger won't do.

Source: Experience

15
  • I now used 5V 2A power supply for the raspberry pi. After sometime, the drive has moved again from /dev/sda1 to /dev/sdb1. What steps can I take to diagnose this problem?
    – Xegara
    Commented Dec 16, 2015 at 3:37
  • As what everyone is saying here, you cannot diagnose it. It's part of the Linux kernel. I'll update my answer. Sit tight.
    – Aloha
    Commented Dec 16, 2015 at 4:14
  • Do you mean there is no way to log or determine as to why the hard disk drives reconnects after some time when it was mounted? Is there really no command to do so?
    – Xegara
    Commented Dec 18, 2015 at 12:55
  • @Xegara dmesg
    – Aloha
    Commented Dec 19, 2015 at 5:01
  • It says: buffer I/O error on /dev/sda2, logical block 786554, async page read. What does this imply?
    – Xegara
    Commented Dec 28, 2015 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.