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): 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
10th Feb, 2013, 02:57 PM
Post: #1
djEthen Offline
Registered
Posts: 6
Joined: Feb 2013
Reputation: 1
Boot XBian from USB
Hi,

Was reading that raspbmc supports USB installation which is more stable and less prone to crashes and can overclock to 1ghz without corruption. so any plans for this?

Regards,
Find all posts by this user
Quote this message in a reply
10th Feb, 2013, 06:15 PM
Post: #2
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: USB Installation
this option was always here Wink
Start from USB

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
10th Feb, 2013, 08:29 PM
Post: #3
djEthen Offline
Registered
Posts: 6
Joined: Feb 2013
Reputation: 1
RE: USB Installation
I looked there but i dint find it before..
i feel dumb now Sad
Find all posts by this user
Quote this message in a reply
11th Feb, 2013, 11:51 PM
Post: #4
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
So, I need to install xbian to SDcard with Installer for windows, then boot up my pi with this sdcard, then from my pi execute dd image to external drive, then modify /boot/cmdline txt. Right?
Find all posts by this user
Quote this message in a reply
11th Feb, 2013, 11:52 PM
Post: #5
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Yes

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 02:39 AM
Post: #6
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
I do this and now it not boot says something like bad block device. I executed this
dd if=file.img of=/dev/sda2
and changed root location in /boot/cmdline.txt

Or I must dd to /dev/sda, then resize and create my current partitions?
Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 02:40 AM
Post: #7
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
can you do a:
Code:
fdisk -l /dev/sda2

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 02:51 AM
Post: #8
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
It says that there is gpt and I need use something else to manage partitions.
Before dd this hdd has: MBR, ntfs(primary),ext4(primary).
Now - MBR, ntfs(primary),unformatted
Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 03:07 AM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 04:03 AM
Post: #10
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
What you mean by "Then copy only the /root partition to your USB drive."?
Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 04:06 AM
Post: #11
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
I didn't phrase that sentence correctly Smile

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 04:21 PM
Post: #12
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: USB Installation
Boot from class 10 SDcard: 65s
Boot from 250G HDD ext4: 4m 34s
D'oh ©
Find all posts by this user
Quote this message in a reply
12th Feb, 2013, 06:55 PM
Post: #13
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Those i my experiences as well Smile, still booting from SD is quit slow. I get 35 seconds here.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 04:49 AM
Post: #14
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: USB Installation
I wanted to test an usb installation today. How can I verify that the usb drive is really used?
My current setup:
1. Used win32diskimager to restore the img file to the usb drive.
2. Used win32diskimager to restore the img file to the SD card.
3. Changed SD card commandline.txt to "root=/dev/sda2"
4. Connected both devices and booted
5. But after exiting XBMC, I get the following output:
Terminal
root@xbian ~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 15469552 706896 14756004 5% /
/dev/mmcblk0p2 15469552 706896 14756004 5% /
tmpfs 39700 268 39432 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 10240 0 10240 0% /dev
/dev/sda1 34662 10409 24253 31% /media/usb0
/dev/sda2 653228 610124 36452 95% /media/usb1
tmpfs 79400 0 79400 0% /run/shm
/dev/mmcblk0p1 34662 10409 24253 31% /boot
root@xbian ~ #
root@xbian ~ #
root@xbian ~ # more /boot/cmdline.txt
dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty2 root=
/dev/sda2 rootfstype=ext4 elevator=deadline rootwait quiet
root@xbian ~ #

As / is still labeled with "/dev/mmcblk0p2" it's still using the SD card, isn't it?
Did I miss anything?
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 04:53 AM
Post: #15
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: USB Installation
Why is there a newline after root= ?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (28): 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: 11th May, 2025, 08:15 AM Powered By MyBB, © 2002-2025 MyBB Group.