edmun
Posts: 39
Joined: Thu Jan 09, 2014 11:37 am

Re: Problems with power - Model B - Backfeed from USB hubs?

Tue Oct 07, 2014 3:08 pm

BMS Doug wrote: I guess I'm lucky that my wife doesn't mind me buying things, I suppose that it helps that I use the tools to fix the kids toys and other stuff. (Recently made a wedding present for a friend).
Yeah, you should see how many thing I buy
and from how different groups those things are coming (car parts, climbing harness, raspberry pi etc.)

My wife just has enough of mine: "Honey, I really need this!".
Maybe I should think about having a kid? (and this legendary: "Honey, this remote drone is for our son, not for me.....";) ;)

But nevermind... I still did not have enough time to look into the Raspberry and resolve it.
Looking at current stats and state:
The probelms are for sure not because of the USB Charger with Micro USB cable and it's not because of the USB card.
The uptime is now 35 days
Image
Which confirms eveything from this topic (Man... get a proper powered USB hub)

I even don't know why I haven't though about the most easiest way to check everything.
Instead of breaking the original cable apart, I could add a small USB extension cable for £1 and in this cable cut off the 5V.
So I am still going to the same conclusion - use the same USB hub (Belkin) as I do now have and add some USB extension cable/USB_not_powered_HUB between Raspberry Pi and Belkin USB Hub or buy another USB Hub for £15-£20.
I will have to think about it :)
X-Mas time is coming, maybe my wife will let me spend some more money :)

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Problems with power - Model B - Backfeed from USB hubs?

Tue Oct 07, 2014 7:12 pm

Next time you have your setup out of its hiding place, could post a couple of pictures? I am interested to see what you have going on!
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

edmun
Posts: 39
Joined: Thu Jan 09, 2014 11:37 am

Re: Problems with power - Model B - Backfeed from USB hubs?

Sat Oct 11, 2014 4:11 pm

Yupi!

Guys.. I think I've finally resolved the case.
Because today I have bought Chromecast, I was thinking that it's a final day to make Raspberry PI a fully qualified NAS/Torrent/DLNA/FTP/http server.
Because I was not able to cut off the red +5V wire in original hubs, I've finally found some time and went to pound shop (all items for 1 pound) and found a cheap USB hub:
Image
(very popular model)

Believe or not - but this was like hitting the jackpot.
3 screws on the bottom plate and a connector with all the details (GND - + 5V)
cut the red wire out and it's now working absolutely great.
So I have those few external hard drives (mostly 2.5") connected to powered USB hubs from Belkin (which provide power through USB cable) but connected to cheap USB hub in which I have cut off the red +5V wire. Raspberry is not starting up when I connect this HUB to it.
It is just waiting to be powered from USB charger and Micro USB port. If I am correct, this should resolve all the problems. Power for hard drives is going from powered usb hubs and Raspberry PI is only powered by one power source.

Currently Raspberry is placed next to my PC and tv set, but once it won't be needed anymore next to me, it's going back to the storage room into the box (I think 30-40 days of a trial will be enough to make sure I won't need to look into it again)


I will try to keep you updated if this has resolved all of my problems.

edmun
Posts: 39
Joined: Thu Jan 09, 2014 11:37 am

Re: Problems with power - Model B - Backfeed from USB hubs?

Mon Oct 13, 2014 11:54 pm

Ok. I have encoutered some small issues (with my "perfect" set up) but I think it's going in the correct direction.

Just to make someones else life easier, I am adding 3 photos.

Image
Image
Image

After buying those USB hubs (cheap ones),I was able to connect all the hard drives to the powered usb hubs
and the powered hubs to those cheap ones.

From the cheap blue USB hubs there is a tweaked cable going into Raspberry.
In those cheap blue USB hubs, I have removed the red +5V wire (as you may be able to see on the third photo)

What was surprising, I was not able to connect two powered USB hubs into one cheap blue HUB.

I had to use two of them, otherwise the power was kicking the hard drives really badly.

There was a workaround in it by using a chain connection (powered USB hub to Powered USB hub and then to cheap blue HUB and then to Raspberry) but this way I was loosing one powered USB port on the "expensive" HUB.

Current issues I am having are my USB3.0 enclosures, which are not working fine after Raspberry Pi will be restarted.
I've already spent another 2 hours on it and found again some minor issues, to which I can't locate answers.

Please see results of the investigation:
ntfs-3g installed. All USB ports are available.
Connecting Hard Drive in USB3.0 enclosure results in:
positive result by sudo blkid
positive result in sudo lsusb
positive result in fdisk -l
HDDs are visible with labels, and with UUIDs, I can see devices on dev/sda and on /dev/sdb and the disks are being automatically mounted to /media/Label1 / media/Label2
Great.. Happy from the results I have attached the rest of the hard drives,
also those in normal USB2.0 enclosures (by the usb cables).
All of them resulted in only positive effect. But once I've restarted the Raspberry by "sudo shutdown -r now" I have noticed that in /media folder I can see files only from hard drives in enclosures of USB 2.0.

First check:
sudo blkid
the results includes only /dev/sdc, /dev/sdd and /dev/sde. Disks /dev/sda and /dev/sdb are not on the list
fdisk give me the same and disks could not be found.
I have unplugged them and plugged them back in - all good. I can see all the files again. Restarted again and found that those are missing again. Nowhere to find in dev or /mnt/ or /media
blkid is not showing them, lsusb also does not provide any info.
The only traces I have found were:
syslog:

Code: Select all

Oct 13 08:58:46 raspberrypi kernel: [    7.342457] sd 2:0:0:0: [sdd] Test WP failed, assume Write Enabled
Oct 13 08:58:46 raspberrypi kernel: [    7.351113] sd 2:0:0:0: [sdd] Asking for cache data failed
Oct 13 08:58:46 raspberrypi kernel: [    7.357985] sd 2:0:0:0: [sdd] Assuming drive cache: write through
Oct 13 08:58:46 raspberrypi kernel: [    7.898545] sd 2:0:0:0: [sdd] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Oct 13 08:58:46 raspberrypi kernel: [    7.910353] sd 2:0:0:0: [sdd] No Caching mode page found
Oct 13 08:58:46 raspberrypi kernel: [    7.917032] sd 2:0:0:0: [sdd] Assuming drive cache: write through
Oct 13 08:58:46 raspberrypi kernel: [    7.924368] sd 2:0:0:0: [sdd] Attached SCSI disk
Oct 13 08:58:46 raspberrypi kernel: [    8.068943] sd 4:0:0:0: [sde] READ CAPACITY failed
Oct 13 08:58:46 raspberrypi kernel: [    8.074965] sd 4:0:0:0: [sde]
Oct 13 08:58:46 raspberrypi kernel: [    8.079298] Result: hostbyte=0x00 driverbyte=0x08
Oct 13 08:58:46 raspberrypi kernel: [    8.085153] sd 4:0:0:0: [sde]
Oct 13 08:58:46 raspberrypi kernel: [    8.089457] Sense Key : 0x2 [current]
Oct 13 08:58:46 raspberrypi kernel: [    8.094376] sd 4:0:0:0: [sde]
Oct 13 08:58:46 raspberrypi kernel: [    8.098661] ASC=0x4 ASCQ=0x1
Oct 13 08:58:46 raspberrypi kernel: [    8.103577] sd 4:0:0:0: [sde] Test WP failed, assume Write Enabled
Oct 13 08:58:46 raspberrypi kernel: [    8.112039] sd 4:0:0:0: [sde] Asking for cache data failed
Oct 13 08:58:46 raspberrypi kernel: [    8.118810] sd 4:0:0:0: [sde] Assuming drive cache: write through
Oct 13 08:58:46 raspberrypi kernel: [    8.744966] sd 4:0:0:0: [sde] 488397168 512-byte logical blocks: (250 GB/232 GiB)
Oct 13 08:58:46 raspberrypi kernel: [    8.756433] sd 4:0:0:0: [sde] No Caching mode page found
Oct 13 08:58:46 raspberrypi kernel: [    8.763072] sd 4:0:0:0: [sde] Assuming drive cache: write through
Oct 13 08:58:46 raspberrypi kernel: [    8.770522] sd 4:0:0:0: [sde] Attached SCSI disk
Oct 13 08:58:46 raspberrypi kernel: [    8.776932] Freeing unused kernel memory: 140K (c05bd000 - c05e0000)
Oct 13 08:58:46 raspberrypi kernel: [   12.262526] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
Oct 13 08:58:46 raspberrypi kernel: [   17.916687] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Oct 13 08:58:46 raspberrypi kernel: [   18.391474] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Oct 13 08:58:46 raspberrypi kernel: [   24.194352] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Oct 13 08:58:46 raspberrypi kernel: [   24.326181] fuse init (API version 7.22)
Oct 13 08:58:46 raspberrypi kernel: [   30.338992] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Oct 13 08:58:46 raspberrypi kernel: [   31.911352] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
And what is really funny. The only place I have found some information that those hard drives are connected, was Gparted Parition Editor.
But the only thing I was able to check, was the disk information with yellow warning /etc/mtab missing, it's too risky to continue
Unplugging the hard drive and plugging it back resolves all the problems.

Any ideas?
Tomorrow I am planning to change the hard drives enclosures back to some old USB 2.0 which will probably resolve the problems,
but anyone might have an idea why the disks are working fine with plug and play but not after soft reboot ? (I have also tried with rootdelay and usbwait options)

Return to “Beginners”