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

 
Learn about scoring Forum's Raw Score: 132326.0
June 20, 2011 07:02 PM

Categories: Pogoplug Classic

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

Member Avatar

DarkKnight

Member
Joined: 08/11/2010

FFS... I simply cannot find the most basic commands for this thing. Google is not my friend.I have the worst luck finding basic operational commands here. Running openpogo v1.

How do you: (will add more commands as they come up)

List Devices/List Disks ; Raw list, even for unmounted devices. 'df' does not show all the connected devices.

I created a small script in /opt/etc/init.d to set the HDD to sleep after 3 min:

hdparm -S 36 /dev/sda

hdparm -S 36 /dev/sdb

However, the drives do not always get mounted in the same order, and occasionally, the usb drive ends up as /dev/sda vs /dev/sdc. How can I make this smart enough to only tell the HDD drives to sleep?

How can I change the samba name that shows up under windows? Currently it's something like FADSxxxxx.

Upon reboot, the device only has the first HDD shared. I have to go to mypogoplug.com and manually set every other device to r/w to see it over the network. Anyway to automate this at startup?

Thanks for taking the time to answer any questions. ;)

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

June 21, 2011 11:39 AM

What are you searching for? SSH is just the method of accessing the Pogoplug's underlying Linux system, so a search for "SSH commands" won't yield much. You likely want "Linux terminal commands" or "Busybox commands"

Anyway, as for the commands you need:

List devices/list disks: "cat /proc/partitions" should show all storage partitions, even unmounted ones. Won't show other devices though
Recognise hard drives no matter where they are: type "blkid" with the drives attached, you should get output like this:

/dev/sda1: LABEL="OPT" UUID="7601b7f8-60e6-4662-8d3e-3e5860ee8cfd" TYPE="ext2"

/dev/sdb1: LABEL="M-^IPNG^M^J^Z^J" UUID="64C9-30D5" TYPE="vfat"

the UUIDs are the Unique ID numbers for those drives. replace the /dev/sda and /dev/sdb parts of your commands with those IDs and they should always affect those drives no matter where they end up in the device list

that Should work with hdparm. I know you can mount by UUID, so I don't see why not. worth a shot

set Samba share name: not entirely sure what you're talking about here, whether it's the hostname or the share name itself. run the hostname command and if that's showing FADSxxxxx. then you can just run hostname newname to change the host name. if it's the share name itself you want to change, locate and edit your smb.conf file, seatch for FADSxxxxx and you should be able to change the name. Cack up your smb.conf first though!

HDD permissions on startup: not entirely sure about this. Normally the startup mount settings would be in fstab, but pogo doesn't have many entries in there. you could try setting their permissions in the rcS file, but I don't recall seeing the USB drive mounting config in there.

Hope that helped,

Stefan

June 21, 2011 1:51 PM

Usually I search for optware commands, or bash commands. I found fdisk -l works for listing the drives too.

The device name I see for the plug when looking at network shares from another pc is what is like to change. I edited the smb.conf file, it looked like it was overwritten on reboot, because although it did save correctly, when I rebooted the change was reverted. Now I need to use the ip to find it, tas its no longer showing up automatically on other PCs.

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