[Solved] Pogoplug will not boot after installing Samba

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

[Solved] Pogoplug will not boot after installing Samba

Postby animaimmortale » Sun Jun 09, 2013 2:20 pm

I have been trying for a few weeks to install Arch Linux and get a Samba server running on my Pogoplug E02 but have been thus far unsuccessful. Everything works fine until the point I actually install Samba. I install Samba using $this->bbcode_second_pass_code('', 'pacman -Sy samba') and it installs. I reboot and everything comes up. I then proceed to configure samba below is my config file,
$this->bbcode_second_pass_code('', '
[global]
workgroup = WORKGROUP
server string = POGOPLUG
netbios name = POGOPLUG
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 2097152
use sendfile = yes

#unprotected/public share without login
security = user
map to guest = Bad User
guest account = root

#[root$]
# path = /
# read only = no
# public = yes
# writable = yes
#force user = root
# guest ok = yes

[media]
path = /mnt/media
read only = no
public = yes
writable = yes
force user = randy
guest ok = no
')
I then start the samba server $this->bbcode_second_pass_code('', 'systemd smbd nmbd') I can access the media file share from my laptop. I then reboot and that's when things stop working. I get an orange light on the front of the Pogoplug but I can't ssh in. Below is the output I get from netconsole:
$this->bbcode_second_pass_code('', '
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
scanning bus for storage devices... 2 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 728
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 717
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2888208 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-20-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2888144 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...
')
When I try to ssh in I get $this->bbcode_second_pass_code('', 'ssh: connect to host 192.168.1.106 port 22: No route to host')
From reading some other posts, it seems that the problem maybe related to netcfg loading before the interface is ready so I migrated to netctl. Per the Arch Linux wiki, I added the following:
$this->bbcode_second_pass_code('', '
echo "[[ -t 0 ]] || sleep 10" > /etc/netctl/interfaces/eth0
chmod 755 /etc/netctl/interfaces/eth0
')
This did not resolve this issue. I even waited for 10+ min to see if it would ever pull an IP. I'm really at a loss now and I don't know where to go from here. Can anyone offer some recommendations? I would really like to get this working.
Last edited by animaimmortale on Mon Jun 10, 2013 12:27 am, edited 1 time in total.
animaimmortale
 
Posts: 2
Joined: Sat Jun 08, 2013 9:50 pm

Re: Pogoplug will not boot after installing Samba

Postby pepedog » Sun Jun 09, 2013 3:14 pm

One way, from https://wiki.archlinux.org/index.php/Dhcpcd#Dynamic_IP_address
$this->bbcode_second_pass_code('', 'If the dhcpd service starts before your network card module (FS#30235), manually add your network card to /etc/modules-load.d/*.conf. For example, if your Realtek card needs r8169 to be loaded, create:
[u]/etc/modules-load.d/realtek.conf[/u]
r8169')
To configure an interface with netctl
$this->bbcode_second_pass_code('', 'cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/ethernet-dhcp
netctl enable ethernet-dhcp')

I think all this stems from partition needing a fschk on it though
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pogoplug will not boot after installing Samba

Postby animaimmortale » Sun Jun 09, 2013 5:34 pm

So, I enabled $this->bbcode_second_pass_code('', 'dhcpd@eth0') This worked great (results in quicker start up times). I still had the issue though but it turned out that it was my fstab entry to auto-mount my 2TB drive. My first entry was $this->bbcode_second_pass_code('', 'echo "LABEL=media /mnt/media ntfs rw,noatime 0 0" >> /etc/fstab') This stalled boot up. I mounted the usb and modified it to: $this->bbcode_second_pass_code('', 'echo "/dev/sdb1 /mnt/media ntfs-3g defaults 0 0" >> /etc/fstab') It work great now, such a simple answer.
animaimmortale
 
Posts: 2
Joined: Sat Jun 08, 2013 9:50 pm

Re: [Solved] Pogoplug will not boot after installing Samba

Postby fox1986 » Sat Jul 20, 2013 3:55 pm

Having the same issue right now. I wonder how my fstab must look like:

The first one is the USB-Stick running ArchLinux
The second is my usb-harddisk

Do I need the entry for my USB-Stick?

LABEL=ROOTFS / ext3 rw,noatime 0 1
UUID=F474B7AA74B76DCC /media/wd ntfs-3g
fox1986
 
Posts: 10
Joined: Fri Jul 19, 2013 5:41 pm

Re: [Solved] Pogoplug will not boot after installing Samba

Postby momentum » Fri Aug 16, 2013 4:43 am

got the same issue and want to follow the instructions here. How can I communicate with pogo and make the changes, i.e. enable dhcpcd@eth0?
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: [Solved] Pogoplug will not boot after installing Samba

Postby moonman » Fri Aug 16, 2013 5:38 am

$this->bbcode_second_pass_quote('fox1986', 'H')aving the same issue right now. I wonder how my fstab must look like:

The first one is the USB-Stick running ArchLinux
The second is my usb-harddisk

Do I need the entry for my USB-Stick?

LABEL=ROOTFS / ext3 rw,noatime 0 1
UUID=F474B7AA74B76DCC /media/wd ntfs-3g


Don't use LABEL in fstab for rootfs unless you have an initrd.

Second line should be
UUID=F474B7AA74B76DCC /media/wd ntfs-3g defaults 0 0

$this->bbcode_second_pass_quote('momentum', 'g')ot the same issue and want to follow the instructions here. How can I communicate with pogo and make the changes, i.e. enable dhcpcd@eth0?


Manually make a symlink
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: [Solved] Pogoplug will not boot after installing Samba

Postby huntrm » Fri Aug 16, 2013 9:32 pm

Hi, to chime in here. I'm now on my 3rd install of Arch on my plug v2. With an external HD for Samba and with a USB stick for running Arch, something is preventing it from starting back up after a reboot. Frustrating as heck.

I followed the instructions here for this website:
http://blog.qnology.com/2013/03/tutoria ... linux.html

And, here's the /etc/fstab entries. Any issues or things I should change here? I'm rebooting several times to make sure everything is okay before I try Samaba again....

$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
LABEL=ROOTFS / ext3 rw,noatime 0 1
LABEL=USB /media/usb ext3 rw,noatime 0 0
')
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: [Solved] Pogoplug will not boot after installing Samba

Postby huntrm » Fri Aug 16, 2013 11:22 pm

I decided to try this approach to ensure that the USB stick is the boot drive on the plug:

http://mouhassan.wordpress.com/2012/06/ ... -usb-disk/

I did this before I installed Samba. Here's what I did:

I already had the boot usb stick labeled and in /etc/fstab - so, I skipped this step:
$this->bbcode_second_pass_code('', '[root@alarm ~]# e2label /dev/sda1 ROOTFS')

Check the config prior to making the change:
$this->bbcode_second_pass_code('', '[root@alarm ~]# /usr/sbin/fw_printenv usb_init')

Made the change to add ROOTFS:
$this->bbcode_second_pass_code('', '[root@alarm ~]# /usr/sbin/fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=ROOTFS"')

Make the change to the kernel:
$this->bbcode_second_pass_code('', '[root@alarm etc]# mkinitcpio -v -g /boot/kernel.img
[root@alarm etc]# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d /boot/kernel.img /boot/uInitrd')

If “mkimage” utility is not installed, then you can install it using the following command:
$this->bbcode_second_pass_code('', '[root@alarm etc]# pacman -Sy uboot-mkimage')

We'll see if this works. Gonna "shutdown -r now" several times to see if this will allow reboots to work properly....
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: [Solved] Pogoplug will not boot after installing Samba

Postby huntrm » Sat Aug 17, 2013 12:48 am

Well, looks like after a 3-4 "shutdown -r now" after samba install with an external USB HD, it's now dead. Can't ping the IP address of the pogoplug, etc.

Kills me to try to work on this, and yet no clear answer or direction. Furthermore, after a certain number of reboots, the thing just dies with a green light, yet can't ssh into it with usb stick and HD in place. One spends 1-2 hours setting it all back up again, and then it dies.

I'm about to throw the pogo in the trash...
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: [Solved] Pogoplug will not boot after installing Samba

Postby huntrm » Mon Aug 19, 2013 4:55 pm

Hey guys, thought I'd let you know that I was ale to get this to work by swapping out another external HD. I continued to try to troubleshoot the issue on many levels, including all the ideas that others have proposed regarding this issue.

My problem was happening after samba was installed AND the first time any sort of files were saved/deleted off of it. Sounds odd huh.... After this happened, the pogoplug wouldn't reboot. Tried to change some configs, and FSTAB looked fine. Tried another harddrive, and it works just fine.

Bothers me on many levels that a hardware issue is the cause here....

Thanks.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests