OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 225495.0
March 28, 2011 08:14 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Irregular Shed

Member
Joined: 03/15/2011

Hi folks

I've got Optware going on my pink Pogoplug (I wanted to retain the my.pogoplug.com functionality). I've found that sometimes the drives are mounted in a different order though, so sometimes after a reboot what is normally /dev/sdb1 is /dev/sda1 - making the mount points I've set up for Optware are incorrect. I've got two USB hard drives and a flash stick which should be mounted for Optware. Obviously for the Pogoplug service the order in which things are mounted isn't an issue, but for me it is.

I've not changed the USB ports that things are connected to, so I'm confused as to why things are sometimes out of order (unless there's a millisecond here or there between USB controllers getting their messages through to the kernel) - anybody got any ideas as to how to ensure the drive order remains the same at all times?

Failing a fix, I suppose I can write a script to look for the right device and mount that...

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

March 28, 2011 9:57 AM

Just curious, why are you rebooting? Is this dev/admin time or deployed time? I have had my PogoPlug up since 15 January 2010.

March 28, 2011 10:08 AM

It's not by choice! My washing machine is on its last legs and has tripped the safety switch on the distribution box a couple of times just recently (so the shutdown there is unclean and forced) and I had to replace the power strip I'm using after running out of sockets (so a clean shutdown there).

I'm wondering if the boot of the kernel is so fast that the physical drives - powered up at the same time - aren't quite ready to present themselves. Both have power-saving features so maybe that's slowing them down just enough for the flash drive to grab /dev/sda instead of /dev/sdb, because rebooting the Pogoplug from a shell has always got things in the right order.

If it comes to it, I could try plugging the flash drive into the USB port that the normal /dev/sda drive is on, and change my mount points accordingly. That probably makes sense, thinking about it...

April 4, 2011 1:19 AM

You can use the mount_optextX automounter scripts that are on http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/ . Modify them to your specifications. Obviously, one is for ext3 and the other is for ext2.

April 4, 2011 4:11 AM

Brilliant, thanks for that. I'll give it a whirl later on.

May 23, 2012 8:56 PM

I used the autoer script so that it will always boot from my flash that is formatted ext2. However, the flash if rebooted with another usb attached to pogo will be changed from sda1 to sdb1. When I use windowns to map the , I will end up with the wrong mapped .

Is there other script that will allow me to always the flash as sda1?

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window