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): « Previous 1 ... 12 13 14 15 16 ... 28 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Boot XBian from USB
3rd Aug, 2013, 05:06 AM
Post: #196
rbthompsonv Offline
Registered
Posts: 26
Joined: Aug 2013
Reputation: 0
RE: USB Installation
(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 ~ $
Find all posts by this user
Quote this message in a reply
3rd Aug, 2013, 10:56 AM
Post: #197
Uncle_Tubbie Offline
Thankful
Posts: 46
Joined: Dec 2012
Reputation: 4
RE: USB Installation
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)
Find all posts by this user
Quote this message in a reply
4th Aug, 2013, 01:27 AM
Post: #198
Uncle_Tubbie Offline
Thankful
Posts: 46
Joined: Dec 2012
Reputation: 4
RE: USB Installation
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
Find all posts by this user
Quote this message in a reply
4th Aug, 2013, 02:01 AM
Post: #199
doug Offline
Registered
Posts: 50
Joined: Dec 2012
Reputation: 4
RE: USB Installation
(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?
Find all posts by this user
Quote this message in a reply
4th Aug, 2013, 10:27 AM
Post: #200
rbthompsonv Offline
Registered
Posts: 26
Joined: Aug 2013
Reputation: 0
RE: USB Installation
(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.
Find all posts by this user
Quote this message in a reply
4th Aug, 2013, 12:21 PM
Post: #201
rbthompsonv Offline
Registered
Posts: 26
Joined: Aug 2013
Reputation: 0
RE: USB Installation
(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
Find all posts by this user
Quote this message in a reply
5th Aug, 2013, 12:09 AM
Post: #202
Uncle_Tubbie Offline
Thankful
Posts: 46
Joined: Dec 2012
Reputation: 4
RE: USB Installation
rbthompsonv, I'm glad you are up
Find all posts by this user
Quote this message in a reply
5th Aug, 2013, 06:39 PM
Post: #203
InspMustache Offline
Registered
Posts: 8
Joined: Jul 2013
Reputation: 4
RE: USB Installation
(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
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 12:01 AM
Post: #204
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: USB Installation
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

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 12:53 AM
Post: #205
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: RE: USB Installation
(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)

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 06:55 PM
Post: #206
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: USB Installation
(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

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 08:54 PM
Post: #207
Fred Offline
Registered
Posts: 321
Joined: Apr 2013
Reputation: 36
RE: USB Installation
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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 09:03 PM
Post: #208
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: USB Installation
(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.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 09:31 PM
Post: #209
Fred Offline
Registered
Posts: 321
Joined: Apr 2013
Reputation: 36
RE: USB Installation
The out of the box option in XBMC does not work with the RPi at the moment.
http://forum.xbian.org/thread-831.html

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
12th Aug, 2013, 07:26 PM
Post: #210
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: USB Installation
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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (28): « Previous 1 ... 12 13 14 15 16 ... 28 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 02:02 PM Powered By MyBB, © 2002-2025 MyBB Group.