Idea: Boot XBian from USB
|
29th Jul, 2013, 05:58 AM
(This post was last modified: 29th Jul, 2013 06:01 AM by f1vefour.)
Post: #166
|
|||
|
|||
Re: USB Installation
If that doesn't work try (sh usbinstall).
Never a better time to break something than on a fresh install ;-) If that doesn't work what does (cat usbinstall) show? Occasionally wget will download an html file instead of a file. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
29th Jul, 2013, 06:45 AM
Post: #167
|
|||
|
|||
RE: USB Installation
Here's a quick guide on how to install the script:
1. ssh to your RPi and exit the config menu OR, if you have a USB keyboard connected, just exit XBMC enter your credentials and exit the config menu. 2. Enter this: Code: wget http://tinyurl.com/xbianusb-install Quote:I would put in a warning that all data on the selected partition will be erased.Good idea! I will do that as soon as possible. Quote:What happens when someone chooses a non-existing partition?mkfs.btrfs will exit with an error code and the script will stop. Quote:What happens if the user already has something mounted at /mnt? You might want to do a 'sudo umount /mnt' just in case (don't know if this happens automatically when you mount another partition to the same location).Hmmm... haven't thought of that. So far the script only unmounts the USB partition so it is available for formatting. I will add an appropriate command to make sure /mnt is not already in use. |
|||
29th Jul, 2013, 06:52 AM
Post: #168
|
|||
|
|||
RE: USB Installation
The wget part works for me, but I can confirm that it does not always work correctly with non-direct links.
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
29th Jul, 2013, 10:17 AM
Post: #169
|
|||
|
|||
Re: RE: USB Installation
(29th Jul, 2013 06:52 AM)Fred Wrote: The wget part works for me, but I can confirm that it does not always work correctly with non-direct links. I always use "curl -L someurl", the -L causes curl to follow http redirects. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
29th Jul, 2013, 05:37 PM
Post: #170
|
|||
|
|||
RE: USB Installation
wget didn't download the correct file for me on Fedora so I assumed it wouldn't work on XBian as well (I currently can't access my RPi). However it works for me on Mint, so actually I'm not sure. "curl -L > file" should always work but is curl installed by default in XBian?
|
|||
29th Jul, 2013, 11:02 PM
Post: #171
|
|||
|
|||
Re: RE: USB Installation
(29th Jul, 2013 05:37 PM)InspMustache Wrote: wget didn't download the correct file for me on Fedora so I assumed it wouldn't work on XBian as well (I currently can't access my RPi). However it works for me on Mint, so actually I'm not sure. "curl -L > file" should always work but is curl installed by default in XBian? No, not there by default. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
30th Jul, 2013, 12:23 AM
Post: #172
|
|||
|
|||
RE: USB Installation
Well, I tried wget on XBian and it actually works, so no need to install curl. So for anyone still having troubles this is how to start the script. From the shell:
Code: wget http://tinyurl.com/xbianusb-install |
|||
30th Jul, 2013, 12:28 AM
Post: #173
|
|||
|
|||
Re: RE: USB Installation
(30th Jul, 2013 12:23 AM)InspMustache Wrote: Well, I tried wget on XBian and it actually works, so no need to install curl. So for anyone still having troubles this is how to start the script. From the shell: My curl comment was for Fred, I was saying curl can follow http redirects where wget fails. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
30th Jul, 2013, 03:22 AM
Post: #174
|
|||
|
|||
RE: USB Installation
Great work by all involved. Worked like a dream. Maybe it can be included into xbian-config and put into Beta 2.
Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
30th Jul, 2013, 11:35 AM
Post: #175
|
|||
|
|||
RE: USB Installation
I hate me too post but....
Just like to add this is working here too. |
|||
30th Jul, 2013, 06:39 PM
Post: #176
|
|||
|
|||
RE: USB Installation
Anybody with before and after speedresults (quantitative or qualitative)
Or better yet, what is the best way to measure the speed difference. Also, is there a way to switch back to the SD card when your USB-stick turns out to be slower than your SD-card? |
|||
30th Jul, 2013, 07:06 PM
Post: #177
|
|||
|
|||
RE: USB Installation
wow, i got a sandisk ultra class 10, those are my results:
Terminal xbian@xbian ~/xbian-toch $ sudo dd if=/dev/mmcblk0p1 of=/dev/null bs=32M count=10 iflag=direct 1+1 records in 1+1 records out 35651584 bytes (36 MB) copied, 1.83987 s, 19.4 MB/s xbian@xbian ~/xbian-toch $ sudo hdparm -Tt /dev/mmcblk0p1 /dev/mmcblk0p1: Timing cached reads: 64 MB in 2.03 seconds = 31.56 MB/sec Timing buffered disk reads: 26 MB in 3.18 seconds = 8.18 MB/sec I think this is very low for a class 10 card... XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
30th Jul, 2013, 08:05 PM
Post: #178
|
|||
|
|||
RE: USB Installation
It is pretty fast:
http://elinux.org/RPi_SD_cards#Performance @Smultie check the above link for speedtest instructions. But this does not say all of course, most important (at least to me) is how XBMC feels (does it feel faster). You can turn back to SD card installation by undoing changes made in cmdline (step 7 from mk01 post somewhere). You will then return to your installation before you moved to USB, so any changes made won't apply. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
30th Jul, 2013, 09:59 PM
Post: #179
|
|||
|
|||
RE: USB Installation
Actually, since the perl command is set up to make a backup of your cmdline.txt, switching back should be as simple as this:
Code: sudo rm /boot/cmdline.txt |
|||
30th Jul, 2013, 11:24 PM
Post: #180
|
|||
|
|||
Re: RE: USB Installation
(30th Jul, 2013 07:06 PM)brantje Wrote: wow, i got a sandisk ultra class 10, those are my results: There were substantial SD card improvements made to the RPi kernel around 6/2012 to 8/2012, so pay no attention to speed results before this date. This is from a SanDisk 16GB Class 4 MicroSD in an adapter, your results are not good. I was even streaming a show from the internet when I tested the speed. Code: root@xbian:~# dd if=/dev/mmcblk0p1 of=/dev/null bs=32M count=10 iflag=direct Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
« Next Oldest | Next Newest »
|