Quantcast
Channel: PirateBox Forum - PirateBox OpenWrt
Viewing all articles
Browse latest Browse all 3254

Re: Failure to extend root - slow USB stick?

$
0
0
Hi Matthias,

Overwriting didn't help; it still has that weird behavior after reformatting. I tried some other USB drives and they just work without any extra effort.

I think I'm going to admit defeat on this one :S I installed a little work-around to make it initialize properly by adding the script below to /etc/init.d and enabling it. Not as pretty as I'd like, but it works and everything comes up perfectly in standalone mode. Thank you again for all of your help, and thanks for your work on PirateBox. I like it so much, I'm going to order a few more GL-AR150s and spread them around this part of the neighborhood!

best regards,

Rob



#!/bin/sh /etc/rc.common

# checks to see if the loop devices successfully mounted and if not,
# tries to recover from failed startup that happens with some USB drives

START=94

patch_boot()	{
		set +e; mount /dev/sda /mnt/usb; set -e
		sleep 5
		/etc/init.d/ext restart
		mount -o loop /mnt/usb/PirateBox/pbIMG_ws.img /opt/piratebox
		/opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf recover
		/etc/init.d/piratebox start
}

start() {
	mount | grep -q loop0 || patch_boot
}

"$@"

Viewing all articles
Browse latest Browse all 3254

Trending Articles