Pogoplug v4 to serve videos

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

Pogoplug v4 to serve videos

Postby NShore87 » Wed Feb 20, 2013 6:05 am

Hi,

Please bear with me as I am new to Linux and ARM, but I've been trying to find some kind of guide to accomplish the following without any luck:

Simply, I'd like to use my Pogoplug series 4 as a NAS that will serve videos to clients on my home network. The two computers I'll be using to access the video content are a laptop running Ubuntu 12.10 and a MAC running OS X 10.6.8.

My configuration:

- Pogoplug V4-A3-01 (black with green light on front)
- SanDisk Cruzer 4GB USB key plugged into top slot (runs ALARM OS)
- FreeAgent GoFlex 500GB, formatted in Ubuntu as FAT32, not currently connected but which I would like to plug into the scsi slot on the top of the plug to store all of the media content (tried it once and could no longer boot from USB key and had to reinstall everything)

What I've done so far:

1- Followed the install guide at http://archlinuxarm.org/platforms/armv5 ... g-series-4. Worked like a charm and have no problems booting device and connecting via SSH.
2- Installed initscripts (which I later found out is not really supported anymore) and added the following line to rc.conf: DAEMONS=(!hwclock syslog-ng network netfs crond openntpd sshd) since the First Steps Guide at http://web.archive.org/web/201205290635 ... irst-steps recommended doing so for setting the time and date. No problems here either other than the fact that initscripts is not supported.
3- Have updated all packages with pacman -Syu

What I would like to know:

1. How to make my device boot so that it can "see" the 500GB GoFlex drive when it's plugged in
2. How do I copy files onto the 500GB GoFlex drive that is plugged into the scsi slot?
3. How do I connect to the plug to access the content from a remote client (i.e. what packages do I need to install on the plug? What programs do I need on the clients?)

Any help would really be appreciated. Please be as specific as possible in your replies since my knowledge of Linux is very limited, although I am comfortable entering terminal commands and I learn pretty quickly.

Thanks for the help!
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby moonman » Wed Feb 20, 2013 7:51 am

1. Enable automounting
$this->bbcode_second_pass_code('', 'pacman -Sy udevil
systemctl enable devmon@root
systemctl start devmon@root')

2. and 3. You need "samba"
$this->bbcode_second_pass_code('', 'pacman -Sy samba')

http://web.archive.org/web/201205272051 ... ions/samba

Don't use rc.d stuff though, just edit/copy the config and use systemctl enable/start smbd and systemctl enable/start nmbd instead. You really should get rid of initscripts.
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: Pogoplug v4 to serve videos

Postby NShore87 » Thu Feb 21, 2013 2:04 am

Thanks moonman!

I followed the instructions in your posts. I just need to configure Samba...

How do I actually uninstall/remove initscripts? I followed the instructions here: http://evilshit.wordpress.com/2012/12/0 ... archlinux/

So far, nothing seems to be broken. Still able to boot.
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby winestock » Thu Feb 21, 2013 3:42 pm

$this->bbcode_second_pass_quote('NShore87', 'T')hanks moonman!

I followed the instructions in your posts. I just need to configure Samba...

How do I actually uninstall/remove initscripts? I followed the instructions here: http://evilshit.wordpress.com/2012/12/0 ... archlinux/

So far, nothing seems to be broken. Still able to boot.


$this->bbcode_second_pass_code('', '
sudo pacman -Rsn initscripts
')

I would also suggest taking a look at using NFS: https://wiki.archlinux.org/index.php/NFSv3. You can see which will provide faster reading/writing, samba or NFS, for your purposes. Make sure to enable TCP for NFS.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: Pogoplug v4 to serve videos

Postby NShore87 » Fri Feb 22, 2013 3:22 pm

Thanks so much for the help. I now have my plug up and running and I am able to access my files from all of my network computers via Samba and it works great!

I haven't tried yet to switch to NFS, but will look into that today.
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby NShore87 » Fri Feb 22, 2013 4:06 pm

Ok, so I thought I understood something about Samba. Evidently, not.

I added a 1TB Seagate USB drive to my setup, which is now plugged into the bottom USB port on the back of my plug (/dev/sdc1). I can mount/umount the drive manually when connected to my plug via SSH, no problems there. However, I tried modifying my smb.conf and fstab files in order to have the drive mount automatically at startup, and after making the changes to the respective files, I obviously broke something because my plug would no longer boot properly (flashing green light).

I should also mention that I changed the name of the [ArchLinuxARM] section in smb.conf thinking that this represented the label of the samba share, but I don't think that's the case...

Here is what I have in my smb.conf:

$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = 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=131$
[Media]
path = /mnt/media
read only = no
public = yes
writable = yes
force user = root
[Backup]
path = /mnt/backup
read only = no
public = yes
writable = yes
force user = root')

And here is what I have in fstab

$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /mnt/media vfat auto,noexec,rw 0 0
/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0')

Can anyone tell me what I did wrong?
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby winestock » Fri Feb 22, 2013 6:06 pm

$this->bbcode_second_pass_quote('NShore87', 'O')k, so I thought I understood something about Samba. Evidently, not.

I added a 1TB Seagate USB drive to my setup, which is now plugged into the bottom USB port on the back of my plug (/dev/sdc1). I can mount/umount the drive manually when connected to my plug via SSH, no problems there. However, I tried modifying my smb.conf and fstab files in order to have the drive mount automatically at startup, and after making the changes to the respective files, I obviously broke something because my plug would no longer boot properly (flashing green light).

I should also mention that I changed the name of the [ArchLinuxARM] section in smb.conf thinking that this represented the label of the samba share, but I don't think that's the case...

Here is what I have in my smb.conf:

$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = 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=131$
[Media]
path = /mnt/media
read only = no
public = yes
writable = yes
force user = root
[Backup]
path = /mnt/backup
read only = no
public = yes
writable = yes
force user = root')

And here is what I have in fstab

$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /mnt/media vfat auto,noexec,rw 0 0
/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0')

Can anyone tell me what I did wrong?


The problem is with your /etc/fstab:
$this->bbcode_second_pass_code('', '
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /mnt/media vfat auto,noexec,rw 0 0
/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0
')

I would think you would want /etc/fstab to be:
$this->bbcode_second_pass_code('', '
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sdb1 /mnt/media vfat auto,noexec,rw 0 0
/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0
')

The other thing you will want to be aware of, if you have more then one HD plugged into the PPv4 (your media and backup) while booting I would not rely on the media HD always be assigned to /dev/sdb and backup always being assigned to /dev/sdc. I suggest that you mount the HDs by hand and then use the blkid command to get the UUIDs for each HD. Then modify the fstab file:
$this->bbcode_second_pass_code('', '
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
UUID=# /mnt/media vfat auto,noexec,rw 0 0
UUID=# /mnt/backup fuseblk auto,noexec,rw 0 0
')

Replace '#' with the UUID that is retruned from blkid. This is the safer way in my opinion.
Last edited by winestock on Fri Feb 22, 2013 8:20 pm, edited 1 time in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: Pogoplug v4 to serve videos

Postby NShore87 » Fri Feb 22, 2013 7:41 pm

@Winestock: thanks, I'll try with the UUID. So, does that min I should also have /dev/root in my fstab?
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby NShore87 » Fri Feb 22, 2013 7:52 pm

I commented out the second line of my fstab file and left only the line for my media drive:

$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /mnt/media vfat auto,noexec,rw 0 0
#/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0')

and rebooted with all devices plugged in (i.e. my USB flash drive with Arch, my media drive (SATA), and my USB backup drive).

Here is the result of blkid:

$this->bbcode_second_pass_code('', '/dev/sda1: LABEL="media" UUID="60BD-2624" TYPE="vfat"
/dev/sdb1: UUID="2763b275-f3a4-4e25-8b87-b4d0ad710f9c" TYPE="ext3"
/dev/sdc1: LABEL="FreeAgentD" UUID="6CF40EC2F40E8E90" TYPE="ntfs"')
NShore87
 
Posts: 7
Joined: Wed Feb 20, 2013 5:35 am

Re: Pogoplug v4 to serve videos

Postby winestock » Fri Feb 22, 2013 8:26 pm

$this->bbcode_second_pass_quote('NShore87', 'I') commented out the second line of my fstab file and left only the line for my media drive:

$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /mnt/media vfat auto,noexec,rw 0 0
#/dev/sdc1 /mnt/backup fuseblk auto,noexec,rw 0 0')

and rebooted with all devices plugged in (i.e. my USB flash drive with Arch, my media drive (SATA), and my USB backup drive).

Here is the result of blkid:

$this->bbcode_second_pass_code('', '/dev/sda1: LABEL="media" UUID="60BD-2624" TYPE="vfat"
/dev/sdb1: UUID="2763b275-f3a4-4e25-8b87-b4d0ad710f9c" TYPE="ext3"
/dev/sdc1: LABEL="FreeAgentD" UUID="6CF40EC2F40E8E90" TYPE="ntfs"')


Another thing you will want to do is create swap space: https://wiki.archlinux.org/index.php/Swap.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests