Hello,
I did a pacman -Sy something something and ended up lossing everything. I formated the thumbdrive using ubuntu 12.04. First using the disk utilitie,
then i tried
Start fdisk to partition the USB or SATA drive:
/sbin/fdisk /dev/sdb
At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Now type n, then p for primary, 1 for the first partition on the drive, and then press ENTER, accepting default values.
Exit by typing w.
but this didn't work too well.
I unmounted and formatted the memory once again with disk utilities on Ubuntu. then using mke2fs -j /dev/sdxx where xx is your respective thumbdrive to reinstall everything too. in this case mine was /dev/sdb1
now create a xxxxxx.sh file. this one is for the Pogoplug Pro. I used it on mine based on my reading and it works/test on Model:
PogoPlug Pro. Probably works on others. PLease note this is just a modified version of the ./oxnas-install.sh
NOTE: notice the line with MAC=`00:25:31:01:XX:XX`, that is my pogoplug mac, use your own found in the sticker on base of unit
$this->bbcode_second_pass_code('', '#!/bin/sh
echo "#############################"
echo "##"
echo "## Pogoplug OXNAS based boards"
echo "## Arch Linux ARM rootfs Installer"
echo "##"
echo "#############################"
echo "##"
echo "## For use with OXNAS 7820 only."
echo "##"
echo "#############################"
echo "## PREPARATION "
echo "# Switching to /tmp..."
cd /tmp
echo "# Ensuring we're ready to proceed..."
## killall hbwd
umount /dev/sdb1
echo "# Preparing our way..."
mkdir /tmp/usb
mount /dev/sdb1 /tmp/usb
## get the things we need from blparam
echo "# Getting uboot parameters..."
/usr/local/cloudengines/bin/blparam > blparam.txt
echo "# This probably failed...as it does not exist!..."
MAC=`00:25:31:01:XX:XX`
LNAND=`nboot 60500000 0 200000`
BOOTARGS=``
BOARDVER=`PPRO1`
echo "# = MAC : $MAC"
echo "# = load_nand : $LNAND"
echo "# = bootargs : $BOOTARGS"
echo "# = board : $BOARDVER"
echo "# "
echo "# Checking board revision..."
if [ "$BOARDVER" != "PPRO1" -a "$BOARDVER" != "PPROHD1" -a "$BOARDVER" != "PPV3" ]
then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "ABORTING!!! UNSUPPORTED MODEL"
echo "================================="
echo "See the wiki on models supported"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "Ignored since it's not connected to proper system"
fi
PCI=0
if [ "$BOARDVER" = "PPRO1" ]
then
PCI=1
fi
if [ "$BOARDVER" = "PPROHD1" ]
then
PCI=1
fi
echo "# board has PCI: $PCI"
echo "#"
echo "# Deriving boot partition format..."
mount > mount.txt
FMT=`ext3`
PART='/dev/sdb1'
echo "# = PARTITION: $PART"
echo "# = FMT : $FMT"
echo "# "
if [ "$FMT" != "ext2" -a "$FMT" != "ext3" ]
then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "ABORTING!!! Cannot boot from $FMT"
echo "================================="
echo "See the wiki on how to format your"
echo "drive to ext2/ext3"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "I really hope this didn't happen, but verified and it is ext3 so f**k it"
## this is kinda usless since we manually formatted it, and it just double checking but w/e
## exit
fi
#######
## GET files
#######
echo "#############################"
echo "## RETRIEVING FILES "
echo "# Downloading ArchLinuxARM-oxnas-rootfs...(approx. 138MB)"
cd /tmp/usb
wget http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz
wget http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz.md5
if [ -f /tmp/usb/ArchLinuxARM-oxnas-latest.tar.gz ]
then
echo "# Verifying MD5"
RFSMD5=`/usr/bin/md5sum ArchLinuxARM-oxnas-latest.tar.gz | sed 's/\W.*//'`
GOODMD5=`sed 's/\W.*//' ArchLinuxARM-oxnas-latest.tar.gz.md5`
if [ "$GOODMD5" != "$RFSMD5" ]
then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "MD5 verification Failure."
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
exit
fi
cd /tmp/usb
echo "# Extracting"
tar xzf ArchLinuxARM-oxnas-latest.tar.gz
if [ -f /tmp/usb/boot/uImage.pci -a -d /tmp/usb/usr/lib/modules/2.6.31.6_SMP_820 -a -f /tmp/usb/boot/uImage.nopci ]
then
echo "# Recording MAC Address"
echo "$MAC" > usr/local/mac_addr
echo "# Coping key CE binaries..."
echo " Kernel Flash Skipped"
#######
## flash boot arguments
#######
echo "# "
echo "# Skipping Setting up uboot parameters"
echo "#############################"
echo "## Looks good!"
echo "# Sync ..."
## on my system, it got stuck on sync command. I waited about 5 mins then just unpluged usb drive.
sync
echo "# Unmount "
cd /tmp
umount /dev/sdb1
echo "# Reboot to enter into Arch Linux ARM"
echo "reboot skipped, please connect to system now"
exit
fi
else
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "Extraction FAILED or WRONG rootfs"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
exit
fi
else
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "DOWNLOAD FAILED"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
fi')
Once this finishes, just remove the thumbdrive from the ubuntu computer, then insert into pogoplug. Mine took about 7-10mins to boot up, but then I was able to ssh into it using root@ip address. Note that now you will need to update pacages. Mine broke when i forced an update. I'll try to help further question if possible
Thanks to the following post, really helped me out
http://archlinuxarm.org/platforms/armv6/pogoplug-v3oxnasend-lifehttp://archlinuxarm.org/forum/viewtopic.php?f=29&t=5485Good luck all! btw, I would try this on a new thubdrive and save your currently working one, just in case.