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

 
Learn about scoring Forum's Raw Score: 42259.3
December 24, 2011 02:56 PM

Categories: Pogoplug Classic

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

Member Avatar

Telemachus

Member
Joined: 12/24/2011

Have a new pink V3 that I just want enough optware to run Samba, but don't want to lose online Pogoplug ability.

I have followed several tuts to modify the rcS file to mount /dev/sda1 to /opt, including trying to mount it directly after a delay.  

I can mount with command line, but it won't mount upon startup.

At one point, I accidentally deleted the profile file from /etc, but I just installed the one found in the Yahoo NSLU2 general files.  I have checked executable permissions.

Anyone that can help me troubleshoot this?

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

December 24, 2011 10:33 PM

Telemachus - here is my end of rcS code. I can't take credit for it as I've snipped bit's and pieces from other code and made it mine. It works well especially with a SATA drive partition as the optware drive.

Good luck with yours!

-Sarah

# Wait for /opt to mount. For 30 seconds I will try
# each second to mount the hdd partition that
# holds the main system.
# Once it's mounted it will stop trying (common sense).

i=0; while [ $i -le 30 ]; do
mount /dev/sda1 /opt
[ -d /opt/etc ] && break
sleep 1
i=$(expr $i + 1)
done

# This just opens a startup.log and records the number of
# seconds it took to mount the drive. Booting via thumb drive
# takes mine 5 seconds and from SATA, 0 seconds!!

echo "Seconds to mount drive: $i" > /tmp/startup.log 2>&1

# If we couldn't mount the HDD just bail out on the
# rest of post-boot. All the stuff from this point on
# depends on it being mounted. If you have stuff
# that will work regardless, put it before this section.

[ $i -gt 30 ] && return


# If I made it this far the correct drive mounted and
# I can continue on with start up script.

/opt/etc/init.d/optrun.sh >> /tmp/startup.log 2>&1

December 25, 2011 5:20 AM updated: December 25, 2011 9:29 PM

It looks like an elogant solution, thanks you for sharing. I have tried placing a sleep 30 and sleep 60 prior to the mount without any success. It does show the drive mounted as SOMETHING and that it is extension 2. I wonder if it would be better to redirect that mount to opt...


BINGO, got it! Your solution worked great for me, thanks a million, and Merry Xmas!

Now on to learning how to actually USE the optware.

:)

December 27, 2011 12:04 PM

It seems that Samba2 install no longer includes libnsl, and it also doesn't seem to have installed SWAT.

The following solves this problem (and is more for my future reference than anything else)

ipkg install libnsl

Discussion:    Add a Comment | Comments 1-3 of 3 | 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