Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] Boot XBian from USB
Thank you for your donation

Pages (28): « Previous 1 2 3 4 5 ... 28 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Boot XBian from USB
16th Feb, 2013, 04:58 AM
Post: #16
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: USB Installation
It's just bad formatted in the forum Wink
It's of course only one line original.

Just used another command and it also shows that the usb drive isn't used Undecided
Terminal
root@xbian ~ # ls -al /dev/root
lrwxrwxrwx 1 root root 9 Jan 1 1970 /dev/root -> mmcblk0p2
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 05:01 AM
Post: #17
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Can you try these instructions? http://forum.xbian.org/thread-427-post-4687.html#pid4687

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 07:10 AM
Post: #18
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: USB Installation
Unfortunately it seems not possible to execute your steps. The problem seems to be that the SD card is 16GB and the usb device is only 8GB. When I execute your dd command the usb device is filled until 8GB and then the command hangs. When I cancel it via STRG+C and try to access the usb mount I only get "Permission denied". So I think the filesystem table isn't written yet.
Terminal

xbian@xbian ~ $ df -m
Filesystem 1M-blocks Used Available Use% Mounted on
rootfs 15107 691 14411 5% /
/dev/mmcblk0p2 15107 691 14411 5% /
tmpfs 38 1 38 1% /run
tmpfs 5 0 5 0% /run/lock
tmpfs 10 0 10 0% /dev
/dev/sda 15228 7845 7377 52% /media/usb0
tmpfs 75 0 75 0% /run/shm
/dev/mmcblk0p1 34 11 24 31% /boot
xbian@xbian ~ $
xbian@xbian ~ $
xbian@xbian ~ $ cd /media/usb0
-bash: cd: /media/usb0: Permission denied
xbian@xbian ~ $
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 07:15 AM
Post: #19
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Can you shrink the root partition with a parted live cd to less than 8GB?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 07:10 PM
Post: #20
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: USB Installation
Seems to got it working now.
I used an Ubuntu Live CD and gave the shrink method a try, but no luck. Still the same problem after the dd command.

Finally it was the new initramfs line in the config.txt, which seems to prevent mounting the usb device at startup. After I've removed it, it started from usb. So the first-startup wizard started, did some pre-configuration and the resize. After the automatic start just a black screen - nothing more, not even boot messages (aaaaargh).
So I only took the SD card and installed the img file again, edited the cmdline.txt and config.txt and did a reboot. And it booted - finally!

I hope this whole mess was it worth and that the filesystem corruptions are gone.
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 09:48 PM
Post: #21
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: USB Installation
@CurlyMo,
looks like the problem i have with my other sd card.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 09:51 PM
Post: #22
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
@belese, did you change to root= value in /boot/cmdline.txt?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 10:03 PM
Post: #23
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: USB Installation
No
in fact don't try to boot from usb,
but like Namtih,
if i remove the new initramfs line in the config.txt
it work.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 10:05 PM
Post: #24
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
But the bug namith encountered is different than you did Smile I'm fixing his bug now.

However, i did add an additional sanity check, so maybe it works better for you to.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
17th Feb, 2013, 12:11 AM
Post: #25
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
(12th Feb, 2013 06:55 PM)CurlyMo Wrote:  I get 35 seconds here.

You said that your RPi(b) with xbian a4 can can fully boot up in 35 seconds?
How??
Find all posts by this user
Quote this message in a reply
17th Feb, 2013, 12:13 AM
Post: #26
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Fast SD card class 10
Turbo mode

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
17th Feb, 2013, 12:30 AM
Post: #27
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
Transcend "TS8GSDHC10" has 20MB/s read 16MB/s write. Not enough fast, right?
Turbo mode looks interesting.

Awesome fast. Boot less more 35 sec.
Find all posts by this user
Quote this message in a reply
8th Mar, 2013, 04:59 AM
Post: #28
rendez2k Offline
Registered
Posts: 9
Joined: Mar 2013
Reputation: 0
RE: USB Installation
(12th Feb, 2013 03:07 AM)CurlyMo Wrote:  The easiest way is:
- Install XBian img to your SD card
- Boot xbian
- Login to shell with ssh
- dd if=/dev/mmcblk0p2 of=/dev/sda2
- Change /boot/cmdline.txt

This only copies the /root partition to your USB drive.

Hi all, I want to try this but it seems the faq entry has gone? I think I'm OK with all of this except the /boot/cmdline.txt part - what needs to change? Have people noticed a big speed increase?
Find all posts by this user
Quote this message in a reply
8th Mar, 2013, 05:06 AM
Post: #29
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
You need to change /dev/mmcblk0p2 to /dev/sda2

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
9th Mar, 2013, 01:22 AM
Post: #30
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: USB Installation
(8th Mar, 2013 04:59 AM)rendez2k Wrote:  Have people noticed a big speed increase?

Yes. But the biggest advantage is that you get rid of the annoying filesystem corruption - even with overclocking.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (28): « Previous 1 2 3 4 5 ... 28 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 29th Mar, 2023, 10:06 PM Powered By MyBB, © 2002-2023 MyBB Group.