Neuros Technology Forums

Neuros LINK => Neuros LINK - I need help! => Topic started by: crweb on December 02, 2008, 02:44:20 pm



Title: Neuros Link Restore Procedures
Post by: crweb on December 02, 2008, 02:44:20 pm
EDIT: These instructions have moved here: http://www.neurostechnology.com/restore-neuros-link .  The below is for archival purposes and will be deleted in the near future.



There are several methods to restore Neuros Link software to the USB drive.  I will edit this post to add more restore paths as soon as each is fully tested.


To See Changes read: http://us.archive.neuros.tv/images/neuros-link/1.2/Changes (http://us.archive.neuros.tv/images/neuros-link/1.2.1/Changes)


Windows Restore Path

Requirements: 
1.) Selfimage (http://us.archive.neuros.tv/images/neuros-link/1.2/tools/SelfImage-121.zip), a free open source imaging utility.
2.) A desktop PC with Windows XP, Windows 2000, or Windows Vista.
3.) Your main hard drive formatted with the NTFS file system (Fat32 does not support the large files needed for the LINK restore process).

Download one of the following, if you can use Bittorrent Please help Seed!!  This file is 900MB, so please be patient.
Download:  Version 1.2.1.img.bz2 (http://us.archive.neuros.tv/images/neuros-link/1.2.1/full/neuroslink-1.2.1-full.img.bz2)
Bittorrent:  Version 1.2.1.torrent (http://us.archive.neuros.tv/images/neuros-link/1.2.1/full/neuroslink-1.2.1-full.torrent)

* For saftey remove all USB and media cards from the system before plugging in the Neuros Flash drive.

1.) Extract and install Selfimage 1.2.1 or newer
2.) Insert Neuros LINK flash drive in your PC's USB port
3.) Windows XP: run Selfimage from start menu.   Windows Vista: Right click on Selfimage in Start menu and select "Run As Administrator" or drives will not be listed.
4.) In SelfImage, you are asked for the input file.  Direct the file selector to .bz2 file you downloaded above.
5.) Select "Drive" in the Output options area at the bottom of the Selfimage window.
6.) In the drop-down list you will see a drive that is 3.7-4.1GB in size.  Select that drive, as it should be your 4GB USB flash drive.
7.) When you are sure you have selected the correct drive, press Start.

Troubleshooting:
* If you do not see the 3.7-4.1GB drive in Selfimage, please 1.) unplug your Neuros LINK USB flash drive, 2.) restart your computer, then 3.) plug your Neuros LINK USB flash drive back in.



Linux Restore Path (Neuros Official Cloning Method)

Requirements:
1.) Linux Desktop or LiveCD with Partimage 0.6.4, Grub, Bash, and sfdisk (provided by util-linux on debian/ubuntu). Use x86 only, x86-64 partimage will fail.

Download one of the following, if you can use Bittorrent Please help Seed!!  This file is 900MB, so please be patient.
Bittorrent Download: Version 1.2.torrent (http://us.archive.neuros.tv/images/neuros-link/1.2.1/partimage/neuroslink-1.2.1-partimage.torrent)

* For saftey remove all USB and media cards from the system before plugging in the Neuros Flash drive.

1.) Do not have your Neuros LINK USB flash drive plugged in yet
2.) Login as root, or run sudo su
3.) tar -jxvf neuroslink-1.2-partimage.tar.bz2
4.) cd neuroslink-1.2
5.) ls -l /dev/sd*
6.) Plug in your USB Neuros Link drive - Do NOT mount the partitions!  If Ubuntu automounts your partitions on the USB please unmount them.
7.) ls -l /dev/sd*
8.) Compare to the list in step 7 to the list in step 9 to find your drive. For this we will assume it is sdm. So you should see sdm1 and sdm2. (Replace sdm with your drive sda, sdb, sdc, sdd, etc).  Be careful! This will erase the drive you select!
9.) sudo ./restore.sh sdm
10.) Wait 10-20 minutes and the process should be complete.

Note for ubuntu users: the above will fail at step 11 because the script will repartition the drive and then try to re-read the partitions. However Ubuntu will instantly auto-mount the drive after the partitions are rewritten, and this will prevent the rest of the script from working. Very annoying. The solution was to run gconf-editor and then go to apps > nautilus > preferences and uncheck the "media_automount" option. Then re-run step 11 and it should work now. You may want to re-enable the option afterwards.



Direct Flashing of Image in Linux
Requirements: bzip2 and dd for linux and root login

Download one of the following, if you can use Bittorrent Please help Seed!!  This file is 900MB, so please be patient.
Download:  Version 1.2.img.bz2 (http://us.archive.neuros.tv/images/neuros-link/1.2.1/full/neuroslink-1.2.1-full.img.bz2)
Bittorrent:  Version 1.2.torrent (http://us.archive.neuros.tv/images/neuros-link/1.2.1/full/neuroslink-1.2.1-full.torrent)

1.) Disconnect Neuros Link USB Flash Drive, do not insert into desktop
2.) Login as root (or sudo su)
3.) bzip2 -d neuroslink-1.2-full.img.bz2
4.) ls -l /dev/sd*
5.) Insert your USB Flash Drive
6.) ls -l /dev/sd*
7.) Compare to the list in step 6 to the list in step 8 to find your drive. For this we will assume it is sdm. So you should see sdm1 and sdm2. (Replace sdm with your drive sda, sdb, sdc, sdd, etc). Be careful! This will erase the drive you select!
8.) dd if=neuroslink-1.2-full.img of=/dev/sdm bs=1M
9.) type sync
10.) Remove drive and insert into Neuros Link hardware



01-30-09: Bumped to version 1.2.1 to fix small error.
01-21-09: Release version 1.2 of NeurosLink firmware.
12-28-08: Fixed broken URL for partimage/Official Clone instructions
12-08-08: Removed per-partition restore in linux. Added full disk restore via dd (same image as the windows restore)
12-07-08: Added Windows restore method for version 1.1
12-06-08: Updated Partimage method to disk image 1.1
12-09-08: Cleaned up instructions and made Windows first (sorry Linux guys...) - jsdf.


Title: Re: Neuros Link Restore Procedures
Post by: charlesv on December 02, 2008, 04:42:53 pm
Looks like this is working... One caveat:

Ubuntu likes to automount new partitions that show up, so after the sfdisk command, it was cancelling out (since partimage couldnt get access to the device). Running the commands one at a time and unmounting the partitions before partimage appears to have worked... (still restoring).

Thanks!

- Charles


Title: Re: Neuros Link Restore Procedures
Post by: infrared on December 03, 2008, 10:58:42 am
Will there be a script for this?


Title: Re: Neuros Link Restore Procedures
Post by: crweb on December 03, 2008, 11:01:20 am
Will there be a script for this?

There can't be much more of a script.  The steps outlined here are the requirements for the restore.sh script.  Unfortunately there is no way to know which drive is the correct one so it requires the user interaction or risk destroying your actual desktop's drive.  The restore process itself is already scripted once you locate the correct drive.

If anyone has any suggestions on how to choose or detect the correct drive more of this could possibly be scripted.


Title: Re: Neuros Link Restore Procedures
Post by: infrared on December 03, 2008, 12:42:24 pm
Maybe a wizard of some sort....


Title: Re: Neuros Link Restore Procedures
Post by: crweb on December 03, 2008, 01:04:14 pm
Maybe a wizard of some sort....

I agree.  I will try and get at least a basic wizard for windows up this weekend.  Hopefully I will beable to scan drives and list them so user can choose the correct drive :)


Title: Re: Neuros Link Restore Procedures
Post by: charlesv on December 03, 2008, 08:38:15 pm
function pause(){
   read -p “$*”
}

ls -l /dev/sd*
pause 'look at list'
sleep 10
ls -l /dev/sd*
pause 'look at what's new!'

or somesuch


Title: Re: Neuros Link Restore Procedures
Post by: crweb on December 07, 2008, 07:54:39 pm
Just a ping here,  Windows flashing instructions have been posted.  The image file is still uploading but it should be done and exist at Midnight 12-07-08 Central Time USA.


Title: Re: Neuros Link Restore Procedures
Post by: JoeBorn on December 08, 2008, 04:25:53 pm
Worked for me on XP SP3, but I did have to reboot to get it to recognize the drive properly.


Title: Re: Neuros Link Restore Procedures
Post by: derobert on December 09, 2008, 06:24:36 am
If anyone has any suggestions on how to choose or detect the correct drive more of this could possibly be scripted.

/dev/disk/by* is a good place to start.


Title: Re: Neuros Link Restore Procedures
Post by: arnor on December 09, 2008, 05:12:05 pm
I have my LINK back up and running.
The restore procedure works on Windows Vista.


Title: Re: Neuros Link Restore Procedures
Post by: charlesv on December 09, 2008, 07:24:29 pm
Any chance of hosting the restore images via s3 or some other distributed provider (even a neuros seeded torrent could potentially work)? Especially if upgrades are distributed this way, 1.4gb over 55kps is ~6hours...


Title: Re: Neuros Link Restore Procedures
Post by: crweb on December 09, 2008, 09:00:06 pm
Where are you located that you get 55kbps so i can notify my ISP.


Title: Re: Neuros Link Restore Procedures
Post by: charlesv on December 09, 2008, 09:14:54 pm
Austin, TX w/ time warner cable. Just pulled down some stuff at 1.7MB/s, so I don't think it's entirely on this end...

Seems to be fluctuating between 45 an 75k... Same speed from the link itself when running apt-get updates (on the neuros hosted packages only)


Title: Re: Neuros Link Restore Procedures
Post by: crweb on December 09, 2008, 09:41:25 pm
Ok, very odd.  I'll talk to jsdf (Jason) while I am in chicago the rest of this week and see what we can do.  Usually my host isn't slow at all.  I get about 1.2MB/s.  Will talk to him as well.

I know we just got introuble with upstream cause we left a backup script on after i copied the repo's etc to the server and the backup script was doing about 16GB a day.. maybe they are throtteling us.


Title: Re: Neuros Link Restore Procedures
Post by: infrared on December 09, 2008, 09:58:37 pm
Net Neutrality getting to us faster then we think :(


Title: Re: Neuros Link Restore Procedures
Post by: DrSlump on December 09, 2008, 10:11:45 pm
Ok, very odd.  I'll talk to jsdf (Jason) while I am in chicago the rest of this week and see what we can do.  Usually my host isn't slow at all.  I get about 1.2MB/s.  Will talk to him as well.

I know we just got introuble with upstream cause we left a backup script on after i copied the repo's etc to the server and the backup script was doing about 16GB a day.. maybe they are throtteling us.

I had trouble pulling the image down two nights ago - comcast cable, ~25-50kbps


Title: Re: Neuros Link Restore Procedures
Post by: sundevil98 on January 01, 2009, 12:37:49 pm
I'm trying to restore my USB stick, and am having problems.

The reason for me trying to restore the USB stick is because I tried updating the Flash drivers (had problems watching CBS in full screen mode).  I was unable to update successfully, and was having more problems after trying to update (problems include boot issues, and random crashes of the box).

I was able to download the Neuros 1.1 image with no problem, and was able to start the restore procedure as stated above... However, after starting the selfimage, it seemed to lock up during transfer of the files...  I can't remember the error that was given, but it basically said that it couldn't write files to the disk (USB stick).

I closed the selfimage utility, removed the USB stick, restarted windows, and put the USB stick back in.  I re-started the selfimage utility, and this time, when I chose the disk to write two, there were 3 options (as before).  The one that was used the first time (was 3.7ish GB first time) was now (0 bytes).  I shut down the selfimage utility, and removed the USB drive. 

I plugged the USB drive back in, and windows (Vista) said that the drive needed to be formatted.  So, I formatted the drive (NTFS).  However, Windows is only seeing 211MB space available on the USB stick.  (21.9 MB are used space).

I tried re-formatting the drive again, but no luck, it only sees 211 MB of free space.

Do I have a FUBAR USB drive, or am I missing something here?

[update]  I went out and bought a new USB drive (8GB if it matters)... I'm having no problems now getting the Link image to upload onto the new stick.  I think the USB stick I had was defective in some way.  I'm going to see if I have any problems now with installing updates on the Link. [/update]


Title: Re: Neuros Link Restore Procedures
Post by: fishie on January 01, 2009, 11:02:27 pm
i think mine may be bad as well. i had to restore it three times now.  one after a failed upgrade and the other two times i had a corrupt filesystem and had to fsck it.


Title: Re: Neuros Link Restore Procedures
Post by: crweb on January 01, 2009, 11:52:32 pm
i think mine may be bad as well. i had to restore it three times now.  one after a failed upgrade and the other two times i had a corrupt filesystem and had to fsck it.

  We are working very hard to fix these filesystem corruption issues. A new release will be available as soon as possible that should address even more corruption problems!

  Tom


Title: Re: Neuros Link Restore Procedures
Post by: sundevil98 on January 02, 2009, 02:53:51 am
After using the new USB stick, I was able to do a full update with no  issues.


Title: Re: Neuros Link Restore Procedures
Post by: bedge on January 10, 2009, 03:07:38 am
Looks like this is working... One caveat:

Ubuntu likes to automount new partitions that show up, so after the sfdisk command, it was cancelling out (since partimage couldnt get access to the device). Running the commands one at a time and unmounting the partitions before partimage appears to have worked... (still restoring).

Thanks!

- Charles

Here's a fix to stop Ubuntu's HAL from automounting a specific device so you don't change the dunctionality for everything else.
Put this file in /etc/hal/fdi/policy/no_mount_neuros
------cut here------
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<!--
   The following prevents any "Crucial" storage devices from being automounted. (Bruce Edge)
-->
<deviceinfo version="0.2">
  <device>
      <match key="storage.vendor" string="Crucial">
        <merge key="storage.automount_enabled_hint" type="bool">false</merge>
      </match>
  </device>
</deviceinfo>

------cut here------
Replace the "Crucial" if you ended up with a different vendor's device.
You can use hal-device to see what your vendor string is.

-Bruce


Title: Re: Neuros Link Restore Procedures
Post by: crweb on January 21, 2009, 11:38:11 am
NeurosLink Firmware version 1.2 has been released.

http://us.archive.neuros.tv/images/neuros-link/1.2/Changes

You can download it now in the main thread message.  If you can spare bandwidth please help us by using bittorrent!  We really need the help on bandwidth.  After the download is complete leave bittorrent open and seed for us for a few days so we can handle the load!

 Thanks,
    Tom


Title: Re: Neuros Link Restore Procedures
Post by: cfranzen on February 04, 2009, 09:54:42 am
Okay.. I have followed the restore procedure like before using the "DD" method and its not working. The USB drive appears unreadable when finished.... What am I doing wrong.


Title: Re: Neuros Link Restore Procedures
Post by: crweb on February 04, 2009, 10:33:14 am
Please check your md5sums if you can:

http://us.archive.neuros.tv/images/neuros-link/current/full/md5sums.txt
http://us.archive.neuros.tv/images/neuros-link/current/partimage/md5sums.txt


Title: Re: Neuros Link Restore Procedures
Post by: cfranzen on February 05, 2009, 10:06:58 am
Thanks... it was a bad image


Title: Cloning image to HD
Post by: popnfresh on March 10, 2009, 11:24:44 am
This may be a dumb question, but can I clone the neuroslink image to an SATA drive to boot from internally instead of cloning it to a USB flash drive?


Title: Re: Neuros Link Restore Procedures
Post by: ChadV on March 10, 2009, 11:32:45 am
There is a thread on doing just that in the forums!

http://forums.neurostechnology.com/index.php?topic=9656.0


Title: Re: Cloning image to HD
Post by: crweb on March 10, 2009, 11:35:54 am
This may be a dumb question, but can I clone the neuroslink image to an SATA drive to boot from internally instead of cloning it to a USB flash drive?

This may be a dumb question, but can I clone the neuroslink image to an SATA drive to boot from internally instead of cloning it to a USB flash drive?

Yes infact you can.  After you have cloned it to the Sata drive boot to it and do:

sudo apt-get install gparted

Then run gparted and you can resize the 2nd partition (3.5gb) to any size you want!