Forum
Xbian-copier not working.... - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Xbian-copier not working.... (/thread-3955.html)

Pages: 1 2 3 4 5


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 03:25 AM

(12th Jan, 2018 03:17 AM)Skywatch Wrote:  Now copy completed and so I changed /boot/cmdline.txt to sda5......rebooted....Nothing!

Usually it is better idea using UUID= or PARTUUID= instead of /dev/sdX in cmdline. As you can see, I have two disks attached to my RPi3, and I never know which one is sda and which one is sdb Smile

Quote:I'll investigate this more when I can. No worries.

I do not doubt it


RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 03:35 AM

I have read again the options and am still a little confused.... To make copy on usb (for boot from sd/run from usb) do I need to now add file: at the start of destination - I am guessing not, but want to be sure.


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 03:41 AM

(12th Jan, 2018 03:35 AM)Skywatch Wrote:  I have read again the options and am still a little confused.... To make copy on usb (for boot from sd/run from usb) do I need to now add file: at the start of destination - I am guessing not, but want to be sure.

No!

file: makes a complete image of your sd-card (root AND boot partition)
/dev/sdX# copies root partition only to destination partition (that's why you use partition /dev/sdX# instead of device /dev/sdX)

xbian copier does not support copy system to device right now, only to partitions)


RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 04:00 AM

THanks! Blush

First bakcup failed with error (10) - Am trying agian now.....


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 04:07 AM

(12th Jan, 2018 04:00 AM)Skywatch Wrote:  THanks! Blush

First bakcup failed with error (10) - Am trying agian now.....

10 means copying data of one subvolume fails


RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 04:43 AM

Hmmm..... Maybe I am having a bad day, but after successful copy to sda5 I wanted to see if it was all there. So cd /dev/sda5 had nothing and under /media/ there is also nothing showing..... ??? Am I going mad?


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 04:48 AM

(12th Jan, 2018 04:43 AM)Skywatch Wrote:  Hmmm..... Maybe I am having a bad day, but after successful copy to sda5 I wanted to see if it was all there. So cd /dev/sda5 had nothing and under /media/ there is also nothing showing..... ??? Am I going mad?

Yeah, maybe Tongue

cd /dev/sda5 never works, bc you can't cd to a partition, only to a folder

I suppose you have to replug your device before you can cd to /media/... or after copying run a

Code:
sudo mount /dev/sda5 /mnt && cd /mnt && ls -l



RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 04:59 AM

Yup! - That works. Smile

Now to test again.....


RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 06:05 AM

Hmmm......Another failure Dodgy

If this was my first time trying to set this up, I would think I was doing something bad. But this pi and another 2 all worked this way and I am doing nothing strange here. I even tried the root=UUID=(friendly characters here)...way and still it doesn't work.

When it starts up, there is activity on the green led on the pi and for a moment the usb stick lights up to show it is working. But then it all just seems to stop.

I'll have a think about it later on, I need an early night anyway Tongue


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 06:22 AM

Yeah, tomorrow is another day

Next step: enable initramfs and rescue mode (adding rescue to /boot/cmdline.txt), rebooting Pi and check if /dev/sda5 is mounted correctly


RE: Xbian-copier not working.... - Skywatch - 12th Jan, 2018 08:03 PM

OK, so a new day is here Smile

Does this look OK to you?

Terminal

sudo mount /dev/sda5 /mnt && cd /mnt && ls -l
total 0
drwxr-xr-x 1 root root 2 Jan 11 18:05 data
drwxr-xr-x 1 root root 2 Jan 11 18:09 home
drwxr-xr-x 1 root root 2 Jan 11 18:09 modules
drwxr-xr-x 1 root root 2 Jan 11 18:15 root

If so I'll get a monitor and attach to do what you suggested above.


RE: Xbian-copier not working.... - Nachteule - 12th Jan, 2018 11:21 PM

Yeah, that's ok

Before you try booting from there, you could run (sda5 has to be mounted on /mnt)

Code:
sudo btrfs scrub start /mnt && sudo watch btrfs scrub status /mnt

to check if all files are ok


RE: Xbian-copier not working.... - Skywatch - 13th Jan, 2018 02:03 AM

Looking good so far!
Terminal

xbian@lounge2 ~ $ sudo mount /dev/sda5 /mnt/
mount: /dev/sda5 is already mounted or /mnt busy
/dev/sda5 is already mounted on /media/xbian-copy
/dev/sda5 is already mounted on /mnt
xbian@lounge2 ~ $ sudo btrfs scrub start /mnt && sudo watch btrfs scrub status /mnt
and......then.......
Terminal

scrub status for 7661f9e8-78b1-4040-baeb-74986a6d5ab8
scrub started at Fri Jan 12 15:34:12 2018 and finished after 00:01:14
total bytes scrubbed: 1.76GiB with 0 errors



RE: Xbian-copier not working.... - Nachteule - 13th Jan, 2018 04:18 AM

Indeed


RE: Xbian-copier not working.... - Nachteule - 18th Jan, 2018 03:46 AM

(12th Jan, 2018 01:57 AM)Skywatch Wrote:  
(12th Jan, 2018 12:35 AM)Nachteule Wrote:  Ah, hold on. I know what the problem is:

Bingo! Smile -- You got it!

But now I get 'fail' message instead! Sad
I have target set to "file: /dev/sda1" as well as the usual "/dev/sda1" and both say error....?

(12th Jan, 2018 12:35 AM)Nachteule Wrote:  Your ssh window is too small. I enlarged the copier window to 82x29, and it seems it does not fit into your screen

Of course you could also not bugger about with ssh terminal window size in the first place Tongue

Cheers!

Added workaround, should never happen again Smile