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
ok I see I will put a copy command - or xbian-config menu - to copy installation to other device.

guys, it is process for 5 minutes. so i'm just sad you are wasting hours.

Mark, the flipping is "no files within home folder". Are you sure you performed step 4)? I'm not. It makes no sense to again copy everything over and over?

Just boot again from sd, and copy just the home content again.

- small hint, install midnight commander (apt-get install mc) and run from terminal (ssh) with "mc". it can't be easier.
Ok! I will double check I am copying /home to the USB drive. This makes no sense to me either why it isnt working.

I will also look into MC. When will the copying of / and /home be implemented into the xbian-config menu???

Sorry for being a burden to the community!

Mark
Lol! It seems that I am not meant to be able to copy the / and/home to usb. I went back to the originally posted Mk01 rsync commands and get
Code:
rsync: mkstemp "/mnt/usr/sbin/.try-from.Cgu718" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.tunelp.MMcEUN" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.tzconfig.gBBMys" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-ca-certificates.O3fFra" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-info-dir.oPzKmS" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-initramfs.ckd0OA" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-locale.SIBKWi" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-mime.8j1OFZ" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-passwd.qMXOMG" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-rc.d.M2K5Mn" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.update-usbids.0QHZ77" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.useradd.KJurvS" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.userdel.oTHZLB" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.usermod.etFMuo" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.validlocale.MryKia" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.vcstime.GFfvRV" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.vipw.WaWDpK" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.visudo.2eV3Ey" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.watchdog.OqhXDo" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.wd_identify.YogBVe" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.wd_keepalive.Sy3tw8" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/sbin/.zic.0xjmF2" failed: Read-only file system (30)
rsync: mkstemp "/mnt/usr/share/.pkg-config-crosswrapper.6xUiXW" failed: Read-only file system (30)
usr/share/binfmts/
rsync: recv_generator: mkdir "/mnt/usr/share/binfmts" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/bug/
rsync: recv_generator: mkdir "/mnt/usr/share/bug" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/ca-certificates/
rsync: recv_generator: mkdir "/mnt/usr/share/ca-certificates" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/calendar/
rsync: recv_generator: mkdir "/mnt/usr/share/calendar" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/common-licenses/
rsync: recv_generator: mkdir "/mnt/usr/share/common-licenses" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/console-setup/
rsync: recv_generator: mkdir "/mnt/usr/share/console-setup" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/consolefonts/
rsync: recv_generator: mkdir "/mnt/usr/share/consolefonts" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/consoletrans/
rsync: recv_generator: mkdir "/mnt/usr/share/consoletrans" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/dbus-1/
rsync: recv_generator: mkdir "/mnt/usr/share/dbus-1" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/debconf/
rsync: recv_generator: mkdir "/mnt/usr/share/debconf" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/debhelper/
rsync: recv_generator: mkdir "/mnt/usr/share/debhelper" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/debianutils/
rsync: recv_generator: mkdir "/mnt/usr/share/debianutils" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/devhelp/
rsync: recv_generator: mkdir "/mnt/usr/share/devhelp" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/dict/
rsync: recv_generator: mkdir "/mnt/usr/share/dict" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/doc-base/
rsync: recv_generator: mkdir "/mnt/usr/share/doc-base" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/doc/
rsync: recv_generator: mkdir "/mnt/usr/share/doc" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/dpkg/
rsync: recv_generator: mkdir "/mnt/usr/share/dpkg" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/file/
rsync: recv_generator: mkdir "/mnt/usr/share/file" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/fonts/
rsync: recv_generator: mkdir "/mnt/usr/share/fonts" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/gettext/
rsync: recv_generator: mkdir "/mnt/usr/share/gettext" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/glib-2.0/
rsync: recv_generator: mkdir "/mnt/usr/share/glib-2.0" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/gnupg/
rsync: recv_generator: mkdir "/mnt/usr/share/gnupg" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/groff/
rsync: recv_generator: mkdir "/mnt/usr/share/groff" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/hal/
rsync: recv_generator: mkdir "/mnt/usr/share/hal" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/hfsprogs/
rsync: recv_generator: mkdir "/mnt/usr/share/hfsprogs" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/i18n/
rsync: recv_generator: mkdir "/mnt/usr/share/i18n" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/images/
rsync: recv_generator: mkdir "/mnt/usr/share/images" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/info/
rsync: recv_generator: mkdir "/mnt/usr/share/info" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/initramfs-tools/
rsync: recv_generator: mkdir "/mnt/usr/share/initramfs-tools" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/insserv/
rsync: recv_generator: mkdir "/mnt/usr/share/insserv" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/iptables/
rsync: recv_generator: mkdir "/mnt/usr/share/iptables" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/java/
rsync: recv_generator: mkdir "/mnt/usr/share/java" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/keyrings/
rsync: recv_generator: mkdir "/mnt/usr/share/keyrings" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/libc-bin/
rsync: recv_generator: mkdir "/mnt/usr/share/libc-bin" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/linda/
rsync: recv_generator: mkdir "/mnt/usr/share/linda" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/lintian/
rsync: recv_generator: mkdir "/mnt/usr/share/lintian" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/locale/
rsync: recv_generator: mkdir "/mnt/usr/share/locale" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/lzo/
rsync: recv_generator: mkdir "/mnt/usr/share/lzo" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/man-db/
rsync: recv_generator: mkdir "/mnt/usr/share/man-db" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
usr/share/man/
rsync: recv_generator: mkdir "/mnt/usr/share/man" failed: Read-only file system (30)
*** Skipping any contents from this failed directory ***
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [sender=3.0.9]

So my questions.

Is it worth it, spending more and more hours trying to make this work for me? Should I wait until you put that option into the Xbian menu? Is it even worth it..., having xbian on usb?

Sorry but I am becoming verry verry DodgyAngry angry / frusterated about this problem I have tried every thinkable method of solving, given the provided tools. Sad

Thanks for your patient, support!
For what it is worth...

[quote]rsync -aAX /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress [quote]

running this must be doing something. If I run my Pi with SD card only I cannot avoid card corruption at medium in xbian config. With this line of code run under ssh I am running under Turbo without an issue. Avoiding card corruption is my only reason to try a USB install.

So to MK01 and Mark, thank you for the excellent directions

Cheers
Hi, thank you for the instructions for a "USB boot" for Beta 1.1 (from a fresh install.) I'm now able to overclock at "high" and get stutter free 1080p whilst decoding DTS.

For anyone else trying to follow this thread, here is what worked for me. Note I didn't use root, I used the xbian user. I also don't connect a USB hard drive so the USB flash drive is the only device I was concerned with and it appeared as /dev/sda1 (you can check with "dmesg").

Code:
sudo umount /dev/sda1
sudo mkfs.btrfs -L xbian-usb /dev/sda1
sudo mount /dev/sda1 /mnt
sudo rsync -aAX /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress
sudo nano /mnt/etc/fstab
a) comment out the line with "/home" (with a "#" at the start of the line)
b) change "LABEL=xbian-root-btrfs" to "root=/dev/sda1", remove "subvol=root/@," option from "/".
sudo nano /boot/cmdline.txt
a) change "LABEL=xbian-root-btrfs" to "root=/dev/sda1"
b) remove "subvol=root/@"
c) change "mod_scsi.scan=async" to "mod_scsi.scan=sync"
d) according the need, change number after rootwait=  (I didn't need to change this and I'm not sure what it means)

I hope it helps someone else.
Even easier:
Code:
sudo mkfs.btrfs -L xbian-usb /dev/sda1
sudo mount /dev/sda1 /mnt
sudo rsync -aAX /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs} --progress
sed -i 's/LABEL=xbian-root-btrfs\(.*\)\/home\(.*\)/#LABEL=xbian-root-btrfs\1\/home\2/g' /etc/fstab
sed -i 's/LABEL=xbian-root-btrfs/\/dev\/sda1/g' /boot/cmdline.txt
sed -i 's/subvol=root\/@,//g' /boot/cmdline.txt
sed -i 's/mod_scsi.scan=async/mod_scsi.scan=sync/g' /boot/cmdline.txt
Optional, increase the rootwait=
(22nd Jul, 2013 06:37 PM)CurlyMo Wrote: [ -> ]Even easier...
I defer to, and thank you for, your linux skills. Easy=good.

Seeing your code made me google "sed linux" to see what it does. I guess the optional, noob friendlier, command to change the value of rootwait (to XX) would be:
sed -i 's/rootwait=10/rootwait=XX/g' /boot/cmdline.txt
Or even better Wink, this way it doesn't depend on the rootwait to be 10:
Code:
sed -i 's/\(rootwait=\)\([0-9]\{1,\}\)/rootwait=XX/g'
(23rd Jul, 2013 05:12 AM)CurlyMo Wrote: [ -> ]Or even better Wink, this way it doesn't depend on the rootwait to be 10:
Code:
sed -i 's/\(rootwait=\)\([0-9]\{1,\}\)/rootwait=XX/g'
You rock! You should develop for XBian! ;-)
The only few times i react to posts is when sed is needed. mk01 single can handedly solve the climate change, the world hunger, create world peace, but somehow still doesn't know how to use sed Smile
I don't know sed either, but I think one or more is needed?
Code:
sudo nano /mnt/etc/fstab
b) change "LABEL=xbian-root-btrfs" to "root=/dev/sda1", remove "subvol=root/@," option from "/".
No, 5th + 6th command from my post (or 2nd + 3rd sed) from my post.
(23rd Jul, 2013 05:30 PM)CurlyMo Wrote: [ -> ]No, 5th + 6th command from my post (or 2nd + 3rd sed) from my post.
Aren't those for changes to cmdline.txt (changes to fstab still needed)?
Did you try these commands on the fstab?
Hi,

So the USB installation is working well. I'm now looking to reclaim the installation SD card and replace it with an older, smaller card. In Alpha 5, all I had to do was copy the contents of the boot directory and put them on a FAT formatted card. That doesn't work for me with Beta 1.1. Is there somthing else required that will allow that?

Thanks!
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