Need Help Getting Started (Pogoplug v2)

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Need Help Getting Started (Pogoplug v2)

Postby and1or2 » Mon Feb 25, 2013 5:26 am

As a casual Ubuntu user for the last five years or so, I figured picking this device up and getting it up and working wouldn't be so bad, but I'm running into more obstacles than I thought.

Here is what I aim to do with my Pogoplug (E02):

1. Connect a 3 TB Seagate drive (ext4) with various files to the Pogoplug
2. Access the drive via Samba and stream files via MiniDLNA and/or MyMedia (for Roku compatibility)

Here is what I have done so far:

1. Installed ALARM with the help of a 1 GB flash drive and updated packages (pacman -Syu)
2. Installed samba and avahi (pacman -Sy samba avahi)
3. Tried to enable automounting
$this->bbcode_second_pass_code('', 'pacman -Sy udevil
systemctl enable devmon@root
systemctl start devmon@root')

So far only the first of the above steps has gone smoothly. After installing samba, I attempted to follow a tutorial (http://web.archive.org/web/20120527205109/http://archlinuxarm.org/support/guides/applications/samba) that suggested running
$this->bbcode_second_pass_code('', 'adduser pcguest')
but I received the following message:
$this->bbcode_second_pass_code('', '-bash: adduser: command not found')

Since I couldn't do much without the drive mounted anyway, I moved on to the next step. It didn't take long to identify my drive using
$this->bbcode_second_pass_code('', 'blkid -o list -c /dev/null')
but could only get the response
$this->bbcode_second_pass_code('', 'fuse: device not found, try 'modprobe fuse' first')
when trying to mount with either the UUID or device name (sdb1, in this case).

I'm mostly concerned about fiddling with these things with my 3 TB drive attached, which has plenty of files that I would hate to lose. Any suggestions that would help me along with this process would be greatly appreciated.
and1or2
 
Posts: 4
Joined: Mon Feb 25, 2013 4:56 am

Re: Need Help Getting Started (Pogoplug v2)

Postby moonman » Mon Feb 25, 2013 6:59 am

The command is useradd and not adduser, also you can run samba as root which is not recommended for security reason, but is a lot easier for novice users to get started (especially if you are not worried of somebody hacking your pogoplug). The guide has been deleted from this website and is obviously not up to date. It was suggested to copy the config file for easier installation from the guide, but do still read the official one: https://wiki.archlinux.org/index.php/Samba

Did you reboot after update? If not, do so now.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Need Help Getting Started (Pogoplug v2)

Postby and1or2 » Sun Mar 10, 2013 12:52 am

$this->bbcode_second_pass_quote('moonman', 'T')he command is useradd and not adduser, also you can run samba as root which is not recommended for security reason, but is a lot easier for novice users to get started (especially if you are not worried of somebody hacking your pogoplug). The guide has been deleted from this website and is obviously not up to date. It was suggested to copy the config file for easier installation from the guide, but do still read the official one: https://wiki.archlinux.org/index.php/Samba

Did you reboot after update? If not, do so now.

Thanks for the response. I finally got around to looking at this again, started from the top, and have fewer problems. After finding out that the udev automount is not working properly, I have my external NTFS drive mounting properly via fstab, but I'm not able to get the samba share to work. I installed, added a user, configured the samba.conf, but the shared drive doesn't appear. I can attempt to connect directly via the IP, but on my Ubuntu box, I get "Unable to mount location/ Failed to mount Windows share".

$this->bbcode_second_pass_code('', '# fdisk -l

Disk /dev/sdb: 3000.6 GB, 3000592977920 bytes, 732566645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xb07ca501

Device Boot Start End Blocks Id System
/dev/sdb1 2048 732565503 2930253824 7 HPFS/NTFS/exFAT')
and1or2
 
Posts: 4
Joined: Mon Feb 25, 2013 4:56 am

Re: Need Help Getting Started (Pogoplug v2)

Postby moonman » Sun Mar 10, 2013 7:46 am

udev-automount doesn't work with ntfs, but what you had posted above does work.

I would need to see your /etc/samba/smb.conf and output of mount
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Need Help Getting Started (Pogoplug v2)

Postby Socaltom » Sun Mar 10, 2013 4:56 pm

I use webmin to add users and setup samba. Its made things a lot easier .
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Need Help Getting Started (Pogoplug v2)

Postby and1or2 » Sun Mar 10, 2013 11:20 pm

$this->bbcode_second_pass_quote('Socaltom', 'I') use webmin to add users and setup samba. Its made things a lot easier .
Tom
Yeah, I'm sure I have the groups and users wrong. I can't seem to figure it out even with the help of the convenient Webmin GUI.

$this->bbcode_second_pass_code('', '# mount
/dev/sdb1 on /media/seagate type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)')

$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = POGOPLUG
netbios name = POGOPLUG
disable netbios = yes
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE

large readwrite = yes
min receivefile size = 4096
use sendfile = true
aio read size = 4096
aio write size = 65636
write raw = yes
read raw = yes
max xmit = 131070
dead time = 15
getwd cache = Yes
oplocks = No
write cache size = 65536

[Seagate]
guest account = pcguest
writeable = yes
guest only = yes
public = yes
path = /media/seagate
')

Also, random question: the 1GB flash drive I'm using isn't sufficient for installing the additional packages that I intend to use. Can I just copy over the contents to a new flash drive and boot as usual or is the process more complex?
and1or2
 
Posts: 4
Joined: Mon Feb 25, 2013 4:56 am

Re: Need Help Getting Started (Pogoplug v2)

Postby moonman » Sun Mar 10, 2013 11:46 pm

Try this instead:

$this->bbcode_second_pass_code('', ' [Seagate]
path = /media/seagate
read only = no
public = yes
writable = yes
force user = root')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Need Help Getting Started (Pogoplug v2)

Postby and1or2 » Mon Mar 11, 2013 1:51 am

I still don't see it pop up automatically under network devices, but I connected to it directly via Nautilus and that works for me. Thanks for the suggestions.

I have two more questions at the moment:

1. I'd like to change from my 1GB flash drive to something bigger so that I can install additional packages that I don't have room for currently. Can I just copy over the contents to a new flash drive, edit some config files, and boot as usual or is the process more complex?

2. My main storage drive is formatted to NTFS because that's how it came, but I'm only reaching write speeds of 1.8 Mb/s. Are there any reliable ways to speed up this rate or should I look into changing the format? I don't have any need for using the drive with Windows systems.
and1or2
 
Posts: 4
Joined: Mon Feb 25, 2013 4:56 am

Re: Need Help Getting Started (Pogoplug v2)

Postby moonman » Mon Mar 11, 2013 3:17 am

1. There are 2 ways:
(a) format the new drive as ext3 and cp -a <source> <destination>
(b) dd if=<source> of=<destination> and then do a resise2fs

2. I would really really recommend using ext3/4 not inly will you speed up the transfers, you will also avoid a lot of problems people were having with samba/ntfs combination


To get the drives to show up, make sure nmbd service is running "systemctl enable/start nmbd". If it isn't working still, then make pogoplug your wins server by adding "wins support = yes" under global in smb.conf and entering the IP of the pogoplug under WINS Server in your router.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Need Help Getting Started (Pogoplug v2)

Postby etan » Thu Mar 21, 2013 4:49 am

$this->bbcode_second_pass_quote('moonman', ' ')also you can run samba as root which is not recommended for security reason


can you tell how to run samba as non-root ?

http://askubuntu.com/questions/1298/ubu ... ng-as-root
etan
 
Posts: 13
Joined: Sun Feb 17, 2013 5:45 pm
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests