Forum

Full Version: Boot XBian from USB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
(18th Dec, 2013 09:30 PM)stormy Wrote: [ -> ]
(18th Dec, 2013 12:03 PM)Lilone21804 Wrote: [ -> ]Could someone explain how to install Xbian on an USB drive to me, I am having the hardest time. Im on Beta 2. I know how to initiate the clone by going to option 6 in xbian.config. That's as far as I can go. I'm not sure how to check for where the USB is mounted, how to change the cmdline.txt, or anything else. Pretty much, I need someone the explain step by step if possible.

All I did was to install beta2 on the SD card, bung the sd card in the rasp pi and then plug in the usb then turn the pi on , the rest is just automatic. Seemed to work for me .

Wait, what? No.

That is in no way an answer to the question asked.

Lilone21804.

To find out where the USB-drive is mounted, typ "df -h" after logging in via SSH.

When you've found out where the USB is mounted, typ
"sudo vi /boot/cmdline.txt"
and change "root=/dev/mmcblk0p2" to "root=/dev/sda1"

You might need to read a bit about vi https://www.washington.edu/computing/unix/vi.html
I've given up, trying to get it to run from USB is a nightmare. I selected option 6 in the Xbian config, tackled the root location switch via the absolutely hellish Vi, and it didn't work at all, and now I hate myself and everything that has ever existed.
(18th Dec, 2013 09:53 PM)Smultie Wrote: [ -> ]
(18th Dec, 2013 09:30 PM)stormy Wrote: [ -> ]
(18th Dec, 2013 12:03 PM)Lilone21804 Wrote: [ -> ]Could someone explain how to install Xbian on an USB drive to me, I am having the hardest time. Im on Beta 2. I know how to initiate the clone by going to option 6 in xbian.config. That's as far as I can go. I'm not sure how to check for where the USB is mounted, how to change the cmdline.txt, or anything else. Pretty much, I need someone the explain step by step if possible.

All I did was to install beta2 on the SD card, bung the sd card in the rasp pi and then plug in the usb then turn the pi on , the rest is just automatic. Seemed to work for me .

Wait, what? No.

That is in no way an answer to the question asked.

Lilone21804.

To find out where the USB-drive is mounted, typ "df -h" after logging in via SSH.

When you've found out where the USB is mounted, typ
"sudo vi /boot/cmdline.txt"
and change "root=/dev/mmcblk0p2" to "root=/dev/sda1"

You might need to read a bit about vi https://www.washington.edu/computing/unix/vi.html


I actually figured it out, but thanks for your help. I was under the impression that once I did this procedure, I wouldn't have to keep the SD card in anymore?
(19th Dec, 2013 04:46 AM)Lilone21804 Wrote: [ -> ]I actually figured it out, but thanks for your help. I was under the impression that once I did this procedure, I wouldn't have to keep the SD card in anymore?

how did you do it, please share, my eyes are bleeding
(19th Dec, 2013 04:53 AM)postdeath Wrote: [ -> ]
(19th Dec, 2013 04:46 AM)Lilone21804 Wrote: [ -> ]I actually figured it out, but thanks for your help. I was under the impression that once I did this procedure, I wouldn't have to keep the SD card in anymore?

how did you do it, please share, my eyes are bleeding

1. I formatted my USB flash drive to the default fat32 file structure on my PC and then plugged in back into my Pi.
2. Under system/system info/storage, it tells you want the USB is mounted under. In my case it was sda1.
3. I ssh into Xbian.config and went to option 6. I only changed were it said "dev/sdxx" to "dev/sda1". I hit enter and it did its thing. It took a while, but the okay button finally appeared at the bottom of the screen.
4. Next I used "sudo nano /boot/cmdline.txt" and changed "root=/dev/mmcblk0p2" to "root=/dev/sda1". Control and x to save and that's it.

Hope it works for you.
Ahh, thank you so much - following your steps I was able to work out what my issue was (my flash drive was sda and not sda1 and needed to be fixed in GParted). It's all working now - thanks again Smile
@Lilone21804: I followed your instructions to move the Xbian install to a usb drive, but when I boot the rpi I'm stuck with a black screen. I can type things, but it doesn't execute anything. I'm also not able to log in via ssh. What happened?

EDIT: Fixed it, I needed to format the usb with my PC and got it working now!
(19th Dec, 2013 07:21 AM)postdeath Wrote: [ -> ]Ahh, thank you so much - following your steps I was able to work out what my issue was (my flash drive was sda and not sda1 and needed to be fixed in GParted). It's all working now - thanks again Smile

(20th Dec, 2013 10:08 PM)Cyroq Wrote: [ -> ]@Lilone21804: I followed your instructions to move the Xbian install to a usb drive, but when I boot the rpi I'm stuck with a black screen. I can type things, but it doesn't execute anything. I'm also not able to log in via ssh. What happened?

EDIT: Fixed it, I needed to format the usb with my PC and got it working now!

Well I'm glad my instructions worked for you.
(19th Dec, 2013 06:08 AM)Lilone21804 Wrote: [ -> ]
(19th Dec, 2013 04:53 AM)postdeath Wrote: [ -> ]
(19th Dec, 2013 04:46 AM)Lilone21804 Wrote: [ -> ]I actually figured it out, but thanks for your help. I was under the impression that once I did this procedure, I wouldn't have to keep the SD card in anymore?

how did you do it, please share, my eyes are bleeding

1. I formatted my USB flash drive to the default fat32 file structure on my PC and then plugged in back into my Pi.
2. Under system/system info/storage, it tells you want the USB is mounted under. In my case it was sda1.
3. I ssh into Xbian.config and went to option 6. I only changed were it said "dev/sdxx" to "dev/sda1". I hit enter and it did its thing. It took a while, but the okay button finally appeared at the bottom of the screen.
4. Next I used "sudo nano /boot/cmdline.txt" and changed "root=/dev/mmcblk0p2" to "root=/dev/sda1". Control and x to save and that's it.

Hope it works for you.
hi to all,
i did all the steps,but xbian won't boot, it stuck on "network started" and drop to shell.i cant ssh the device nor ping it.
i'm trying since two day and i can't get it to work.
(18th Dec, 2013 09:53 PM)Smultie Wrote: [ -> ]
(18th Dec, 2013 09:30 PM)stormy Wrote: [ -> ]All I did was to install beta2 on the SD card, bung the sd card in the rasp pi and then plug in the usb then turn the pi on , the rest is just automatic. Seemed to work for me .

I think @stormy has got confused between USB boot and USB mount. Sad

@brice83
If you have dropped to a shell can you post the following:
1) df -h
2) Output of dmesg via pastebin
3) /boot/cmdline.txt and /boot/config.txt

It really is as simple as @Lilone21804 explained. So it looks like you may have made a simple error.
(24th Dec, 2013 02:44 AM)brice83 Wrote: [ -> ]hi to all,
i did all the steps,but xbian won't boot, it stuck on "network started" and drop to shell.i cant ssh the device nor ping it.
i'm trying since two day and i can't get it to work.

can you post /run/upstart-ev.log ?
(24th Dec, 2013 03:00 AM)IriDium Wrote: [ -> ]If you have dropped to a shell can you post the following:
1) df -h
2) Output of dmesg via pastebin
3) /boot/cmdline.txt and /boot/config.txt
i can only provide cmdline.txt and config.txt since i dont have a keyboard connected to the pi.
cmdline.txt
Code:
sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty1 root=/dev/sda1 rootflags=subvol=root/@,autodefrag,compress=lzo rootfstype=btrfs rootwait smsc95xx.turbo_mode=N elevator=cfq
logo.nologo quiet noswap loglevel=0 mod_scsi.scan=sync partswap startevent=mountall splash nohdparm --startup-event mountall

config.txt
Code:
initramfs initramfs.gz  0x00a00000
gpu_mem_512=128
gpu_mem_256=128
initial_turbo=1
disable_splash=1
arm_freq=840
core_freq=275
sdram_freq=400
over_voltage=0

(24th Dec, 2013 03:11 AM)mk01 Wrote: [ -> ]can you post /run/upstart-ev.log ?
upstart-ev.log
Code:
4150.67 2041.99 stopped progress-shutdown                0.87 1.50 1.33 2/68 11509
836.62 239.23 stopped progress-shutdown                2.33 1.72 1.11 2/66 4442
2.88 0.61 mountall                                 0.00 0.00 0.00 6/60 71
3.13 0.61 started hostname                         0.00 0.00 0.00 5/61 85
3.17 0.61 stopped hostname                         0.00 0.00 0.00 5/61 85
you copied this somehow from not live system, right ?

I would need the one from running rpi at the point your XBMC don't start and you get console. you can remove "splash" from cmdline.txt. and you can take picture from actual screen. there should be at least some info.

btw: when you are waiting and nothing happens, at the time RPI closes splash and opens console login prompt, this is failsafe process activated. as it is opening the console, it should also try to force start network (eth0) and ssh. timer for failsafe to kick in is 100s from boot.

then you should be to access it remotely,
(24th Dec, 2013 07:53 AM)mk01 Wrote: [ -> ]you copied this somehow from not live system, right ?

I would need the one from running rpi at the point your XBMC don't start and you get console. you can remove "splash" from cmdline.txt. and you can take picture from actual screen. there should be at least some info.

btw: when you are waiting and nothing happens, at the time RPI closes splash and opens console login prompt, this is failsafe process activated. as it is opening the console, it should also try to force start network (eth0) and ssh. timer for failsafe to kick in is 100s from boot.

then you should be to access it remotely,
now after a long delay,i can login via ssh on the pi, but , on tv the screen remain black.here are content of upstart-ev.log:

Code:
xbian@xbian ~ $ cat /run/upstart-ev.log
165.25 2.48 mountall                                 1.42 0.66 0.25 4/66 1048
165.42 2.48 started hwclock                          2.35 0.87 0.32 5/66 1056
165.58 2.48 stopped hostname                         2.35 0.87 0.32 7/68 1074
165.82 2.48 xbian-nowait                             2.35 0.87 0.32 4/67 1082
166.03 2.48 started wait-for-state  xbmc-done        2.35 0.87 0.32 5/69 1088
197.42 2.48 stopped xbian-net                        2.53 1.04 0.40 5/75 1134
197.61 2.48 net-device-up  lo                        2.53 1.04 0.40 5/74 1143
197.90 2.48 started upstart-udev-bridge              2.53 1.04 0.40 1/75 1154
229.48 2.48 started udev                             3.98 1.53 0.58 5/80 1191
229.44 2.48 started module-init-tools                3.98 1.53 0.58 5/83 1190
229.48 2.48 started udevtrigger                      3.98 1.53 0.58 5/83 1190
229.60 2.48 stopped network-interface lo             3.98 1.53 0.58 2/74 1194
229.65 2.48 stopped module-init-tools                3.98 1.53 0.58 1/73 1196
230.47 2.48 started mountall                         4.54 1.69 0.64 11/83 1243
230.46 2.48 started procps                           3.98 1.53 0.58 12/83 1242
230.50 2.48 started xbmc-failed-start                4.54 1.69 0.64 10/81 1245
231.16 2.48 mounted /home                            4.54 1.69 0.64 18/101 1291
231.07 2.48 mounted /boot                            4.54 1.69 0.64 17/102 1294
231.09 2.48 mounted /sys                             4.54 1.69 0.64 16/101 1294
231.16 2.48 mounted /dev                             4.54 1.69 0.64 18/101 1291
231.16 2.48 mounted /run                             4.54 1.69 0.64 18/101 1291
231.16 2.48 mounted /proc                            4.54 1.69 0.64 18/101 1291
231.08 2.48 mounted /dev/pts                         4.54 1.69 0.64 18/101 1291
231.06 2.48 stopped network-interface eth0           4.54 1.69 0.64 18/101 1291
231.10 2.48 mounted /                                4.54 1.69 0.64 17/102 1292
231.14 2.48 started failsafe                         4.54 1.69 0.64 18/102 1293
231.74 2.48 started mounted-run                      4.54 1.69 0.64 22/112 1338
231.64 2.48 mounted /lib/modules                     4.54 1.69 0.64 22/110 1339
231.72 2.48 started xbmc-preload                     4.54 1.69 0.64 19/108 1339
231.80 2.48 stopped procps                           4.54 1.69 0.64 18/106 1341
232.53 2.48 stopped mounted-run                      4.54 1.69 0.64 11/97 1367
232.77 2.48 mounted /tmp                             4.54 1.69 0.64 8/94 1375
232.82 2.48 virtual-filesystems                      4.54 1.69 0.64 9/95 1376
233.06 2.48 remote-filesystems                       4.54 1.69 0.64 5/93 1379
233.37 2.48 local-filesystems                        4.54 1.69 0.64 9/87 1384
233.94 2.48 filesystem                               4.54 1.69 0.64 16/105 1416
233.94 2.48 starting xbmc                            4.54 1.69 0.64 15/106 1418
233.86 2.48 started dbus                             4.54 1.69 0.64 15/105 1417
233.93 2.48 started xbmc-changesettings              4.54 1.69 0.64 15/106 1418
234.25 2.48 started portmap                          4.54 1.69 0.64 10/101 1435
234.29 2.48 stopped xbmc-changesettings              4.54 1.69 0.64 7/98 1431
234.67 2.48 stopped idmapd                           4.54 1.69 0.64 10/99 1457
234.62 2.48 stopped gssd                             4.54 1.69 0.64 8/98 1455
234.67 2.48 stopped mountall                         4.54 1.69 0.64 8/98 1455
235.06 2.48 stopped statd                            4.54 1.69 0.64 3/95 1475
253.60 2.48 started wait-for-state  xbmc-loaded      5.52 2.10 0.79 4/98 1495
253.79 2.48 started wait-for-state  openbsd-inetd    5.52 2.10 0.79 2/100 1506
284.35 2.48 stopped wait-for-state  xbmc-done        6.10 2.54 0.98 9/100 1517
284.50 2.48 started avahi-daemon                     6.10 2.54 0.98 8/100 1520
285.21 2.48 stopped udevtrigger                      6.10 2.54 0.98 6/104 1550
285.28 2.48 started networking                       6.10 2.54 0.98 3/107 1557
310.77 2.48 failsafe-boot                            5.83 2.82 1.12 2/96 1594
318.04 2.48 started tty2                             5.92 2.89 1.16 12/106 1632
317.99 2.48 started rc-sysinit                       5.92 2.89 1.16 12/106 1632
318.09 2.48 stopped failsafe                         5.92 2.89 1.16 9/105 1635
318.05 2.48 started tty1                             5.92 2.89 1.16 8/104 1635
318.08 2.48 started xbmc-kill-splash                 5.92 2.89 1.16 7/103 1635
318.29 2.48 started zram-swap                        5.92 2.89 1.16 7/98 1638
318.76 2.48 stopped failsafe-boot-started            5.92 2.89 1.16 11/104 1654
318.98 2.48 started wait-for-state  xbmc-exits       5.92 2.89 1.16 6/103 1659
351.07 2.48 started restore-home                     5.51 3.11 1.29 16/112 1700
351.06 2.48 runlevel                                 5.51 3.11 1.29 16/112 1700
351.08 2.48 started rc                               5.51 3.11 1.29 13/111 1697
351.71 2.48 started openbsd-inetd                    5.51 3.11 1.29 9/113 1720
351.63 2.48 stopped rc-sysinit                       5.51 3.11 1.29 10/114 1720
351.72 2.48 started anacron                          5.51 3.11 1.29 10/115 1720
351.69 2.48 net-device-up  eth0                      5.51 3.11 1.29 10/115 1720
352.49 2.48 started cron                             5.51 3.11 1.29 13/111 1731
352.53 2.48 stopped wait-for-state  openbsd-inetd    5.51 3.11 1.29 13/111 1731
352.58 2.48 stopped anacron                          5.51 3.11 1.29 12/111 1732
352.72 2.48 static-network-up                        5.51 3.11 1.29 11/105 1738
353.04 2.48 stopped wait-for-state  xbmc-exits       5.51 3.11 1.29 9/102 1753
353.73 2.48 stopped xbmc-kill-splash                 5.51 3.11 1.29 12/104 1777
353.82 2.48 started setupcon                         5.51 3.11 1.29 13/105 1778
354.09 2.48 failsafe-boot                            5.51 3.11 1.29 13/106 1794
354.09 2.48 started rc-sysinit                       5.51 3.11 1.29 12/106 1799
354.32 2.48 stopped wait-for-state  xbmc-loaded      5.51 3.11 1.29 9/106 1808
354.84 2.48 started xbmc-done                        5.51 3.11 1.29 12/112 1830
354.90 2.48 started mounted-tmp                      5.51 3.11 1.29 12/112 1830
354.83 2.48 stopped xbmc-preload                     5.51 3.11 1.29 10/110 1830
355.15 2.48 stopped failsafe-boot-started            5.51 3.11 1.29 13/112 1843
355.67 2.48 runlevel                                 5.51 3.11 1.29 18/113 1869
355.71 2.48 stopped rc-sysinit                       6.75 3.41 1.40 18/114 1871
356.10 2.48 stopped mounted-tmp                      6.75 3.41 1.40 17/119 1896
356.03 2.48 stopped networking                       6.75 3.41 1.40 17/119 1895
356.07 2.48 started anacron                          6.75 3.41 1.40 17/119 1895
356.38 2.48 stopped anacron                          6.75 3.41 1.40 14/108 1907
356.87 2.48 stopped xbmc                             6.75 3.41 1.40 16/119 1939
356.96 2.48 started xbmc-changesettings              6.75 3.41 1.40 16/118 1939
357.11 2.48 stopped xbmc-changesettings              6.75 3.41 1.40 13/112 1945
357.55 2.48 stopped xbmc-exits                       6.75 3.41 1.40 18/117 1966
357.67 2.48 stopped setupcon                         6.75 3.41 1.40 20/121 1978
357.89 2.48 net-device-added  eth0                   6.75 3.41 1.40 23/120 1985
358.14 2.48 started network-interface eth0           6.75 3.41 1.40 23/124 1999
358.36 2.48 net-device-added  lo                     6.75 3.41 1.40 17/120 2012
358.72 2.48 net-device-up  lo                        6.75 3.41 1.40 16/116 2027
358.78 2.48 started network-interface lo             6.75 3.41 1.40 17/115 2031
358.85 2.48 started rc-sysinit                       6.75 3.41 1.40 16/115 2032
359.51 2.48 runlevel                                 6.75 3.41 1.40 11/112 2056
359.64 2.48 stopped xbmc-failed-start                6.75 3.41 1.40 13/111 2066
359.66 2.48 stopped rc-sysinit                       6.75 3.41 1.40 11/109 2070
359.84 2.48 started anacron                          6.75 3.41 1.40 10/107 2075
359.96 2.48 stopped anacron                          6.75 3.41 1.40 10/109 2089
360.58 2.48 started wait-for-state  openbsd-inetd    6.75 3.41 1.40 4/108 2134
360.72 2.48 stopped wait-for-state  openbsd-inetd    6.75 3.41 1.40 2/105 2142
365.53 2.48 started wait-for-state  openbsd-inetd    6.69 3.45 1.42 2/107 2174
365.65 2.48 stopped wait-for-state  openbsd-inetd    6.69 3.45 1.42 2/105 2181
391.60 2.48 stopped rc                               7.90 4.04 1.68 4/104 2235
391.83 2.48 started ntp                              7.90 4.04 1.68 1/99 2255
422.39 2.48 started frandom                          8.88 4.64 1.96 3/96 2279
422.48 2.48 started lirc                             8.88 4.64 1.96 3/95 2286
422.69 2.48 started wait-for-state  openbsd-inetd    8.88 4.64 1.96 2/98 2299
422.84 2.48 stopped wait-for-state  openbsd-inetd    8.88 4.64 1.96 3/97 2309

and dmesg is here: http://pastebin.com/BTkBXJF3
I'm running Xbian 1.0 beta 1. I had some problems with sd-card corruption so I have installed in on a usb-drive.
Steps where to easy. I transferred the root partition to an usb drive, and the /boot to a small sd card of 128mb

1. Format USB drive as FAT32
2. Insert in the Raspberry Pi
3. sudo dd if=/dev/mmcblk02 of=/dev/sda1

After the dd I transfered the content of the fat partition (/boot) to a small 128mb fat formatted sd card.
Didn't change anything to cmdline.txt, just booted and it started Big Grin
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Reference URL's