Pogoplug V2 E02 how to survive a power failure / outage

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

Pogoplug V2 E02 how to survive a power failure / outage

Postby fyl » Tue Sep 24, 2013 11:11 am

Hi,

I am a newbie and trying to configure the pogoplug. It is installed as a journaled Ext3. It seems that everytime I pwr off it at the outlet, it will not boot into Alarm anymore. I have to take it out and plug it into another linux to fsck it before plugging it back in.

Appreciate your thoughts. tq
fyl
 
Posts: 2
Joined: Sat Sep 21, 2013 5:47 pm

Re: Pogoplug V2 E02 how to survive a power failure / outage

Postby karog » Tue Sep 24, 2013 6:24 pm

Before you unplug, run
$this->bbcode_second_pass_code('', '/sbin/shutdown -h now')
and wait one minute.

You can make an alias for that you so you can type less and remember more easily. Suppose your pogo hostname is ppe02 (and resolves to its ip address else use the ip address). you can do:
$this->bbcode_second_pass_code('', 'alias ppe02sd='ssh -q ppe02 /sbin/shutdown -h now'')
on your main machine and setup ssh-keys so you don't need to login. Then just doing ppe02sd on your main machine will do it. Of course you can choose any names you like. My example was ppe02 for pp - pogoplug e02 - that's the model, and the sd for the alias is for shutdown.

You could even add to the alias
$this->bbcode_second_pass_code('', '; sleep 60; echo "ok to unplug"')
so that it will tell you when the minute is up.

Note that one minute is an estimate. If you have lots of stuff running that is slow to shut down, you may need more time.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: Pogoplug V2 E02 how to survive a power failure / outage

Postby grayman4hire » Tue Sep 24, 2013 6:48 pm

Just curious if you actually set the bootcmd to mount the drive as ext3?

$this->bbcode_second_pass_code('', '#Have uboot mount partition as ext3
#safer in power outages
#E02 only, V4 defaults to ext3 already
fw_setenv usb_rootfstype ext3')
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: Pogoplug V2 E02 how to survive a power failure / outage

Postby WarheadsSE » Tue Sep 24, 2013 7:06 pm

* tell uboot to tell the kernel to mount the partition as ext3
* ONLY do this if the drive actually IS ext3
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 E02 how to survive a power failure / outage

Postby steadybright » Fri Oct 04, 2013 9:07 pm

karog, where are aliases stored?

If I create this alias and later want to modify or delete it, where would I find it?
steadybright
 
Posts: 53
Joined: Thu Aug 29, 2013 4:08 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests