Box on partititoned Flash-drive

Posted by NeON 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Box on partititoned Flash-drive
January 24, 2013 10:37PM
Hi, all!
First: sorry fom my bad english - i`m from ex-USSR (vodka-balalaika-bears)spinning smiley sticking its tongue out
Second: i want to install PB on router with ExtROOT. Flash is full((. How? I`m not newbe, but not a God. Kan you help?
And main: really big THANKS and beer (only virtually?) for autor, and copilots.
Искренне Ваш, NeON
Sorry for a russian)).



Edited 1 time(s). Last edit at 01/24/2013 11:14PM by NeON.
Re: Box on partititoned Flash-drive
January 25, 2013 09:00AM
hi,
piratebox-.....ipk normally creates an ext root filesystem during the install.
What router are you using?
Can you give me a bit more information about your system

thanks smiling smiley
Matthias
Re: Box on partititoned Flash-drive
January 25, 2013 09:30AM
Easy)
Asus WL520GU, OpenWRT Backfire, rootFS on external flash drive vith ext3 patrtition and swap partition. USB hub and 3 free ports on it. In future, i`m add usb hard drive for a storage.
Re: Box on partititoned Flash-drive
January 25, 2013 09:57AM
is the flash drive a usb stick?
Re: Box on partititoned Flash-drive
January 25, 2013 10:21AM
USB stick with ext3 for rootFS and swap.
Re: Box on partititoned Flash-drive
January 25, 2013 10:30AM
mh ok.
may I ask you a last question? Your ext-root is an overlay to / or is it linked to /usr/local ?
Re: Box on partititoned Flash-drive
January 25, 2013 10:45AM
Overlay.
Re: Box on partititoned Flash-drive
January 25, 2013 11:11AM
ok.

the default OpenWRT packages uses /dev/sda1 as device node to work with. Most Systems only have one USB Port, so this is a well choosen one smiling smiley
The package and the scripts relay on a fat32 filesystem.

you have two Options:




---- 1.) The hard way


In your case, I would try to install the package without running the postinst script. But I think there is no flog to force opkg to not run the script.

Install the dependencies by hand (if not already installed):
kmod-usb2, kmod-usb-storage, kmod-fs-vfat, kmod-nls-cp437, kmod-nls-cp850, kmod-nls-iso8859-1, kmod-nls-iso8859-15, kmod-fs-ext4, block-mount, kmod-loop, losetup

Download the .ipk file
cd /tmp
wget http:....
tar xzf piratebox*ipk

then copy over the content of the data folder to the target directories ( /etc /usr/share etc... )
Then modify /etc/piratebox.common and exchange the /dev/sda1 with a device node suitable for you
Plugin you usb stick

And run the
control / postinst
script of the package by hand

this should hopefully results in a working system.



---- 2.) easier way
reinstall your system with a current OpenWRT image like Attitude Adjustment.
Do not use the ext root, because OpenWRT will create an own one.
Format your usb stick with FAT32 (ext3 may work too but is even more experimental )
Download the piratebox ipk package
install it.
Finish
Re: Box on partititoned Flash-drive
January 27, 2013 10:44AM
OpenWRT Attitute Adjustment have a broken Wi-Fi module((. And Backfire 10.3.1 too...
UPD: broken b43 module. For target brcm-2.4 all working. It`s acceptable?



Edited 1 time(s). Last edit at 01/27/2013 11:33AM by NeON.
Re: Box on partititoned Flash-drive
January 27, 2013 01:00PM
then stay at your current version.
Haven't known this sad smiley

Maybe you have to swap some dependencies to ext3 instead of ext4

Matthias
Re: Box on partititoned Flash-drive
January 28, 2013 09:46PM
Look like last trunk, Barrier Braker hawe a wowking wi-fi!
Downlpading ImageBuilder.
Re: Box on partititoned Flash-drive
January 29, 2013 02:32PM
sad smiley Another fail
I`m build image with all needed modules. Wi-fi working, usb stick is mounting.
But i don`t have Internet on this device (damaged WAN port). hot smiley
When i install PB from a usb-stick, it tell "Please connect USB disk. If it is already plugged-in,
wait for a few seconds, and if nothing happens, please
reconnect the device.", and dot-dot-dot... If i reconnect stick, router iz reboot(((
Re: Box on partititoned Flash-drive
January 29, 2013 03:28PM
oh thats not good.

Is you usb stick partitioned with 1 vfat partition?
Re: Box on partititoned Flash-drive
January 29, 2013 03:31PM
Yes. 1 partition, FAT32
Re: Box on partititoned Flash-drive
January 30, 2013 08:00AM
Installed! Bun new problem: during installation, on step "Creating swap..." show "Killed" then "File too small".. Then continue, next steps without error. Then reboot, and i see AP PirateBox, but can`t connect to them. And SSH unreachable.
UPD: Previews problem was fixed by reformatting USB-stick - is detected and mounted sda4



Edited 1 time(s). Last edit at 01/30/2013 08:10AM by NeON.