This shows you the differences between two versions of the page.
|
installation_usb [2014/07/02 02:28] xbianfan [Older Versions] |
installation_usb [2015/10/18 19:19] (current) abdulmueid Added troubleshooting for external devices with long spin up times on boot. |
||
|---|---|---|---|
| Line 18: | Line 18: | ||
| <code> | <code> | ||
| root@pi:~# sudo -i | root@pi:~# sudo -i | ||
| - | root@pi:~# blkid -s UUID -o value /dev/root | + | root@pi:~# blkid -s UUID -o value /dev/sda1 |
| 240d84e4-dd44-42df-b31e-fe4f492b5cce | 240d84e4-dd44-42df-b31e-fe4f492b5cce | ||
| </code> | </code> | ||
| Line 24: | Line 24: | ||
| <code> | <code> | ||
| root@pi:~# sudo -i | root@pi:~# sudo -i | ||
| - | root@pi:~# blkid -s LABEL -o value /dev/root | + | root@pi:~# blkid -s LABEL -o value /dev/sda1 |
| xbian-copy | xbian-copy | ||
| </code> | </code> | ||
| Line 79: | Line 79: | ||
| <code> | <code> | ||
| sudo nano /boot/boot.scr.txt | sudo nano /boot/boot.scr.txt | ||
| - | change root=/dev/mmcblk0p2 to root=/dev/sda1 (or what your partition on the external drive is) | ||
| - | remove subvol=root/@, | ||
| </code> | </code> | ||
| + | |||
| + | change ''root=/dev/mmcblk0p2'' to ''root=/dev/sda1'' (or what your partition on the external drive is) | ||
| + | remove ''subvol=root/@,'' | ||
| + | |||
| and compile boot.scr with (make backups of both files beforehand - just in case): | and compile boot.scr with (make backups of both files beforehand - just in case): | ||
| Line 92: | Line 94: | ||
| That's all! | That's all! | ||
| - | **To use sub volumes again:** | + | **To use sub volumes again:** (Important for filesystem snapshots) |
| <code> | <code> | ||
| sudo -i | sudo -i | ||
| Line 104: | Line 106: | ||
| sudo nano /boot/boot.scr.txt | sudo nano /boot/boot.scr.txt | ||
| </code> | </code> | ||
| - | subvol=ROOT/@, | + | ''subvol=ROOT/@,'' |
| and compile it again with: | and compile it again with: | ||
| <code> | <code> | ||
| Line 112: | Line 114: | ||
| (It's important that ROOT is written the same way as created, in this case in capital letters!) | (It's important that ROOT is written the same way as created, in this case in capital letters!) | ||
| For more informations see: https://github.com/xbianonpi/xbian/issues/556 | For more informations see: https://github.com/xbianonpi/xbian/issues/556 | ||
| + | |||
| + | ==== Troubleshooting ==== | ||
| + | Some external USB drives such as Seagate Expansion take longer than 10 seconds to spin up on boot, resulting in xbian not identifying the xbian-copy partition in time and results in recovery mode on start up. | ||
| + | |||
| + | It is necessary to add appropriate delay in the initramfs script between device initialization and root mounting to resolve this issue. | ||
| + | |||
| + | <code> | ||
| + | xbian@xbian ~ $ sudo nano /etc/xbian-initramfs/init | ||
| + | </code> | ||
| + | |||
| + | Add ''sleep 10'' on a new line between ''up "after modprobe"'' and ''INITIALBOOT="0"'' | ||
| + | |||
| + | <code> | ||
| + | ... | ||
| + | up "after modprobe" | ||
| + | |||
| + | sleep 10 | ||
| + | |||
| + | INITIALBOOT="0" | ||
| + | ... | ||
| + | </code> | ||
| + | |||
| + | Adjust the delay from 10 to the appropriate amount needed for your external drive. | ||
| + | |||
| + | Now, update the initramfs image: | ||
| + | |||
| + | <code> | ||
| + | xbian@xbian ~ $ sudo xbian-update-initramfs | ||
| + | </code> | ||
| + | |||
| + | The system should now boot from external USB drive properly. The only downside is a few additional seconds wait time during boot up. | ||