Idea: Boot XBian from USB
|
14th Jul, 2013, 07:20 AM
Post: #91
|
|||
|
|||
RE: USB Installation
The size of the USB stick is probably just some sectors smaller than the SD card, but it probably only failed to copy empty space so that's no problem. I think the copy went just fine.
In the cmdline.txt search for Code: root=LABEL=xbian-root-btrfs Code: root=/dev/sda1 Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
15th Jul, 2013, 08:15 AM
Post: #92
|
|||
|
|||
RE: USB Installation
(12th Jul, 2013 01:25 PM)daveski3 Wrote: I hate to ask noob questions but I have searched all over and cannot find an answer on my own. I installed Xbian to my SD card using the installer and booted xbian. I then ssh into xbian and typed "sudo dd if=/dev/mmcblk0p2 of=/dev/sda1" to copy the root partition to the usb drive. This is the message I got back: Dave, don't use dd while copying RW mounted partition. 1) you will with no reason copy 16gb is sdcard size is 16gb, even if xbian has not even 500mb 2) dd makes no atomic copy of filesystem's state 3) UUID and LABEL will be the same => LABEL is possible to change, UUID not so easy just boot the system, go to terminal and do: Code: 0) stop xbmc Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Jul, 2013, 02:36 AM
Post: #93
|
|||
|
|||
RE: USB Installation
I easily booted off a HDD on Alpha 5 and to be honest didn't notice any real improvement. What I did find is that it would not reboot if I had another USB drive attached! Hard reboot was fine, but would not soft reboot - something to do with the way the disks were allocated.
I haven't tested on Beta 1.1 so it might be Ok, now. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
16th Jul, 2013, 02:44 AM
Post: #94
|
|||
|
|||
RE: USB Installation
(16th Jul, 2013 02:36 AM)IriDium Wrote: I easily booted off a HDD on Alpha 5 and to be honest didn't notice any real improvement. What I did find is that it would not reboot if I had another USB drive attached! Hard reboot was fine, but would not soft reboot - something to do with the way the disks were allocated. soft reboot you mean "reboot" ? specially as you reported, I have instantly attached sd card in hub with ntfs and wd 1tb as ext4 and can not reproduce this. can you "wget http://ivka57.dyndns-ip.com/a.sh", run it and send me file /tmp/a.tar.gz via email ? Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Jul, 2013, 02:53 AM
Post: #95
|
|||
|
|||
RE: USB Installation
For me the soft reboot did not work in alpha 5 because the usb drive did not come up fast enough (it was hardcoded to wait 10 seconds).
That is fixed in beta where you can set the rootwait value in cmdline.txt Maybe that was your problem too IriDium? Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Jul, 2013, 02:59 AM
Post: #96
|
|||
|
|||
RE: USB Installation
(16th Jul, 2013 02:53 AM)Fred Wrote: For me the soft reboot did not work in alpha 5 because the usb drive did not come up fast enough (it was hardcoded to wait 10 seconds). ok, I misunderstood? I understand it as running -> issuing reboot -> reboot will "freeze" at the end, will not reboot rpi. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Jul, 2013, 03:02 AM
Post: #97
|
|||
|
|||
RE: USB Installation
(16th Jul, 2013 02:44 AM)mk01 Wrote:MK01 - This was on Aplha5 - I haven't tried on Beta 1.1(16th Jul, 2013 02:36 AM)IriDium Wrote: I easily booted off a HDD on Alpha 5 and to be honest didn't notice any real improvement. What I did find is that it would not reboot if I had another USB drive attached! Hard reboot was fine, but would not soft reboot - something to do with the way the disks were allocated. Soft reboot = reboot from XBMc or ssh (sudo reboot) Hard reboot = RPi shut down and restarted. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
16th Jul, 2013, 03:10 AM
Post: #98
|
|||
|
|||
RE: USB Installation
So hard reboot=power cycle
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Jul, 2013, 11:50 PM
Post: #99
|
|||
|
|||
RE: USB Installation
Well I tried with a fresh Beta 1.1 install.
Did the necessary changes and it booted correctly. Attached another USB drive - Screen went blank - Xbian logo "XBMC closing". Stayed like that for ages. Had to switch off. Switched back on with USB Flash (Now the boot) and USB drive (Movies) in HUB. Black screen. To dropdown shell. Loading initram modules. 1 Waiting for root 2 Waiting for root. FATAL: only the last partition can be reized Mounting root as mount -t btrfs -o rw.subvol=root/@ noatimr, compress=lzo,threadpool=a,space=cache,autodefrag /dev/sda1 /rootfs Mounting root partition /dev/sda1 failed. So it looks like it is the "same" problem as in alpha5. ------------------------------------------------------------ Now trying MK01 solution. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
17th Jul, 2013, 12:00 AM
Post: #100
|
|||
|
|||
RE: USB Installation
(15th Jul, 2013 08:15 AM)mk01 Wrote: just boot the system, go to terminal and do: Using the disk label in cmdline.txt won't work for me. It will say root partition LABEL=xbian-usb not found. If i change it to /dev/sda1 it will work. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
17th Jul, 2013, 12:03 AM
Post: #101
|
|||
|
|||
RE: USB Installation
(16th Jul, 2013 11:50 PM)IriDium Wrote: Black screen. definitely you have mishmash with LABEL or UUID. what the messages on screen mean is, that root= parameter from cmdline was taken and evaluated. partition /dev/sda1 was found as matching. and it tries to mount it with again your parameters from cmdline.txt and it failed. SO: post your cmdline.txt and while booted up and attached both disks, post "blkid" output. i'm almost sure that: your mmcblk0p2 and sda1 have the same UUID or LABEL which is used in cmdline.txt as root= and mmcblk0p2 iust btrfs, but sda1 is not. agains my recommendations and warnings about using dd as a tool to copy / create filesystems / backups / etc, nobody really gets the implications. if you setup will be OK, i'm prepared to eat cheese (I hate cheese!). Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
17th Jul, 2013, 12:03 AM
Post: #102
|
|||
|
|||
RE: USB Installation
(17th Jul, 2013 12:00 AM)Fred Wrote:Already on it :-) Just reformatting the cards.. Just posted my last remarks as a reminder.(15th Jul, 2013 08:15 AM)mk01 Wrote: just boot the system, go to terminal and do: Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
17th Jul, 2013, 12:07 AM
Post: #103
|
|||
|
|||
RE: USB Installation
(17th Jul, 2013 12:00 AM)Fred Wrote: Using the disk label in cmdline.txt won't work for me. It will say root partition LABEL=xbian-usb not found. If i change it to /dev/sda1 it will work. I smell the cheese )... what version of initramfs and, it fail immediatelly with first mount attempt, or you get the usuall wait 1 wait 2 . . . ? I remember the wrong logical expression, which I was fixing, but it was weeks ago can you post the same as iridium? I will try to reproduce then. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
17th Jul, 2013, 12:31 AM
Post: #104
|
|||
|
|||
RE: USB Installation
(17th Jul, 2013 12:07 AM)mk01 Wrote:(17th Jul, 2013 12:00 AM)Fred Wrote: Using the disk label in cmdline.txt won't work for me. It will say root partition LABEL=xbian-usb not found. If i change it to /dev/sda1 it will work. Same problem as me, except changing it to /dev/sda1 didn't work. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
17th Jul, 2013, 12:43 AM
Post: #105
|
|||
|
|||
RE: USB Installation
I also removed subvol=root/@ from rootopts in cmdline.txt
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|