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
(2nd Aug, 2013 12:16 PM)Uncle_Tubbie Wrote: [ -> ]There are others smarter then me around here, but did you try

Running " lsusb ' to ensure you external drive it populates?
and " df -h " to define what the paritions your external drive is named.

If it's a USB drive, it should report back as /dev/sda1.

The above proudly stolen from one of XBMCNut posts.

Yup:
xbian@xbian ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 005: ID 05dc:a205 Lexar Media, Inc.
xbian@xbian ~ $ df-h
-bash: df-h: command not found
xbian@xbian ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.4G 855M 6.3G 12% /
udev 10M 4.0K 10M 1% /dev
tmpfs 189M 176K 189M 1% /run
/dev/sda1 7.4G 855M 6.3G 12% /
none 5.0M 0 5.0M 0% /run/lock
none 189M 0 189M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/mmcblk0p1 34M 13M 22M 37% /boot
/dev/sda1 7.4G 855M 6.3G 12% /home
xbian@xbian ~ $
Here are my notes from my install. I hope they work for you. Either way please post and I will try and help

Run lsusb
Run df -h
sudo umount /dev/sda5 ???
sudo parted -s /dev/sda mklabel msdos
sudo parted -s /dev/sda unit cyl mkpart primary ext2 -- 0 -2
sudo btrfs-auto-snapshot listvol
sudo mount -t btrfs -o subvolid=0 /dev/mmcblk0p2 /tmp
sudo btrfs sub list /tmp
sudo apt-get update
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)
rbthompsonv I've tried my notes a second time and they are not working for me. I get stuck on the resize SD card notice on the splash screen when rebooting. I'm not able to help you, sorry
(2nd Aug, 2013 10:45 AM)rbthompsonv Wrote: [ -> ]Creating btr filesystem on /dev/sda1...
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
The filesystem could not be created. Aborting...

Do you have a terminal session opened to some part of /dev/sda1 which is preventing the umount?
(4th Aug, 2013 02:01 AM)doug Wrote: [ -> ]
(2nd Aug, 2013 10:45 AM)rbthompsonv Wrote: [ -> ]Creating btr filesystem on /dev/sda1...
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
The filesystem could not be created. Aborting...

Do you have a terminal session opened to some part of /dev/sda1 which is preventing the umount?
clean install of Xbian... going to try removing the USB, formatting to fat32, then a clean install of xbian... will post results.
(4th Aug, 2013 10:27 AM)rbthompsonv Wrote: [ -> ]
(4th Aug, 2013 02:01 AM)doug Wrote: [ -> ]
(2nd Aug, 2013 10:45 AM)rbthompsonv Wrote: [ -> ]Creating btr filesystem on /dev/sda1...
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
The filesystem could not be created. Aborting...

Do you have a terminal session opened to some part of /dev/sda1 which is preventing the umount?
clean install of Xbian... going to try removing the USB, formatting to fat32, then a clean install of xbian... will post results.

Seems a format of the USB was what i needed Smile Thanks for suggesting the usb might be mounted Smile
rbthompsonv, I'm glad you are up
(2nd Aug, 2013 10:45 AM)rbthompsonv Wrote: [ -> ]Creating btr filesystem on /dev/sda1...
umount: /home: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
The filesystem could not be created. Aborting...
The script should neither attempt to unmount / nor /home. / holds the entire filesystem including the shell (and the umount program) so it will always be busy. /home is probably the directory you're currently in if you didn't cd into another, so that can't be unmounted either.
So to me this looks like you specified the SD card as the partition to be unmounted/formatted.

Edit: Sorry, didn't see that you got it working already. Glad you're all set up. Smile
Beta 1.1 with latest updates.

After running the install script (Works well) and rebooting, I've noticed xbian-config no longer works.

Could this be due to running from the USB or the latest updates?

log: http://pastebin.com/49r40ZF6
(8th Aug, 2013 12:01 AM)IriDium Wrote: [ -> ]Beta 1.1 with latest updates.

After running the install script (Works well) and rebooting, I've noticed xbian-config no longer works.

Could this be due to running from the USB or the latest updates?

log: http://pastebin.com/49r40ZF6

What is the permissions on /tmp (ls -l /tmp)
(8th Aug, 2013 12:53 AM)f1vefour Wrote: [ -> ]
(8th Aug, 2013 12:01 AM)IriDium Wrote: [ -> ]Beta 1.1 with latest updates.

After running the install script (Works well) and rebooting, I've noticed xbian-config no longer works.

Could this be due to running from the USB or the latest updates?

log: http://pastebin.com/49r40ZF6

What is the permissions on /tmp (ls -l /tmp)

/tmp is empty.
drwxr-xr-x 1 root root 0 Aug 8 09:51 tmp
Code:
sudo chmod 777 /tmp

xbian-config creates and uses files in /tmp, but if it is 755 it won't be able to do that since XBMC is run as user xbian.

How did you copy the files to the USB disk, using the rscync command I gave the permissions should also be copied.
(8th Aug, 2013 08:54 PM)Fred Wrote: [ -> ]
Code:
sudo chmod 777 /tmp

xbian-config creates and uses files in /tmp, but if it is 755 it won't be able to do that since XBMC is run as user xbian.

How did you copy the files to the USB disk, using the rscync command I gave the permissions should also be copied.

I just used the xbian-usbinstall script (which uses rsync).

Works now with the 777 change.
The out of the box option in XBMC does not work with the RPi at the moment.
http://forum.xbian.org/thread-831.html
right permission to /tmp should be 1777 (1 for sticky bit - doesn't allow to edit/remove files owned by someone else as owner uid - normally 777 would allow that).

btw: xbian copy tool is now part xbian-config and in the latest version (http://ivka57.dyndns-ip.com/pool/main/x/xbian-package-config-shell/xbian-package-config-shell_2.1.4-3_armhf.deb) even integrated into xbian-config menu. source drive is preselected (boot drive/partition). one need just put /dev/xxxx into input field and enter.
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